Class: Zint::ZintRecipe

Inherits:
MiniPortileCMake
  • Object
show all
Defined in:
lib/zint/zint_recipe.rb

Constant Summary collapse

ROOT =
File.expand_path("../../..", __FILE__)

Instance Method Summary collapse

Constructor Details

#initializeZintRecipe

Returns a new instance of ZintRecipe.



11
12
13
14
15
# File 'lib/zint/zint_recipe.rb', line 11

def initialize
  super("libzint", ZINT_VERSION)
  self.target = File.join(ROOT, "ports")
  self.files = [url: ZINT_SOURCE_URI, sha1: ZINT_SOURCE_SHA1]
end

Instance Method Details

#cook_and_activateObject



17
18
19
20
21
22
23
24
25
# File 'lib/zint/zint_recipe.rb', line 17

def cook_and_activate
  checkpoint = File.join(target, "#{name}-#{version}-#{host}.installed")
  unless File.exist?(checkpoint)
    cook
    FileUtils.touch checkpoint
  end
  activate
  self
end