2010-04-23 11:32:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Lcov < Formula
|
2010-10-18 04:27:08 +00:00
|
|
|
url 'http://downloads.sourceforge.net/ltp/lcov-1.9.tar.gz'
|
2010-04-23 11:32:02 +00:00
|
|
|
homepage 'http://ltp.sourceforge.net/coverage/lcov.php'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '5aff4b998b1288896734326a0b74ab536339ec21'
|
2010-04-23 11:32:02 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
%w(bin/gendesc bin/genhtml bin/geninfo bin/genpng bin/lcov).each do |file|
|
|
|
|
inreplace file, '/etc/lcovrc', "#{prefix}/etc/lcovrc"
|
|
|
|
end
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2010-04-23 11:32:02 +00:00
|
|
|
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
|
2010-10-18 07:46:06 +00:00
|
|
|
@@ -34,7 +34,8 @@
|
2010-04-23 11:32:02 +00:00
|
|
|
local TARGET=$2
|
|
|
|
local PARAMS=$3
|
|
|
|
|
|
|
|
- install -p -D $PARAMS $SOURCE $TARGET
|
2010-10-18 07:46:06 +00:00
|
|
|
+ mkdir -p `dirname $TARGET`
|
|
|
|
+ install -p $PARAMS $SOURCE $TARGET
|
2010-04-23 11:32:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
--- 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
|