2004-10-22 16:34:58 +02:00
|
|
|
{stdenv, fetchurl, perl}:
|
|
|
|
|
2009-08-28 16:11:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2011-01-09 20:24:32 +01:00
|
|
|
name = "lcov-1.9";
|
2010-04-18 23:51:33 +02:00
|
|
|
|
2004-10-22 16:34:58 +02:00
|
|
|
src = fetchurl {
|
2009-08-28 16:11:09 +02:00
|
|
|
url = "mirror://sourceforge/ltp/${name}.tar.gz";
|
2011-01-09 20:24:32 +01:00
|
|
|
sha256 = "1jhs1x2qy5la5gpdfl805zm11rsz6anla3b0wffk6wq79xfi4zn3";
|
2004-10-22 16:34:58 +02:00
|
|
|
};
|
2008-03-20 19:51:07 +01:00
|
|
|
|
2010-05-28 14:58:50 +02:00
|
|
|
patches =
|
2012-03-02 16:57:36 +01:00
|
|
|
[ ./find-source.patch ]
|
|
|
|
++ (stdenv.lib.optional stdenv.isFreeBSD ./freebsd-install.patch);
|
2009-08-31 17:02:01 +02:00
|
|
|
|
2008-03-20 19:51:07 +01: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 23:51:33 +02:00
|
|
|
for i in "$out/bin/"*; do
|
2008-03-20 19:51:07 +01:00
|
|
|
substituteInPlace $i --replace /usr/bin/perl ${perl}/bin/perl
|
|
|
|
done
|
2010-04-18 23:51:33 +02:00
|
|
|
'';
|
2008-03-20 19:51:07 +01:00
|
|
|
|
|
|
|
meta = {
|
2010-04-18 23:51:33 +02: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 19:51:07 +01:00
|
|
|
homepage = http://ltp.sourceforge.net/coverage/lcov.php;
|
2010-04-18 23:51:33 +02:00
|
|
|
license = "GPLv2+";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2011-12-06 15:12:43 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2008-03-20 19:51:07 +01:00
|
|
|
};
|
2004-10-22 16:34:58 +02:00
|
|
|
}
|