aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorFlorian Sowade2009-11-30 09:44:20 +0100
committerMax Howell2009-12-06 15:35:23 +0000
commitc77a4bfbaf6db4d76749d4aed6101de07c89fa69 (patch)
treefb8299fcb05a175638d38b830fd8f57fce2bfffd /Library/Formula
parent432d64a297df0e1cf4424f7f2a0b51f37e1b82e6 (diff)
downloadhomebrew-c77a4bfbaf6db4d76749d4aed6101de07c89fa69.tar.bz2
Formula for ohcount
Ohcount is the source code line counter that powers Ohloh. Ohcount supports over 70 popular programming languages, and has been used to count over 6 billion lines of code by 300,000 developers!
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ohcount.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/ohcount.rb b/Library/Formula/ohcount.rb
new file mode 100644
index 000000000..fceb1dd48
--- /dev/null
+++ b/Library/Formula/ohcount.rb
@@ -0,0 +1,32 @@
+require 'formula'
+
+class Ohcount <Formula
+ url 'http://downloads.sourceforge.net/project/ohcount/ohcount-3.0.0.tar.gz'
+ homepage 'http://sourceforge.net/apps/trac/ohcount/'
+ md5 '08f97d01adde8b45635abfe93f8a717a'
+
+ depends_on 'ragel'
+ depends_on 'pcre'
+
+ def patches
+ DATA
+ end
+
+ def install
+ system "./build", "ohcount"
+ bin.install 'bin/ohcount'
+ end
+end
+
+__END__
+--- a/build
++++ b/build
+@@ -38,7 +38,7 @@ else
+ fi
+
+ # C compiler and flags
+-cc="gcc -fPIC -g $CFLAGS $WARN -I$INC_DIR -L$LIB_DIR"
++cc="$CC -fPIC -g $CFLAGS $WARN $CPPFLAGS $LDFLAGS"
+
+ # Ohcount source files
+ files="src/sourcefile.c \