39 lines
1,023 B
Ruby
39 lines
1,023 B
Ruby
require 'formula'
|
|
|
|
class Libslax < Formula
|
|
homepage 'http://www.libslax.org/'
|
|
url 'https://github.com/Juniper/libslax/releases/download/0.19.0/libslax-0.19.0.tar.gz'
|
|
sha1 '0e55e62065012a9bd51d775a949b3d5c71957374'
|
|
|
|
bottle do
|
|
revision 1
|
|
sha1 "487cc4e9ae3369e3dc0e6b9ba69de00c5918abe2" => :yosemite
|
|
sha1 "0ddfdfd5b04da4c6199486643a4bcbfc3a60d5b5" => :mavericks
|
|
sha1 "a30b683ea6284c6e927b37030ab104071180e212" => :mountain_lion
|
|
end
|
|
|
|
head do
|
|
url 'https://github.com/Juniper/libslax.git'
|
|
|
|
depends_on 'autoconf' => :build
|
|
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
|
|
system "sh", "./bin/setup.sh" if build.head?
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--enable-libedit"
|
|
system "make install"
|
|
end
|
|
end
|