aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/deheader.rb
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-13 10:11:42 +0100
committerMike McQuaid2015-01-13 11:35:44 +0000
commit1da5ee3bd12d0106adb49037044f4c6c9fc26056 (patch)
treea5d43fe04d46073243839615272b59763d64d198 /Library/Formula/deheader.rb
parent6db4782a9fe5c5c2b418ac8b212fbef39f6f92d0 (diff)
downloadhomebrew-1da5ee3bd12d0106adb49037044f4c6c9fc26056.tar.bz2
deheader 1.0
Closes #35808. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/deheader.rb')
-rw-r--r--Library/Formula/deheader.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Formula/deheader.rb b/Library/Formula/deheader.rb
index 6b8783d44..1d14393ba 100644
--- a/Library/Formula/deheader.rb
+++ b/Library/Formula/deheader.rb
@@ -1,10 +1,8 @@
-require 'formula'
-
class Deheader < Formula
- homepage 'http://www.catb.org/~esr/deheader'
- url 'http://www.catb.org/~esr/deheader/deheader-0.8.tar.gz'
- sha1 '4527b4675a7b06d728cfa989a3b7844cdf091b40'
- head 'https://git.gitorious.org/deheader/deheader.git'
+ homepage "http://www.catb.org/~esr/deheader"
+ url "http://www.catb.org/~esr/deheader/deheader-1.0.tar.gz"
+ sha1 "dc9fc816af1631a84ace7f94a85a3a424d72dbed"
+ head "https://git.gitorious.org/deheader/deheader.git"
def install
bin.install "deheader"
@@ -20,6 +18,6 @@ class Deheader < Formula
return 0;
}
EOS
- assert_equal "121", `deheader test.c | tr -cd 0-9`
+ assert_equal "121", shell_output("deheader test.c | tr -cd 0-9")
end
end