aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-02-26 18:31:44 +0100
committerMike McQuaid2015-03-03 12:54:57 +0000
commitedc39cc2c0eb7e2b71d71331b7f890c3d5f6f9b1 (patch)
tree07c8b52726298f5dc44a385453d03ccae4dc214a /Library
parenta04c8b3b93bcb953834be676dde1ce24c5c7e244 (diff)
downloadhomebrew-edc39cc2c0eb7e2b71d71331b7f890c3d5f6f9b1.tar.bz2
mercury 14.01.1
Closes #37221. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mercury.rb18
1 files changed, 7 insertions, 11 deletions
diff --git a/Library/Formula/mercury.rb b/Library/Formula/mercury.rb
index fed0e7c27..e98fe0d04 100644
--- a/Library/Formula/mercury.rb
+++ b/Library/Formula/mercury.rb
@@ -1,9 +1,7 @@
-require "formula"
-
class Mercury < Formula
homepage "http://mercurylang.org/"
- url "http://dl.mercurylang.org/release/mercury-srcdist-14.01.tar.gz"
- sha1 "619680675c68a0b953024b7ee4d3886a885d94de"
+ url "http://dl.mercurylang.org/release/mercury-srcdist-14.01.1.tar.gz"
+ sha1 "8d8295aed6cadb6cd2e932490042de6075d18acf"
bottle do
revision 1
@@ -31,12 +29,12 @@ class Mercury < Formula
# The build system doesn't quite honour the mandir/infodir autoconf
# parameters.
- system "make", "install", "PARALLEL=-j", "INSTALL_MAN_DIR=#{man}", "INSTALL_INFO_DIR=#{info}"
+ system "make", "install", "PARALLEL=-j",
+ "INSTALL_MAN_DIR=#{man}",
+ "INSTALL_INFO_DIR=#{info}"
# Remove batch files for windows.
- Dir.glob("#{bin}/*.bat") do |path|
- rm path
- end
+ rm Dir.glob("#{bin}/*.bat")
end
test do
@@ -54,8 +52,6 @@ class Mercury < Formula
system "#{bin}/mmc", "--make", "hello"
assert File.exist?(testpath/"hello")
- output = `#{testpath}/hello`
- assert_equal test_string, output
- assert_equal 0, $?.exitstatus
+ assert_equal test_string, shell_output("#{testpath}/hello")
end
end