* lcov 1.6.

svn path=/nixpkgs/trunk/; revision=11245
This commit is contained in:
Eelco Dolstra
2008-03-20 18:51:07 +00:00
parent cb01d8b23b
commit 2cf0055092
4 changed files with 39 additions and 187 deletions
@@ -1,12 +1,35 @@
{stdenv, fetchurl, perl}:
stdenv.mkDerivation {
name = "lcov-1.4pre-cvs-20041021";
builder = ./builder.sh;
name = "lcov-1.6";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/lcov-1.4pre-cvs-20041021.tar.gz;
md5 = "5150da759b4047b19d026c6ab1216841";
url = mirror://sourceforge/ltp/lcov-1.6.tar.gz;
sha256 = "0d6lb0vlj3lvqmm678jic9h25q4dnlkbv37wg5yj311hdr9ls1kx";
};
patches = [./lcov.patch];
inherit perl;
patches = [
# http://ltp.cvs.sourceforge.net/ltp/utils/analysis/lcov/bin/geninfo?revision=1.33&view=markup&pathrev=HEAD
./string.patch
];
preBuild = ''
makeFlagsArray=(PREFIX=$out BIN_DIR=$out/bin MAN_DIR=$out/share/man)
'';
preInstall = ''
substituteInPlace bin/install.sh --replace /bin/bash $shell
'';
postInstall = ''
for i in $out/bin/*; do
substituteInPlace $i --replace /usr/bin/perl ${perl}/bin/perl
done
''; # */
meta = {
description = "A code coverage tool for Linux";
homepage = http://ltp.sourceforge.net/coverage/lcov.php;
};
}