26 lines
831 B
Ruby
26 lines
831 B
Ruby
require 'formula'
|
|
|
|
class Pth < Formula
|
|
homepage 'http://www.gnu.org/software/pth/'
|
|
url 'http://ftpmirror.gnu.org/pth/pth-2.0.7.tar.gz'
|
|
mirror 'http://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz'
|
|
sha1 '9a71915c89ff2414de69fe104ae1016d513afeee'
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "0ca2ae935487bc12119f942c77b9e52acdbc3a38" => :mavericks
|
|
sha1 "58d56997dc5fa20d856b3068e228424540e0e853" => :mountain_lion
|
|
sha1 "d5f5cb9238d6dd2b98b3ede6cb34bad28cac9109" => :lion
|
|
end
|
|
|
|
def install
|
|
ENV.deparallelize
|
|
# Note: shared library will not be build with --disable-debug, so don't add that flag
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}"
|
|
system "make"
|
|
system "make test"
|
|
system "make install"
|
|
end
|
|
end
|