aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-12 12:20:52 +0200
committerXu Cheng2015-04-26 17:38:41 +0800
commiteed1bc17e192bc2d50a692a122179e2c7155d4c0 (patch)
treee8fcea746db17b632eaaaa0fdf7243eeeec6bdd6
parentfdb766f76558750832a93c8bf7124b0a403cb8e7 (diff)
downloadhomebrew-eed1bc17e192bc2d50a692a122179e2c7155d4c0.tar.bz2
mkcue: test added
Closes #38583. Signed-off-by: Xu Cheng <xucheng@me.com>
-rw-r--r--Library/Formula/mkcue.rb22
1 files changed, 13 insertions, 9 deletions
diff --git a/Library/Formula/mkcue.rb b/Library/Formula/mkcue.rb
index 8c85219c2..e28cc637e 100644
--- a/Library/Formula/mkcue.rb
+++ b/Library/Formula/mkcue.rb
@@ -1,15 +1,19 @@
-require 'formula'
-
class Mkcue < Formula
- homepage 'http://packages.debian.org/source/stable/mkcue'
- url 'http://ftp.de.debian.org/debian/pool/main/m/mkcue/mkcue_1.orig.tar.gz'
- version '1'
- sha1 'd9a69718ba3d862b589588bdf61796f755200f9d'
+ homepage "https://packages.debian.org/source/stable/mkcue"
+ url "http://ftp.de.debian.org/debian/pool/main/m/mkcue/mkcue_1.orig.tar.gz"
+ version "1"
+ sha256 "2aaf57da4d0f2e24329d5e952e90ec182d4aa82e4b2e025283e42370f9494867"
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
"--prefix=#{prefix}"
- system "make"
- bin.install "mkcue"
+ bin.mkpath
+ system "make", "install"
+ end
+
+ test do
+ touch testpath/"test"
+ system "#{bin}/mkcue", "test"
end
end