aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorHiroyuki Iwatsuki2010-04-23 20:32:02 +0900
committerAdam Vandenberg2010-06-18 12:23:07 -0700
commit7153fbf24f55926685a10019898cc2f31f788cb9 (patch)
tree9f233a7b6da02d0855a774cae2eb8160fc5c9b49 /Library
parentef9cdf79e6875cdc91442c7635669ad99deb0387 (diff)
downloadhomebrew-7153fbf24f55926685a10019898cc2f31f788cb9.tar.bz2
lcov formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/lcov.rb46
1 files changed, 46 insertions, 0 deletions
diff --git a/Library/Formula/lcov.rb b/Library/Formula/lcov.rb
new file mode 100644
index 000000000..0a1890b5b
--- /dev/null
+++ b/Library/Formula/lcov.rb
@@ -0,0 +1,46 @@
+require 'formula'
+
+class Lcov < Formula
+ url 'http://downloads.sourceforge.net/ltp/lcov-1.8.tar.gz'
+ homepage 'http://ltp.sourceforge.net/coverage/lcov.php'
+ md5 'a909d9145111c6133c65b9dce007d7a1'
+
+ depends_on 'coreutils'
+
+ def install
+ %w(bin/gendesc bin/genhtml bin/geninfo bin/genpng bin/lcov).each do |file|
+ inreplace file, '/etc/lcovrc', "#{prefix}/etc/lcovrc"
+ end
+ system "make PREFIX=#{prefix} install"
+ end
+
+ def patches
+ DATA
+ end
+end
+
+__END__
+--- lcov-1.8/bin/install.sh~ 2010-01-29 19:14:46.000000000 +0900
++++ lcov-1.8/bin/install.sh 2010-04-16 21:40:57.000000000 +0900
+@@ -34,7 +34,7 @@
+ local TARGET=$2
+ local PARAMS=$3
+
+- install -p -D $PARAMS $SOURCE $TARGET
++ ginstall -p -D $PARAMS $SOURCE $TARGET
+ }
+
+
+--- lcov-1.8/Makefile~ 2010-01-29 19:14:46.000000000 +0900
++++ lcov-1.8/Makefile 2010-04-16 21:42:26.000000000 +0900
+@@ -15,8 +15,8 @@
+ RELEASE := 1
+
+ CFG_DIR := $(PREFIX)/etc
+-BIN_DIR := $(PREFIX)/usr/bin
+-MAN_DIR := $(PREFIX)/usr/share/man
++BIN_DIR := $(PREFIX)/bin
++MAN_DIR := $(PREFIX)/share/man
+ TMP_DIR := /tmp/lcov-tmp.$(shell echo $$$$)
+ FILES := $(wildcard bin/*) $(wildcard man/*) README CHANGES Makefile \
+ $(wildcard rpm/*) lcovrc