aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorStéphan Kochen2012-09-14 14:28:20 +0200
committerAdam Vandenberg2012-09-14 09:26:25 -0700
commit0f335320ca68d639b8cbc5bf539ac36bcab51b87 (patch)
treecefd87350cb84fdb0c9127130a52a8f9bfd0e2de /Library
parent68bac82d1eeeb064511dffe88e5e335b826dac45 (diff)
downloadhomebrew-0f335320ca68d639b8cbc5bf539ac36bcab51b87.tar.bz2
Cherokee: add --HEAD
Closes #14934. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/cherokee.rb35
1 files changed, 25 insertions, 10 deletions
diff --git a/Library/Formula/cherokee.rb b/Library/Formula/cherokee.rb
index beb881af8..76e231b7c 100644
--- a/Library/Formula/cherokee.rb
+++ b/Library/Formula/cherokee.rb
@@ -5,19 +5,34 @@ class Cherokee < Formula
url 'http://www.cherokee-project.com/download/1.2/1.2.101/cherokee-1.2.101.tar.gz'
sha1 'b27f149c7d7111207ac8c3cd8a4856c05490d136'
+ head 'https://github.com/cherokee/webserver.git'
+
depends_on 'gettext'
+ if build.head?
+ depends_on :autoconf
+ depends_on :automake
+ depends_on :libtool
+ end
def install
- system "./configure", "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--sysconfdir=#{etc}",
- "--localstatedir=#{var}/cherokee",
- "--with-wwwuser=#{ENV['USER']}",
- "--with-wwwgroup=www",
- "--enable-internal-pcre",
- # Don't install to /Library
- "--with-wwwroot=#{etc}/cherokee/htdocs",
- "--with-cgiroot=#{etc}/cherokee/cgi-bin"
+ if build.head?
+ ENV['LIBTOOL'] = 'glibtool'
+ ENV['LIBTOOLIZE'] = 'glibtoolize'
+ cmd = './autogen.sh'
+ else
+ cmd = './configure'
+ end
+
+ system cmd, "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--sysconfdir=#{etc}",
+ "--localstatedir=#{var}/cherokee",
+ "--with-wwwuser=#{ENV['USER']}",
+ "--with-wwwgroup=www",
+ "--enable-internal-pcre",
+ # Don't install to /Library
+ "--with-wwwroot=#{etc}/cherokee/htdocs",
+ "--with-cgiroot=#{etc}/cherokee/cgi-bin"
system "make install"
prefix.install "org.cherokee.webserver.plist"