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-12-27 16:45:14 +00:00
|
|
|
url 'https://github.com/Juniper/libslax/releases/download/0.17.2/libslax-0.17.2.tar.gz'
|
|
|
|
sha1 '20dba3ea27fc6dd6d9e2aa7ad6e931b1dfe8d6bc'
|
2012-08-12 17:25:01 +00:00
|
|
|
|
2013-09-22 01:47:15 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/Juniper/libslax.git'
|
|
|
|
|
2013-11-13 17:01:29 +00:00
|
|
|
depends_on 'autoconf' => :build
|
2013-09-22 01:47:15 +00:00
|
|
|
depends_on 'automake' => :build
|
|
|
|
end
|
2013-06-17 19:23:09 +00:00
|
|
|
|
2012-08-12 17:25:01 +00:00
|
|
|
depends_on 'libtool' => :build
|
2013-11-07 05:49:55 +00:00
|
|
|
|
|
|
|
if MacOS.version <= :mountain_lion
|
|
|
|
depends_on 'libxml2'
|
|
|
|
depends_on 'libxslt'
|
|
|
|
end
|
|
|
|
|
2013-07-02 15:48:47 +00:00
|
|
|
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",
|
2013-09-02 01:17:45 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-libedit"
|
2012-08-12 17:25:01 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|