From c6f6b7f88d9805cf6a5dbae6a5981855fdb6501d Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 2 Oct 2014 18:10:34 +0200 Subject: [PATCH] New package: Lucene++-3.0.6 --- common/shlibs | 2 ++ srcpkgs/Lucene++-devel | 1 + srcpkgs/Lucene++/template | 41 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 120000 srcpkgs/Lucene++-devel create mode 100644 srcpkgs/Lucene++/template diff --git a/common/shlibs b/common/shlibs index 2d598341f27..6f5d7606ef7 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1745,3 +1745,5 @@ libewf.so.2 libewf-20140608_1 libcupsfilters.so.1 cups-filters-1.0.58_2 libfontembed.so.1 cups-filters-1.0.58_2 libjemalloc.so.1 jemalloc-3.6.0_1 +liblucene++.so.0 Lucene++-3.0.6_1 +liblucene++-contrib.so.0 Lucene++-3.0.6_1 diff --git a/srcpkgs/Lucene++-devel b/srcpkgs/Lucene++-devel new file mode 120000 index 00000000000..ad63aedd006 --- /dev/null +++ b/srcpkgs/Lucene++-devel @@ -0,0 +1 @@ +Lucene++ \ No newline at end of file diff --git a/srcpkgs/Lucene++/template b/srcpkgs/Lucene++/template new file mode 100644 index 00000000000..2057938f811 --- /dev/null +++ b/srcpkgs/Lucene++/template @@ -0,0 +1,41 @@ +# Template file for 'Lucene++' +pkgname=Lucene++ +version=3.0.6 +revision=1 +wrksrc=LucenePlusPlus-rel_$version +build_style=cmake +hostmakedepends="cmake" +makedepends="boost-devel gtest-devel" +short_desc="A C++ port of the popular text search engine" +maintainer="Enno Boland " +license="GPL-3" +homepage="https://github.com/luceneplusplus/LucenePlusPlus" +distfiles="https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_${version}.tar.gz" +checksum=3e7092a4935e0d1ad5c6d7ac8f3c6ed2f53e51321237ce83744bbf02e0d61519 + +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" + } +}