clucene-core: fix install name
This commit is contained in:
parent
147ff753f5
commit
8511f045b7
@ -12,7 +12,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ boost zlib ];
|
||||
|
||||
cmakeFlags = [ "-DBUILD_CONTRIBS=ON" "-DBUILD_CONTRIBS_LIB=ON" ];
|
||||
cmakeFlags = [
|
||||
"-DBUILD_CONTRIBS=ON"
|
||||
"-DBUILD_CONTRIBS_LIB=ON"
|
||||
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
|
||||
];
|
||||
|
||||
patches = # From debian
|
||||
[ ./Fix-pkgconfig-file-by-adding-clucene-shared-library.patch
|
||||
@ -20,13 +24,9 @@ stdenv.mkDerivation rec {
|
||||
./Install-contribs-lib.patch
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ ./fix-darwin.patch ];
|
||||
|
||||
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
install_name_tool -change libclucene-shared.1.dylib \
|
||||
$out/lib/libclucene-shared.1.dylib \
|
||||
$out/lib/libclucene-core.1.dylib
|
||||
'';
|
||||
|
||||
doCheck = false; # fails with "Unable to find executable: /build/clucene-core-2.3.3.4/build/bin/cl_test"
|
||||
# fails with "Unable to find executable:
|
||||
# /build/clucene-core-2.3.3.4/build/bin/cl_test"
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Core library for full-featured text search engine";
|
||||
|
Loading…
Reference in New Issue
Block a user