2010-05-21 03:20:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Unpaper < Formula
|
2010-05-21 03:20:06 +00:00
|
|
|
url 'http://download.berlios.de/unpaper/unpaper-0.3.tar.gz'
|
|
|
|
homepage 'http://unpaper.berlios.de/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '120eee7c635eeb8ea75431c2dfba89bd8c132493'
|
2010-05-21 03:20:06 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# Fix make.sh to take CFLAGS/LDFLAGS from environment
|
|
|
|
inreplace "make.sh" do |s|
|
2010-09-06 18:48:21 +00:00
|
|
|
s.change_make_var! "CFLAGS", ENV.cflags
|
|
|
|
s.change_make_var! "LDFLAGS", ENV.ldflags
|
2010-05-21 03:20:06 +00:00
|
|
|
end
|
|
|
|
system 'bash make.sh'
|
|
|
|
bin.install 'unpaper'
|
|
|
|
end
|
|
|
|
end
|