2004-10-22 16:34:58 +02:00
|
|
|
{stdenv, fetchurl, perl}:
|
|
|
|
|
2009-08-28 16:11:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2013-05-28 10:08:39 +02:00
|
|
|
name = "lcov-1.10";
|
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";
|
2013-05-28 10:08:39 +02:00
|
|
|
sha256 = "13xq2ln4jjasslqzzhr5g11q1c19gwpng1jphzbzmylmrjz62ila";
|
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 =
|
2013-05-28 10:08:39 +02:00
|
|
|
(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+";
|
|
|
|
|
2013-08-16 23:44:33 +02:00
|
|
|
maintainers = [ ];
|
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
|
|
|
}
|