beansdb: scope autotools deps to head, modernize
This commit is contained in:
parent
ee12692222
commit
430acfb0c2
1 changed files with 15 additions and 14 deletions
|
@ -1,24 +1,25 @@
|
|||
require 'formula'
|
||||
require "formula"
|
||||
|
||||
class Beansdb < Formula
|
||||
homepage 'https://github.com/douban/beansdb'
|
||||
head 'https://github.com/douban/beansdb.git', :branch => 'master'
|
||||
url 'https://github.com/douban/beansdb/archive/v0.6.tar.gz'
|
||||
sha1 '9099ce607ff3c3eba251ee34ae65a08c4e3715b9'
|
||||
homepage "https://github.com/douban/beansdb"
|
||||
url "https://github.com/douban/beansdb/archive/v0.6.tar.gz"
|
||||
sha1 "9099ce607ff3c3eba251ee34ae65a08c4e3715b9"
|
||||
|
||||
depends_on :autoconf
|
||||
depends_on :automake
|
||||
head do
|
||||
url "https://github.com/douban/beansdb.git"
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.append 'CFLAGS', '-std=gnu89'
|
||||
system "./autogen.sh"
|
||||
system "./configure", "--prefix=#{prefix}"
|
||||
|
||||
ENV.append "CFLAGS", "-std=gnu89"
|
||||
system "./autogen.sh" if build.head?
|
||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
||||
system "make"
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
|
||||
(var + 'db/beansdb').mkpath
|
||||
(var + 'log').mkpath
|
||||
(var/"db/beansdb").mkpath
|
||||
(var/"log").mkpath
|
||||
end
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
|
|
Loading…
Reference in a new issue