aboutsummaryrefslogtreecommitdiffstats
path: root/community/lucene++/162.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2021-01-15 03:07:13 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-01-15 06:39:41 +0000
commitd2575b85e896947c3b985707529c1bb74f24fbdc (patch)
treef072caebac0c5393f009738c67480046ede7c19b /community/lucene++/162.patch
parent888bdca89d5944e6917e405d2b923dadda03aecc (diff)
downloadaports-d2575b85e896947c3b985707529c1bb74f24fbdc.tar.gz
aports-d2575b85e896947c3b985707529c1bb74f24fbdc.tar.bz2
aports-d2575b85e896947c3b985707529c1bb74f24fbdc.tar.xz
community/lucene++: fix packaging
This buildsystem is so easy to get wrong and so hard to get right, just import all the work done by Debian.
Diffstat (limited to 'community/lucene++/162.patch')
-rw-r--r--community/lucene++/162.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/lucene++/162.patch b/community/lucene++/162.patch
new file mode 100644
index 0000000000..b32fd4368b
--- /dev/null
+++ b/community/lucene++/162.patch
@@ -0,0 +1,49 @@
+From 39cd44bd54e918d25ee464477992ad0dc234dcba Mon Sep 17 00:00:00 2001
+From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
+Date: Mon, 4 Jan 2021 16:29:25 +0100
+Subject: [PATCH] pkgconfig: use correct LIBDIR for destination library
+
+---
+ src/config/contrib/liblucene++-contrib.pc.in | 4 ++--
+ src/config/core/liblucene++.pc.in | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/config/contrib/liblucene++-contrib.pc.in b/src/config/contrib/liblucene++-contrib.pc.in
+index 21026e0a..64c3acac 100644
+--- a/src/config/contrib/liblucene++-contrib.pc.in
++++ b/src/config/contrib/liblucene++-contrib.pc.in
+@@ -1,13 +1,13 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=${prefix}/bin
+-libdir=@LIB_DESTINATION@
++libdir=${prefix}/@LIB_DESTINATION@
+ includedir=${prefix}/include/lucene++
+ lib=lucene++-contrib
+
+ Name: liblucene++-contrib
+ Description: Contributions for Lucene++ - a C++ search engine, ported from the popular Apache Lucene
+ Version: @lucene++_VERSION@
+-Libs: -L@LIB_DESTINATION@ -l${lib}
++Libs: -L${libdir} -l${lib}
+ Cflags: -I${includedir}
+ Requires: liblucene++ = @lucene++_VERSION@
+
+diff --git a/src/config/core/liblucene++.pc.in b/src/config/core/liblucene++.pc.in
+index 32d16ad7..690f7d24 100644
+--- a/src/config/core/liblucene++.pc.in
++++ b/src/config/core/liblucene++.pc.in
+@@ -1,12 +1,12 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=${prefix}/bin
+-libdir=@LIB_DESTINATION@
++libdir=${prefix}/@LIB_DESTINATION@
+ includedir=${prefix}/include/lucene++
+ lib=lucene++
+
+ Name: liblucene++
+ Description: Lucene++ - a C++ search engine, ported from the popular Apache Lucene
+ Version: @lucene++_VERSION@
+-Libs: -L@LIB_DESTINATION@ -l${lib}
++Libs: -L${libdir} -l${lib}
+ Cflags: -I${includedir}
+