2012-02-24 19:19:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libextractor < Formula
|
|
|
|
homepage 'http://www.gnu.org/software/libextractor/'
|
2012-07-28 14:54:21 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/libextractor/libextractor-0.6.3.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/libextractor/libextractor-0.6.3.tar.gz'
|
|
|
|
sha1 '58ca71d04fcbac6ea9675bd91ffa18a26c865ebc'
|
2012-02-24 19:19:32 +00:00
|
|
|
|
2012-07-25 14:56:15 +00:00
|
|
|
# The version of libtool on Lion is new enough:
|
|
|
|
# $ /usr/bin/libtool -V
|
|
|
|
# Apple Inc. version cctools-822
|
|
|
|
# But compilation fails on Snow Leopard without a newer one.
|
2012-02-24 19:19:32 +00:00
|
|
|
depends_on 'libtool' => :build unless MacOS.lion?
|
2012-07-25 14:56:15 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-02-24 19:19:32 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/extract", "-v"
|
|
|
|
end
|
|
|
|
end
|