From 86d23c3c9ca2736a1b1bae74136674a17fbd47fc Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Tue, 9 Mar 2021 20:40:25 +0000 Subject: textproc/rubygem-ronn is BROKEN on 11.4: do not build manpages. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since I´m there define noflavors. --- astro/kosmorro/Makefile | 19 ++++++++++++++++--- astro/kosmorro/pkg-plist | 4 ++-- 2 files changed, 18 insertions(+), 5 deletions(-) (limited to 'astro/kosmorro') diff --git a/astro/kosmorro/Makefile b/astro/kosmorro/Makefile index d18779eab8a4..9a0e6e39edfb 100644 --- a/astro/kosmorro/Makefile +++ b/astro/kosmorro/Makefile @@ -12,7 +12,6 @@ COMMENT= Ephemerides computation LICENSE= AGPLv3 BUILD_DEPENDS= ${PYNUMPY} \ - ronn:textproc/rubygem-ronn \ ${PYTHON_PKGNAMEPREFIX}skyfield>0:astro/py-skyfield@${PY_FLAVOR}\ ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}\ ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}\ @@ -29,7 +28,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pipenv>0:devel/py-pipenv@${PY_FLAVOR} \ USE_GITHUB= yes USES= python:3.7+ shebangfix -USE_PYTHON= distutils +USE_PYTHON= distutils noflavors SHEBANG_FILES= ${PORTNAME} OPTIONS_DEFINE= PDF @@ -39,14 +38,28 @@ PDF_RUN_DEPENDS=pdflatex:print/tex-formats NO_ARCH= yes +.include + +# ronn is broken on 11.x => do not build manpages +.if ${OSVERSION} < 1200000 +PLIST_SUB+= MAN="@comment " +.else +BUILD_DEPENDS+= ronn:textproc/rubygem-ronn +PLIST_SUB+= MAN="" +.endif + pre-configure: ${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/Makefile +.if ${OSVERSION} < 1200000 + ${REINPLACE_CMD} -e 's|i18n manpages|manpages|' ${WRKSRC}/Makefile +.else post-build: (cd ${WRKSRC} && LC_ALL=C.UTF-8 ${MAKE} manpages) +.endif do-test: install #(cd ${WRKSRC} && ${MAKE} test) ${DO_NADA} # It uses unittest-data-provider which is deprecated -.include +.include diff --git a/astro/kosmorro/pkg-plist b/astro/kosmorro/pkg-plist index 91925343dbcc..0b767fc388dd 100644 --- a/astro/kosmorro/pkg-plist +++ b/astro/kosmorro/pkg-plist @@ -88,5 +88,5 @@ bin/kosmorro %%PYTHON_SITELIBDIR%%/test/ephemerides.py %%PYTHON_SITELIBDIR%%/test/events.py %%PYTHON_SITELIBDIR%%/test/testutils.py -man/man1/kosmorro.1.gz -man/man7/kosmorro.7.gz +%%MAN%%man/man1/kosmorro.1.gz +%%MAN%%man/man7/kosmorro.7.gz -- cgit v1.2.3