2014-10-02 18:10:34 +02:00
|
|
|
# Template file for 'Lucene++'
|
|
|
|
pkgname=Lucene++
|
2015-02-02 08:43:09 +01:00
|
|
|
version=3.0.7
|
2017-09-23 14:59:28 +02:00
|
|
|
revision=6
|
2014-10-02 18:10:34 +02:00
|
|
|
wrksrc=LucenePlusPlus-rel_$version
|
|
|
|
build_style=cmake
|
2017-04-02 15:17:37 +02:00
|
|
|
configure_args="-Wno-dev"
|
2014-10-02 18:10:34 +02:00
|
|
|
makedepends="boost-devel gtest-devel"
|
|
|
|
short_desc="A C++ port of the popular text search engine"
|
2015-08-09 19:08:42 +02:00
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
2014-10-02 18:10:34 +02:00
|
|
|
license="GPL-3"
|
|
|
|
homepage="https://github.com/luceneplusplus/LucenePlusPlus"
|
|
|
|
distfiles="https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_${version}.tar.gz"
|
2015-02-02 08:43:09 +01:00
|
|
|
checksum=6c19f203311e4b44a0ccf7b1127db77436eb47159ea1c54f7531a0b1ca585e0c
|
2014-10-02 18:10:34 +02:00
|
|
|
|
2015-06-09 15:37:12 +02:00
|
|
|
post_extract() {
|
|
|
|
sed -i 's/boost::get/boost::relaxed_get/' include/VariantUtils.h
|
|
|
|
}
|
|
|
|
|
2014-10-02 18:10:34 +02:00
|
|
|
pre_configure() {
|
|
|
|
# Disable tests
|
|
|
|
echo > CMakeExternal.txt
|
|
|
|
rm -r src/test
|
|
|
|
sed -i \
|
|
|
|
-e "/find_package(Subversion REQUIRED)/d" \
|
|
|
|
-e "/enable_testing/d" \
|
|
|
|
-e "/add_subdirectory(src\/test)/d" \
|
|
|
|
CMakeLists.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# Install missing header files
|
|
|
|
vcopy "include/*" usr/include/lucene++
|
|
|
|
vcopy "build/include/*" usr/include/lucene++
|
|
|
|
}
|
|
|
|
|
|
|
|
Lucene++-devel_package() {
|
|
|
|
depends="Lucene++>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|