aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/unpaper.rb17
1 files changed, 6 insertions, 11 deletions
diff --git a/Library/Formula/unpaper.rb b/Library/Formula/unpaper.rb
index 660658f5e..ca701c493 100644
--- a/Library/Formula/unpaper.rb
+++ b/Library/Formula/unpaper.rb
@@ -1,17 +1,12 @@
-require 'formula'
+require "formula"
class Unpaper < Formula
- homepage 'http://unpaper.berlios.de/'
- url 'http://download.berlios.de/unpaper/unpaper-0.3.tar.gz'
- sha1 '120eee7c635eeb8ea75431c2dfba89bd8c132493'
+ homepage "https://www.flameeyes.eu/projects/unpaper"
+ url "https://www.flameeyes.eu/files/unpaper-5.1.tar.xz"
+ sha1 "97068a99d47d1d65030c88d52058c1d5ff7b41d1"
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'
+ system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
+ system "make", "install"
end
end