From 8aee6cc0cb0fd6099c54e1b6600f2f2db52f2a51 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 3 Mar 2014 16:21:36 -0500 Subject: moreutils 0.51 Use regular makefile, because building ifdata and man pages now works more portably. Signed-off-by: Mike McQuaid --- Library/Formula/moreutils.rb | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3