Class: LibarchiveBinary::LibexpatRecipe
- Inherits:
-
BaseRecipe
- Object
- MiniPortile
- BaseRecipe
- LibarchiveBinary::LibexpatRecipe
show all
- Defined in:
- lib/ffi-libarchive-binary/libexpat_recipe.rb
Instance Method Summary
collapse
Methods inherited from BaseRecipe
#apple_arch_flag, #cflags, #ldflags, #message
Constructor Details
Returns a new instance of LibexpatRecipe.
7
8
9
10
11
|
# File 'lib/ffi-libarchive-binary/libexpat_recipe.rb', line 7
def initialize
super("libexpat")
@target = ROOT.join(@target).to_s
end
|
Instance Method Details
#checkpoint ⇒ Object
26
27
28
|
# File 'lib/ffi-libarchive-binary/libexpat_recipe.rb', line 26
def checkpoint
File.join(@target, "#{name}-#{version}-#{host}.installed")
end
|
20
21
22
23
24
|
# File 'lib/ffi-libarchive-binary/libexpat_recipe.rb', line 20
def configure
cmd = ["env", cflags(host), ldflags(host),
"./configure"] + computed_options
execute("configure", cmd)
end
|
13
14
15
16
17
18
|
# File 'lib/ffi-libarchive-binary/libexpat_recipe.rb', line 13
def configure_defaults
[
"--host=#{@host}", "--disable-shared", "--enable-static",
"--without-tests", "--without-examples"
]
end
|
#cook ⇒ Object
34
35
36
37
38
|
# File 'lib/ffi-libarchive-binary/libexpat_recipe.rb', line 34
def cook
super
FileUtils.touch(checkpoint)
end
|
#cook_if_not ⇒ Object
30
31
32
|
# File 'lib/ffi-libarchive-binary/libexpat_recipe.rb', line 30
def cook_if_not
cook unless File.exist?(checkpoint)
end
|