aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/moreutils.rb
diff options
context:
space:
mode:
authorPeter Eisentraut2014-03-03 16:21:36 -0500
committerMike McQuaid2014-03-03 22:02:33 +0000
commit8aee6cc0cb0fd6099c54e1b6600f2f2db52f2a51 (patch)
tree246520ed3731d93b4bffe7655e41b147c075efcb /Library/Formula/moreutils.rb
parent40a96551e5c47c32b2bf511e5afea1a43df7f20e (diff)
downloadhomebrew-8aee6cc0cb0fd6099c54e1b6600f2f2db52f2a51.tar.bz2
moreutils 0.51
Use regular makefile, because building ifdata and man pages now works more portably. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/moreutils.rb')
-rw-r--r--Library/Formula/moreutils.rb19
1 files changed, 11 insertions, 8 deletions
diff --git a/Library/Formula/moreutils.rb b/Library/Formula/moreutils.rb
index 4173e110e..bb44c3cf4 100644
--- a/Library/Formula/moreutils.rb
+++ b/Library/Formula/moreutils.rb
@@ -2,9 +2,11 @@ require 'formula'
class Moreutils < Formula
homepage 'http://packages.debian.org/unstable/utils/moreutils'
- url 'http://mirrors.kernel.org/debian/pool/main/m/moreutils/moreutils_0.50.tar.gz'
- mirror 'http://ftp.us.debian.org/debian/pool/main/m/moreutils/moreutils_0.50.tar.gz'
- sha1 'f2d2cab5be2ba4b9a568ea32becf866ee4a37d9d'
+ url 'http://mirrors.kernel.org/debian/pool/main/m/moreutils/moreutils_0.51.tar.gz'
+ mirror 'http://ftp.us.debian.org/debian/pool/main/m/moreutils/moreutils_0.51.tar.gz'
+ sha1 '374b8c3bea962bbcde4a8158051c570a1fec6811'
+
+ depends_on "docbook-xsl" => :build
conflicts_with 'parallel',
:because => "both install a 'parallel' executable."
@@ -13,10 +15,11 @@ class Moreutils < Formula
:because => "both install a 'ts' executable."
def install
- # "make all" will try to build the man pages, which requires Docbook
- scripts = %w{vidir vipe ts combine zrun chronic}
- bins = %w{isutf8 ifne pee sponge mispipe lckdo parallel errno}
- system "make", *bins
- bin.install scripts + bins
+ inreplace "Makefile",
+ "/usr/share/xml/docbook/stylesheet/docbook-xsl",
+ Formula["docbook-xsl"].opt_prefix/"docbook-xsl"
+ system "make", "all"
+ system "make", "check"
+ system "make", "install", "PREFIX=#{prefix}"
end
end