2010-04-23 11:32:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Lcov < Formula
|
|
|
|
homepage 'http://ltp.sourceforge.net/coverage/lcov.php'
|
2014-07-22 21:00:03 +00:00
|
|
|
url 'https://downloads.sourceforge.net/ltp/lcov-1.11.tar.gz'
|
|
|
|
sha1 'bf8ed68c06805a71528a2a67dd714830afd3ccb5'
|
2010-04-23 11:32:02 +00:00
|
|
|
|
2014-07-29 01:05:09 +00:00
|
|
|
head 'https://github.com/linux-test-project/lcov.git'
|
|
|
|
|
2014-07-22 21:04:54 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "edad7ab819deb6032734442ea88c343e6779f60c" => :mavericks
|
|
|
|
sha1 "61cb990e2928ad0a1b29e131790790994b5a95d6" => :mountain_lion
|
|
|
|
sha1 "b417a6801535d439dc26200213e63a4536989d11" => :lion
|
|
|
|
end
|
|
|
|
|
2014-04-17 15:26:34 +00:00
|
|
|
patch :DATA
|
|
|
|
|
2010-04-23 11:32:02 +00:00
|
|
|
def install
|
2014-04-17 15:26:34 +00:00
|
|
|
inreplace %w[bin/genhtml bin/geninfo bin/lcov],
|
|
|
|
"/etc/lcovrc", "#{prefix}/etc/lcovrc"
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2010-04-23 11:32:02 +00:00
|
|
|
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
|