2012-02-24 19:19:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libextractor < Formula
|
|
|
|
homepage 'http://www.gnu.org/software/libextractor/'
|
2013-11-15 04:04:59 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/libextractor/libextractor-1.2.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/libextractor/libextractor-1.2.tar.gz'
|
|
|
|
sha1 'c10a5a20a1850b8e89eeb41f3f2eccb7db9d5e53'
|
2012-02-24 19:19:32 +00:00
|
|
|
|
2012-07-25 14:56:15 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-11-04 18:00:06 +00:00
|
|
|
depends_on :libtool => :run
|
2013-11-15 04:04:59 +00:00
|
|
|
depends_on 'iso-codes' => :optional
|
2012-02-24 19:19:32 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
2013-11-15 04:04:59 +00:00
|
|
|
system "./configure", "--disable-silent-rules",
|
2012-02-24 19:19:32 +00:00
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/extract", "-v"
|
|
|
|
end
|
|
|
|
end
|