2012-08-29 21:31:26 +01:00
|
|
|
{stdenv, fetchurl, cmake, boost, zlib}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "clucene-core-2.3.3.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/clucene/${name}.tar.gz";
|
|
|
|
sha256 = "1arffdwivig88kkx685pldr784njm0249k0rb1f1plwavlrw9zfx";
|
|
|
|
};
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2012-08-29 21:31:26 +01:00
|
|
|
|
|
|
|
buildInputs = [ boost zlib ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_CONTRIBS=ON" "-DBUILD_CONTRIBS_LIB=ON" ];
|
|
|
|
|
|
|
|
patches = # From debian
|
|
|
|
[ ./Fix-pkgconfig-file-by-adding-clucene-shared-library.patch
|
|
|
|
./Fixing_ZLIB_configuration_in_shared_CMakeLists.patch
|
|
|
|
./Install-contribs-lib.patch
|
2015-02-04 07:40:17 +00:00
|
|
|
] ++ stdenv.lib.optionals stdenv.isDarwin [ ./fix-darwin.patch ];
|
2012-08-29 21:31:26 +01:00
|
|
|
|
2014-05-06 02:53:32 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2018-08-08 19:29:59 +01:00
|
|
|
doCheck = false; # fails with "Unable to find executable: /build/clucene-core-2.3.3.4/build/bin/cl_test"
|
|
|
|
|
2012-08-29 21:31:26 +01:00
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Core library for full-featured text search engine";
|
|
|
|
longDescription = ''
|
|
|
|
CLucene is a high-performance, scalable, cross platform, full-featured,
|
|
|
|
open-source indexing and searching API. Specifically, CLucene is the guts
|
|
|
|
of a search engine, the hard stuff. You write the easy stuff: the UI and
|
|
|
|
the process of selecting and parsing your data files to pump them into
|
|
|
|
the search engine yourself, and any specialized queries to pull it back
|
|
|
|
for display or further processing.
|
|
|
|
|
|
|
|
CLucene is a port of the very popular Java Lucene text search engine API.
|
|
|
|
'';
|
2012-08-29 21:31:26 +01:00
|
|
|
homepage = http://clucene.sourceforge.net;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-08-29 21:31:26 +01:00
|
|
|
};
|
|
|
|
}
|