1SUMMARY="An open-source, C++ search engine" 2DESCRIPTION="CLucene is a high-performance, scalable, cross platform, \ 3full-featured, open-source indexing and searching API. Specifically, CLucene \ 4is the guts of a search engine, the hard stuff. You write the easy stuff: the \ 5UI and the process of selecting and parsing your data files to pump them into \ 6the search engine yourself, and any specialized queries to pull it back for \ 7display or further processing. 8 9CLucene is a port of the very popular Java Lucene text search engine API. \ 10CLucene aims to be a good alternative to Java Lucene when performance really \ 11matters or if you want to stick to good old C++. CLucene is faster than Lucene \ 12as it is written in C++, meaning it is being compiled into machine code, has \ 13no background GC operations, and requires no any extra setup procedures. 14 15Being written in pure cross-platform C++ code, and utilizing the flexible \ 16CMake build system, CLucene can virtually be used for any purpose, on any \ 17machine. From PCs running Windows or Linux to Mobile devices. The sky is the \ 18limit." 19HOMEPAGE="http://clucene.sourceforge.net/" 20COPYRIGHT="2003-2006 Ben van Klinken 21 2003-2006 CLucene Team 22 2003-2006 Jos van den Oever" 23LICENSE="Apache v2" 24REVISION="4" 25SOURCE_URI="http://downloads.sourceforge.net/clucene/clucene-core-$portVersion.tar.gz" 26CHECKSUM_SHA256="ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab" 27SOURCE_DIR="clucene-core-$portVersion" 28PATCHES="clucene-$portVersion.patchset" 29 30ARCHITECTURES="all !x86_gcc2" 31SECONDARY_ARCHITECTURES="x86" 32 33PROVIDES=" 34 clucene$secondaryArchSuffix = $portVersion 35 lib:libclucene_contribs_lib$secondaryArchSuffix = $portVersion 36 lib:libclucene_core$secondaryArchSuffix = $portVersion 37 lib:libclucene_shared$secondaryArchSuffix = $portVersion 38 " 39REQUIRES=" 40 haiku$secondaryArchSuffix 41 lib:libz$secondaryArchSuffix 42 " 43 44PROVIDES_devel=" 45 clucene${secondaryArchSuffix}_devel = $portVersion 46 devel:libclucene_contribs_lib$secondaryArchSuffix = $portVersion 47 devel:libclucene_core$secondaryArchSuffix = $portVersion 48 devel:libclucene_shared$secondaryArchSuffix = $portVersion 49 " 50REQUIRES_devel=" 51 clucene$secondaryArchSuffix == $portVersion base 52 " 53 54BUILD_REQUIRES=" 55 haiku${secondaryArchSuffix}_devel 56 devel:libboost_atomic$secondaryArchSuffix 57 devel:libz$secondaryArchSuffix 58 " 59BUILD_PREREQUIRES=" 60 cmd:cmake 61 cmd:gcc$secondaryArchSuffix 62 cmd:make 63 " 64 65BUILD() 66{ 67 mkdir -p build && cd build 68 cmake -G "Unix Makefiles" .. \ 69 -DCMAKE_INSTALL_PREFIX=$prefix \ 70 -DCMAKE_BUILD_TYPE=Release \ 71 -DLIB_DESTINATION:PATH=$libDir��\ 72 -DLUCENE_SYS_INCLUDES:PATH=$relativeIncludeDir \ 73 -DBUILD_CONTRIBS_LIB:BOOL=ON \ 74 -DDISABLE_MULTITHREADING=OFF 75 make $jobArgs 76} 77 78INSTALL() 79{ 80 cd build 81 make install 82 83 rm -rf $libDir/CLuceneConfig.cmake 84 85 mv $prefix/lib $prefix/lib2 86 mkdir -p $(dirname $libDir) 87 mv $prefix/lib2 $libDir 88 89 prepareInstalledDevelLibs libclucene-core libclucene-shared \ 90 libclucene-contribs-lib 91 fixPkgconfig 92 93 packageEntries devel \ 94 $developDir 95} 96