homebrew-core/Formula/libslax.rb

34 lines
837 B
Ruby
Raw Normal View History

require 'formula'
class Libslax < Formula
homepage 'http://www.libslax.org/'
url 'https://github.com/Juniper/libslax/releases/download/0.17.1/libslax-0.17.1.tar.gz'
sha1 '3d2df8e5c922442f253ed70db93259efc6a07750'
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
depends_on 'libtool' => :build
if MacOS.version <= :mountain_lion
depends_on 'libxml2'
depends_on 'libxslt'
end
depends_on 'curl' if MacOS.version <= :lion
def install
# If build from read run script to run autoconf
system "sh ./bin/setup.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-libedit"
system "make install"
end
end