2011-09-02 07:57:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sam2p < Formula
|
|
|
|
homepage 'http://code.google.com/p/sam2p/'
|
2012-08-31 17:16:19 +00:00
|
|
|
url 'http://sam2p.googlecode.com/files/sam2p-0.49.1.tar.gz'
|
|
|
|
sha1 '5922e6029e2ed4e524066080476e02ddfdbcc18e'
|
|
|
|
|
|
|
|
fails_with :clang do
|
|
|
|
build 421
|
|
|
|
cause "treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated"
|
|
|
|
end
|
2011-09-02 07:57:15 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-31 17:16:19 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-lzw",
|
|
|
|
"--enable-gif"
|
2011-09-02 07:57:15 +00:00
|
|
|
system "make"
|
|
|
|
|
|
|
|
bin.install "sam2p"
|
|
|
|
bin.install "sam2p_pdf_scale.pl"
|
|
|
|
end
|
|
|
|
end
|