diff --git a/Formula/moreutils.rb b/Formula/moreutils.rb index 4173e110ee..bb44c3cf4c 100644 --- a/Formula/moreutils.rb +++ b/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