with this the workaround for the newer libc++ can be dropped (both here
and in devel/poedit.)
I had to disable tests because it picks up the headers from gtest which
is too new for this.
The install path for the pc files was fixed upstream, here I've did the
minimum to get them installed in the right place.
devel/poedit which is the only consumer still works fine for me.
ok?
Index: Makefile
===================================================================
RCS file: /home/cvs/ports/textproc/luceneplusplus/Makefile,v
diff -u -p -r1.4 Makefile
--- Makefile 1 Jan 2024 21:22:12 -0000 1.4
+++ Makefile 24 Jan 2024 10:55:59 -0000
@@ -1,13 +1,13 @@
-V= 3.0.7
-PKGNAME= luceneplusplus-${V}
+V = 3.0.8
+PKGNAME = luceneplusplus-${V}
COMMENT = C++ port of the Java Lucene library, the text search engine
GH_ACCOUNT = luceneplusplus
GH_PROJECT = LucenePlusPlus
GH_TAGNAME = rel_${V}
-SHARED_LIBS += lucene++ 0.0
-SHARED_LIBS += lucene++-contrib 0.0
+SHARED_LIBS += lucene++ 1.0
+SHARED_LIBS += lucene++-contrib 1.0
CATEGORIES = textproc
@@ -17,19 +17,18 @@ PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} m
WANTLIB += boost_atomic-mt boost_chrono-mt boost_date_time-mt
WANTLIB += boost_filesystem-mt boost_iostreams-mt boost_regex-mt
-WANTLIB += boost_system-mt boost_thread-mt
+WANTLIB += boost_system-mt boost_thread-mt z
COMPILER = base-clang ports-gcc
MODULES = devel/cmake
-BUILD_DEPENDS = devel/gtest
LIB_DEPENDS = devel/boost
-MODCMAKE_LDFLAGS = -L${LOCALBASE}/lib
+# devel/gtest is too new for this
+CONFIGURE_ARGS += -DENABLE_TEST=FALSE
-# Remove after update to >= 3.0.8
-CXXFLAGS += -D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION
+MODCMAKE_LDFLAGS = -L${LOCALBASE}/lib
do-test:
cd ${WRKBUILD} && ./src/test/lucene++-tester \
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/textproc/luceneplusplus/distinfo,v
diff -u -p -r1.1.1.1 distinfo
--- distinfo 5 Jul 2020 07:30:16 -0000 1.1.1.1
+++ distinfo 29 Dec 2023 15:03:16 -0000
@@ -1,2 +1,2 @@
-SHA256 (LucenePlusPlus-3.0.7.tar.gz) = bBnyAzEeS0SgzPexEn23dDbrRxWeocVPdTGgscpYXgw=
-SIZE (LucenePlusPlus-3.0.7.tar.gz) = 2013570
+SHA256 (LucenePlusPlus-3.0.8.tar.gz) = r1z1mpPPbc6Ggo4QjgEDWVF8Jc5IcVKvaFIHhdGDgTw=
+SIZE (LucenePlusPlus-3.0.8.tar.gz) = 2456644
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: /home/cvs/ports/textproc/luceneplusplus/patches/patch-CMakeLists_txt,v
diff -u -p -r1.2 patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt 11 Mar 2022 20:02:42 -0000 1.2
+++ patches/patch-CMakeLists_txt 29 Dec 2023 15:11:58 -0000
@@ -3,24 +3,12 @@ disable cotire as it's deprecated and br
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
-@@ -15,11 +15,6 @@ set(lucene++_VERSION
- # include specific modules
- set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
-
--####################################
--# pre-compiled headers support
--####################################
--include(cotire)
--
- # if setup using the Toolchain-llvm.cmake file, then use llvm...
- if(ENABLE_LLVM)
- include(Toolchain-llvm)
-@@ -85,7 +80,7 @@ include(TestCXXAcceptsFlag)
- include(GNUInstallDirs)
+@@ -21,7 +21,7 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_T
+ endif()
set(LIB_DESTINATION
-- "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE STRING "Define lib output directory name"
-+ "lib" CACHE STRING "Define lib output directory name"
- )
+- "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE STRING "Define lib output directory name")
++ "lib" CACHE STRING "Define lib output directory name")
+
- if(ENABLE_CYCLIC_CHECK)
+ ####################################
Index: patches/patch-include_VariantUtils_h
===================================================================
RCS file: patches/patch-include_VariantUtils_h
diff -N patches/patch-include_VariantUtils_h
--- patches/patch-include_VariantUtils_h 11 Mar 2022 20:02:42 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,23 +0,0 @@
-Index: include/VariantUtils.h
---- include/VariantUtils.h.orig
-+++ include/VariantUtils.h
-@@ -8,6 +8,7 @@
- #define VARIANTUTILS_H
-
- #include <boost/any.hpp>
-+#include <boost/version.hpp>
- #include "Lucene.h"
- #include "MiscUtils.h"
-
-@@ -22,7 +23,11 @@ class LPPAPI VariantUtils { (public)
-
- template <typename TYPE, typename VAR>
- static TYPE get(VAR var) {
-+#if BOOST_VERSION < 105800
- return var.type() == typeid(TYPE) ? boost::get<TYPE>(var) : TYPE();
-+#else
-+ return var.type() == typeid(TYPE) ? boost::relaxed_get<TYPE>(var) : TYPE();
-+
No comments:
Post a Comment