Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2023 21:19:53 GMT
From:      Don Lewis <truckman@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e0a892ced94c - main - editors/openoffice-*: test for required jar file
Message-ID:  <202303142119.32ELJr6v035534@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by truckman:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e0a892ced94cf2502b2f8401b24c358bd3f7f6a1

commit e0a892ced94cf2502b2f8401b24c358bd3f7f6a1
Author:     Don Lewis <truckman@FreeBSD.org>
AuthorDate: 2023-03-14 20:56:42 +0000
Commit:     Don Lewis <truckman@FreeBSD.org>
CommitDate: 2023-03-14 21:19:45 +0000

    editors/openoffice-*: test for required jar file
    
    Test for a required jar file that is optionally installed by
    textproc/lucene and fail at the configure step with a helpful message
    if we don't find it.  If the jar file is missing, javac fails during
    the build of l10ntools module with an unhelpful error message that does
    not pinpoint the cause of the problem.
    PR:             270158
    Reported by:    Ken Gunderson <kgunders@teamcool.net>
---
 editors/openoffice-4/Makefile     | 8 ++++++++
 editors/openoffice-devel/Makefile | 9 +++++++++
 2 files changed, 17 insertions(+)

diff --git a/editors/openoffice-4/Makefile b/editors/openoffice-4/Makefile
index 6fd8b3d81a44..fa78c44e61ae 100644
--- a/editors/openoffice-4/Makefile
+++ b/editors/openoffice-4/Makefile
@@ -410,6 +410,14 @@ post-patch:
 	${REINPLACE_CMD} -e "s/ := -Os/ := -O2 -fno-unroll-loops/" ${WRKSRC}/solenv/gbuild/platform/freebsd.mk
 .endif
 
+# Verify that lucene was built with the CONTRIB option instead of
+# failing mysteriously during the build
+pre-configure:
+	@if [ ! -f ${JAVALIBDIR}/lucene-analyzers-3.6.2.jar ]; then \
+		${ECHO} "error: textproc/lucene must be built with the CONTRIB option enabled"; \
+		exit 1; \
+	fi
+
 do-build:
 	${PRINTF} "[repositories]\nmain=active\nextras=active\n" > ${WRKSUBDIR}/source_config
 	cd ${WRKSRC} ; ./bootstrap
diff --git a/editors/openoffice-devel/Makefile b/editors/openoffice-devel/Makefile
index b58427969cde..21f3a7170163 100644
--- a/editors/openoffice-devel/Makefile
+++ b/editors/openoffice-devel/Makefile
@@ -54,6 +54,7 @@ BROKEN_powerpc64=	fails to compile: aoo-4.2.0/main/solver/420/unxfbsdppc64.pro/i
 
 BUILD_DEPENDS=								\
 		p5-Archive-Zip>=0:archivers/p5-Archive-Zip		\
+	${LOCALBASE}/include/boost/shared_ptr.hpp:devel/boost-libs \
 		${LOCALBASE}/bin/unzip:archivers/unzip			\
 		zip:archivers/zip					\
 		ant:devel/apache-ant					\
@@ -414,6 +415,14 @@ post-patch:
 		${WRKSRC}/desktop/scripts/soffice.sh
 	${REINPLACE_CMD} -e '/^mkdir -p/,$$d' ${CREATE_TREE}
 
+# Verify that lucene was built with the CONTRIB option instead of
+# failing mysteriously during the build
+pre-configure:
+	@if [ ! -f ${JAVALIBDIR}/lucene-analyzers-3.6.2.jar ]; then \
+		${ECHO} "error: textproc/lucene must be built with the CONTRIB option enabled"; \
+		exit 1; \
+	fi
+
 do-build:
 	${PRINTF} "[repositories]\nmain=active\nextras=active\n" > ${WRKSUBDIR}/source_config
 	cd ${WRKSRC} ; ./bootstrap



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303142119.32ELJr6v035534>