Class: Zint::ZintRecipe
- Inherits:
-
MiniPortileCMake
- Object
- MiniPortileCMake
- Zint::ZintRecipe
- Defined in:
- lib/zint/zint_recipe.rb
Constant Summary collapse
- ROOT =
File.("../../..", __FILE__)
Instance Method Summary collapse
- #cook_and_activate ⇒ Object
-
#initialize ⇒ ZintRecipe
constructor
A new instance of ZintRecipe.
Constructor Details
#initialize ⇒ ZintRecipe
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_activate ⇒ Object
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 |