class BuildRecipe
Public Class Methods
Source
# File ext/extconf.rb, line 40 def initialize(name, version, files) super(name, version) self.files = files rootdir = File.expand_path('../..', __FILE__) self.target = File.join(rootdir, "ports") self.patch_files = Dir[File.join(target, "patches", self.name, self.version, "*.patch")].sort end
Calls superclass method
Public Instance Methods
Source
# File ext/extconf.rb, line 54 def configure_prefix "--prefix=" end
Add ββprefix=/β, to avoid our actual build install path compiled into the binary. Instead use DESTDIR variable of make to set our install path.
Source
# File ext/extconf.rb, line 58 def cook_and_activate checkpoint = File.join(self.target, "#{self.name}-#{self.version}-#{RUBY_PLATFORM}.installed") unless File.exist?(checkpoint) self.cook FileUtils.touch checkpoint end self.activate self end
Source
# File ext/extconf.rb, line 70 def download_file(url, full_path, count = 60) download_file_count_3(url, full_path, count) end
Also aliased as: download_file_count_3
Increase number of download retries; otherwise it fails often in CI
Alias for: download_file