homebrew-core/Formula/unpaper.rb

18 lines
454 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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|
2010-09-06 18:48:21 +00:00
s.change_make_var! "CFLAGS", ENV.cflags
s.change_make_var! "LDFLAGS", ENV.ldflags
end
system 'bash make.sh'
bin.install 'unpaper'
end
end