2011-09-02 07:57:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sam2p < Formula
|
|
|
|
homepage 'http://code.google.com/p/sam2p/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://sam2p.googlecode.com/files/sam2p-0.49.2.tar.gz'
|
2013-09-15 18:14:45 +00:00
|
|
|
sha1 'a26db7408dfa42ab615d087774128cc5b20ab61d'
|
2012-08-31 17:16:19 +00:00
|
|
|
|
|
|
|
fails_with :clang do
|
|
|
|
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
|