aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-02-06 09:16:42 +0100
committerMike McQuaid2015-02-06 10:18:50 +0000
commit4842aa958d1bbd2063647b1bd424222bc923bf7d (patch)
tree7980410c2b8239ae8147a50d0c26914cca922f91 /Library/Formula
parent5e3c955f9b6eb1bfd8a81aa9c1dc718c346f3037 (diff)
downloadhomebrew-4842aa958d1bbd2063647b1bd424222bc923bf7d.tar.bz2
ht: basic test added
Closes #36593. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ht.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/ht.rb b/Library/Formula/ht.rb
index 72e9a387d..a843f70a5 100644
--- a/Library/Formula/ht.rb
+++ b/Library/Formula/ht.rb
@@ -1,9 +1,7 @@
-require 'formula'
-
class Ht < Formula
- homepage 'http://hte.sf.net/'
- url 'https://downloads.sourceforge.net/project/hte/ht-source/ht-2.1.0.tar.bz2'
- sha256 '31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70'
+ homepage "http://hte.sf.net/"
+ url "https://downloads.sourceforge.net/project/hte/ht-source/ht-2.1.0.tar.bz2"
+ sha256 "31f5e8e2ca7f85d40bb18ef518bf1a105a6f602918a0755bc649f3f407b75d70"
bottle do
cellar :any
@@ -12,13 +10,17 @@ class Ht < Formula
sha1 "1e862ab300b0e5a417d96d628a7d2163865bcce9" => :mountain_lion
end
- depends_on 'lzo'
+ depends_on "lzo"
def install
chmod 0755, "./install-sh"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-x11-textmode"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ assert_match "ht #{version}", shell_output("#{bin}/ht -v")
end
end