Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

groonga: add HEAD support #45792

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Library/Formula/groonga.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ class Groonga < Formula
sha256 "089a97b55ad3733005d3ae5a7f8a9501dfefb0620c1e484e9021ee2bfb438424" => :mavericks
end

head do
url "https://github.com/groonga/groonga.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end

option "with-benchmark", "With benchmark program for developer use"

deprecated_option "enable-benchmark" => "with-benchmark"
Expand All @@ -32,10 +39,12 @@ def install
--without-libstemmer
]

args << "--with-ruby" if build.head?
args << "--enable-benchmark" if build.with? "benchmark"
args << "--with-mecab" if build.with? "mecab"
args << "--with-lz4" if build.with? "lz4"

system "./autogen.sh" if build.head?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could put this in one block :)

if build.head?
 args << "--with-ruby"
 system "./autogen.sh"
end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've fixed it!

# ZeroMQ is an optional dependency that will be auto-detected unless we disable it
system "./configure", *args
system "make", "install"
Expand Down