2004-10-22 15:34:58 +01:00
|
|
|
{stdenv, fetchurl, perl}:
|
|
|
|
|
2009-08-28 15:11:09 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-04-18 22:51:33 +01:00
|
|
|
name = "lcov-1.8";
|
|
|
|
|
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";
|
2010-04-18 22:51:33 +01:00
|
|
|
sha256 = "1xrd9abh1gyki9ln9v772dq7jinvyrvx39s3kxbpiila68mbpa7j";
|
2004-10-22 15:34:58 +01:00
|
|
|
};
|
2008-03-20 18:51:07 +00:00
|
|
|
|
2009-08-31 16:02:01 +01:00
|
|
|
patches = [ ./find-source.patch ];
|
|
|
|
|
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
|
|
|
|
|
|
|
meta = {
|
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+";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2008-03-20 18:51:07 +00:00
|
|
|
};
|
2004-10-22 15:34:58 +01:00
|
|
|
}
|