lcov: Fix build on FreeBSD.
svn path=/nixpkgs/trunk/; revision=32746
This commit is contained in:
parent
000051b196
commit
d8849a045e
@ -9,8 +9,8 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
patches =
|
||||
[ ./find-source.patch
|
||||
];
|
||||
[ ./find-source.patch ]
|
||||
++ (stdenv.lib.optional stdenv.isFreeBSD ./freebsd-install.patch);
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=(PREFIX=$out BIN_DIR=$out/bin MAN_DIR=$out/share/man)
|
||||
|
13
pkgs/development/tools/analysis/lcov/freebsd-install.patch
Normal file
13
pkgs/development/tools/analysis/lcov/freebsd-install.patch
Normal file
@ -0,0 +1,13 @@
|
||||
FreeBSD's `install' doesn't support `-D'. Thus, use GNU install instead,
|
||||
since `stdenv-native' assumes that `ginstall' is available.
|
||||
|
||||
--- lcov-1.9/bin/install.sh 2012-03-02 16:53:28.000000000 +0100
|
||||
+++ lcov-1.9/bin/install.sh 2010-08-06 13:05:17.000000000 +0200
|
||||
@@ -34,7 +34,7 @@ do_install()
|
||||
local TARGET=$2
|
||||
local PARAMS=$3
|
||||
|
||||
- ginstall -p -D $PARAMS $SOURCE $TARGET
|
||||
+ install -p -D $PARAMS $SOURCE $TARGET
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user