diff --git a/textproc/luceneplusplus/Makefile b/textproc/luceneplusplus/Makefile index f874e46ded60..581cb5f58b3e 100644 --- a/textproc/luceneplusplus/Makefile +++ b/textproc/luceneplusplus/Makefile @@ -1,33 +1,33 @@ PORTNAME= lucene++ PORTVERSION= 3.0.8 -PORTREVISION= 7 +PORTREVISION= 8 DISTVERSIONPREFIX= rel_ CATEGORIES= textproc MAINTAINER= ports@FreeBSD.org COMMENT= C++ port of the Lucene library WWW= https://github.com/luceneplusplus/LucenePlusPlus LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/LGPL.license LIB_DEPENDS= libboost_system.so:devel/boost-libs USE_GITHUB= yes GH_ACCOUNT= luceneplusplus GH_PROJECT= LucenePlusPlus USES= cmake compiler:c++11-lang USE_LDCONFIG= yes CMAKE_OFF= ENABLE_TEST ENABLE_DEMO .include post-patch: ${REINPLACE_CMD} "/cotire/d" ${WRKSRC}/src/contrib/CMakeLists.txt \ ${WRKSRC}/src/core/CMakeLists.txt \ ${WRKSRC}/src/test/CMakeLists.txt ${REINPLACE_CMD} 's,include/pkgconfig,libdata/pkgconfig,;s,include/cmake,share/lucene++/cmake,' \ ${WRKSRC}/src/config/core/CMakeLists.txt \ ${WRKSRC}/src/config/contrib/CMakeLists.txt .include diff --git a/textproc/luceneplusplus/files/patch-boost-1.85 b/textproc/luceneplusplus/files/patch-boost-1.85 new file mode 100644 index 000000000000..e066696de28f --- /dev/null +++ b/textproc/luceneplusplus/files/patch-boost-1.85 @@ -0,0 +1,64 @@ +From c18ead2b0c4aa62af01450cb12353a0baa51411f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= +Date: Wed, 27 Mar 2024 12:00:18 +0100 +Subject: [PATCH] Fix build with boost 1.85.0 + +boost::filesystem::wpath has been deprecated (and typedef-ed to +boost::filesystem::path) for a long time; it is removed from boost +starting with 1.85.0-beta1. + +Use boost::filesystem::path instead. + +boost/filesystem/convenience.hpp has been removed (and was being +included without being used anyway - its only use was indirectly +pulling in boost/filesystem/directory.hpp, which is actually used). + +Include boost/filesystem/directory.hpp directly instead. +--- + src/core/store/MMapDirectory.cpp | 2 +- + src/core/util/FileUtils.cpp | 6 +++--- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git src/core/store/MMapDirectory.cpp src/core/store/MMapDirectory.cpp +index beac7828..46156e3a 100644 +--- src/core/store/MMapDirectory.cpp ++++ src/core/store/MMapDirectory.cpp +@@ -36,7 +36,7 @@ MMapIndexInput::MMapIndexInput(const String& path) { + bufferPosition = 0; + if (!path.empty()) { + try { +- file.open(boost::filesystem::wpath(path), _length); ++ file.open(boost::filesystem::path(path), _length); + } catch (...) { + boost::throw_exception(FileNotFoundException(path)); + } +diff --git src/core/util/FileUtils.cpp src/core/util/FileUtils.cpp +index 51508b57..d92efbb8 100644 +--- src/core/util/FileUtils.cpp ++++ src/core/util/FileUtils.cpp +@@ -5,9 +5,9 @@ + ///////////////////////////////////////////////////////////////////////////// + + #include "LuceneInc.h" +-#include + #include + #include ++#include + #include "LuceneThread.h" + #include "StringUtils.h" + #include "FileUtils.h" +@@ -128,12 +128,12 @@ String joinPath(const String& path, const String& file) { + } + + String extractPath(const String& path) { +- boost::filesystem::wpath parentPath(path.c_str()); ++ boost::filesystem::path parentPath(path.c_str()); + return parentPath.parent_path().wstring().c_str(); + } + + String extractFile(const String& path) { +- boost::filesystem::wpath fileName(path.c_str()); ++ boost::filesystem::path fileName(path.c_str()); + return fileName.filename().wstring().c_str(); + } +