2004-10-22 15:34:58 +01:00
|
|
|
{stdenv, fetchurl, perl}:
|
|
|
|
|
2009-08-28 15:11:09 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2013-05-28 09:08:39 +01:00
|
|
|
name = "lcov-1.10";
|
2010-04-18 22:51:33 +01:00
|
|
|
|
2004-10-22 15:34:58 +01:00
|
|
|
src = fetchurl {
|
2009-08-28 15:11:09 +01:00
|
|
|
url = "mirror://sourceforge/ltp/${name}.tar.gz";
|
2013-05-28 09:08:39 +01:00
|
|
|
sha256 = "13xq2ln4jjasslqzzhr5g11q1c19gwpng1jphzbzmylmrjz62ila";
|
2004-10-22 15:34:58 +01:00
|
|
|
};
|
2008-03-20 18:51:07 +00:00
|
|
|
|
2010-05-28 13:58:50 +01:00
|
|
|
patches =
|
2014-02-05 18:45:15 +00:00
|
|
|
[ ./lcov-except-unreach.patch ]
|
|
|
|
++ stdenv.lib.optional stdenv.isFreeBSD ./freebsd-install.patch;
|
2009-08-31 16:02:01 +01:00
|
|
|
|
2008-03-20 18:51:07 +00:00
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(PREFIX=$out BIN_DIR=$out/bin MAN_DIR=$out/share/man)
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace bin/install.sh --replace /bin/bash $shell
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2010-04-18 22:51:33 +01:00
|
|
|
for i in "$out/bin/"*; do
|
2008-03-20 18:51:07 +00:00
|
|
|
substituteInPlace $i --replace /usr/bin/perl ${perl}/bin/perl
|
|
|
|
done
|
2010-04-18 22:51:33 +01:00
|
|
|
'';
|
2008-03-20 18:51:07 +00:00
|
|
|
|
2014-01-28 17:11:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-18 22:51:33 +01:00
|
|
|
description = "LCOV, a code coverage tool that enhances GNU gcov";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' LCOV is an extension of GCOV, a GNU tool which provides information
|
|
|
|
about what parts of a program are actually executed (i.e.,
|
|
|
|
"covered") while running a particular test case. The extension
|
|
|
|
consists of a set of PERL scripts which build on the textual GCOV
|
|
|
|
output to implement the following enhanced functionality such as
|
|
|
|
HTML output.
|
|
|
|
'';
|
|
|
|
|
2008-03-20 18:51:07 +00:00
|
|
|
homepage = http://ltp.sourceforge.net/coverage/lcov.php;
|
2010-04-18 22:51:33 +01:00
|
|
|
license = "GPLv2+";
|
|
|
|
|
2014-01-28 17:11:00 +00:00
|
|
|
maintainers = [ maintainers.mornfall ];
|
|
|
|
platforms = platforms.all;
|
2008-03-20 18:51:07 +00:00
|
|
|
};
|
2004-10-22 15:34:58 +01:00
|
|
|
}
|