2014-05-21 17:29:56 +00:00
|
|
|
require "formula"
|
2012-02-24 19:19:32 +00:00
|
|
|
|
|
|
|
class Libextractor < Formula
|
2014-05-21 17:29:56 +00:00
|
|
|
homepage "http://www.gnu.org/software/libextractor/"
|
|
|
|
url "http://ftpmirror.gnu.org/libextractor/libextractor-1.3.tar.gz"
|
|
|
|
mirror "http://ftp.gnu.org/gnu/libextractor/libextractor-1.3.tar.gz"
|
|
|
|
sha1 "613d0b80e83c79c3e05e073bcda0d0d0bd1f3336"
|
2012-02-24 19:19:32 +00:00
|
|
|
|
2014-05-21 17:29:56 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-05-23 21:17:35 +00:00
|
|
|
depends_on "libtool" => :run
|
2014-05-21 17:29:56 +00:00
|
|
|
depends_on "iso-codes" => :optional
|
|
|
|
|
|
|
|
conflicts_with "sptk", :because => "both install `extract`"
|
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
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-02-24 19:19:32 +00:00
|
|
|
system "#{bin}/extract", "-v"
|
|
|
|
end
|
|
|
|
end
|