moreutils 0.51

Use regular makefile, because building ifdata and man pages now works
more portably.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Peter Eisentraut 2014-03-03 16:21:36 -05:00 committed by Mike McQuaid
parent cda9361d2d
commit f4f3ebb112

View file

@ -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