Class: JQRecipe
- Inherits:
-
MiniPortile
- Object
- MiniPortile
- JQRecipe
- Defined in:
- ext/jq/extconf.rb
Constant Summary collapse
- JQ_VERSION =
'1.8.1'- JQ_SHA256 =
'2be64e7129cecb11d5906290eba10af694fb9e3e7f9fc208a311dc33ca837eb0'
Instance Method Summary collapse
- #configure ⇒ Object
-
#initialize ⇒ JQRecipe
constructor
A new instance of JQRecipe.
Constructor Details
#initialize ⇒ JQRecipe
Returns a new instance of JQRecipe.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'ext/jq/extconf.rb', line 12 def initialize super('jq', JQ_VERSION) self.files << { url: "https://github.com/jqlang/jq/releases/download/jq-#{JQ_VERSION}/jq-#{JQ_VERSION}.tar.gz", sha256: JQ_SHA256 } self. += [ # "--enable-shared", "--enable-static", "--enable-all-static", "--disable-maintainer-mode", "--with-oniguruma=builtin", # Use bundled oniguruma "CFLAGS=-fPIC -DJQ_VERSION=\\\"#{JQRecipe::JQ_VERSION}\\\"", ] end |
Instance Method Details
#configure ⇒ Object
28 29 30 31 32 33 |
# File 'ext/jq/extconf.rb', line 28 def configure return if configured? execute('autoreconf', 'autoreconf -i') super end |