deheader 0.8
Closes Homebrew/homebrew#27142. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
772a189fbc
commit
1834783850
1 changed files with 27 additions and 0 deletions
27
Formula/deheader.rb
Normal file
27
Formula/deheader.rb
Normal file
|
@ -0,0 +1,27 @@
|
|||
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'
|
||||
|
||||
depends_on :python
|
||||
|
||||
def install
|
||||
bin.install "deheader"
|
||||
man1.install "deheader.1"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
int main(void) {
|
||||
printf("%s", "foo");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
assert_equal "121", `deheader test.c | tr -cd 0-9`
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue