2012-08-12 17:25:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libslax < Formula
|
2013-06-17 19:23:09 +00:00
|
|
|
homepage 'http://www.libslax.org/'
|
2013-07-18 16:01:55 +00:00
|
|
|
url 'https://github.com/Juniper/libslax/releases/download/0.16.15/libslax-0.16.15.tar.gz'
|
|
|
|
sha1 'ee849585d7af7fd6515862f8f3bf30338ad073ab'
|
2012-08-12 17:25:01 +00:00
|
|
|
|
2013-06-17 19:23:09 +00:00
|
|
|
head 'https://github.com/Juniper/libslax.git'
|
|
|
|
|
2013-07-10 16:28:12 +00:00
|
|
|
depends_on 'automake' => :build if build.head?
|
2012-08-12 17:25:01 +00:00
|
|
|
depends_on 'libtool' => :build
|
2013-07-02 15:48:47 +00:00
|
|
|
depends_on 'libxml2'
|
|
|
|
depends_on 'libxslt'
|
|
|
|
depends_on 'curl' if MacOS.version <= :lion
|
2012-08-12 17:25:01 +00:00
|
|
|
|
|
|
|
def install
|
2013-07-10 16:28:12 +00:00
|
|
|
# If build from read run script to run autoconf
|
|
|
|
system "sh ./bin/setup.sh" if build.head?
|
|
|
|
|
2012-08-12 17:25:01 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|