aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/coreutils.rb
diff options
context:
space:
mode:
authorXu Cheng2014-12-28 20:18:05 +0800
committerMike McQuaid2014-12-28 14:02:37 +0000
commite3d60629ef8770027339980f72622415be5c656f (patch)
treebf3382e505334615a236572f93bc00c754845c00 /Library/Formula/coreutils.rb
parentb6aeb12947a92a8b702cd28d03f8e2ec9f61a7d9 (diff)
downloadhomebrew-e3d60629ef8770027339980f72622415be5c656f.tar.bz2
coreutils: modernize and add test
Closes #35305. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/coreutils.rb')
-rw-r--r--Library/Formula/coreutils.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/coreutils.rb b/Library/Formula/coreutils.rb
index fd7c7d581..f1f0322a7 100644
--- a/Library/Formula/coreutils.rb
+++ b/Library/Formula/coreutils.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class Coreutils < Formula
homepage "https://www.gnu.org/software/coreutils"
url "http://ftpmirror.gnu.org/coreutils/coreutils-8.23.tar.xz"
@@ -26,7 +24,7 @@ class Coreutils < Formula
system "./configure", "--prefix=#{prefix}",
"--program-prefix=g",
"--without-gmp"
- system "make install"
+ system "make", "install"
# Symlink all commands into libexec/gnubin without the 'g' prefix
coreutils_filenames(bin).each do |cmd|
@@ -62,6 +60,12 @@ class Coreutils < Formula
end
filenames.sort
end
+
+ test do
+ (testpath/"test").write("test")
+ (testpath/"test.sha1").write("a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 test")
+ system "#{bin}/gsha1sum", "-c", "test.sha1"
+ end
end
__END__