blob: 697f9bb72f7089ee7994c2a027f475f8b4814303 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
require 'formula'
class Libslax < Formula
homepage 'http://www.libslax.org/'
url 'https://github.com/Juniper/libslax/releases/download/0.18.1/libslax-0.18.1.tar.gz'
sha1 '308abc330b0f87a0774992c50d141399c13983fc'
bottle do
sha1 "2f9c5d81cf559ae7967bc664454ceec96a590659" => :mavericks
sha1 "812a6df66e465794d817a8942dfb5bf107be19d7" => :mountain_lion
sha1 "db00bdf5d998d64ba0a5805208866804814ccc87" => :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
|