new formula: unpaper

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
David Sanson 2010-05-20 23:20:06 -04:00 committed by Adam Vandenberg
parent d8571bef03
commit fd250c941a

17
Formula/unpaper.rb Normal file
View file

@ -0,0 +1,17 @@
require 'formula'
class Unpaper <Formula
url 'http://download.berlios.de/unpaper/unpaper-0.3.tar.gz'
homepage 'http://unpaper.berlios.de/'
md5 'be41eaf8556e7df39ab53939c99c4f7b'
def install
# Fix make.sh to take CFLAGS/LDFLAGS from environment
inreplace "make.sh" do |s|
s.change_make_var! "CFLAGS", ENV['CFLAGS']
s.change_make_var! "LDFLAGS", ENV['LDFLAGS']
end
system 'bash make.sh'
bin.install 'unpaper'
end
end