Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2021 20:40:25 +0000 (UTC)
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r567955 - head/astro/kosmorro
Message-ID:  <202103092040.129KePja054447@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thierry
Date: Tue Mar  9 20:40:25 2021
New Revision: 567955
URL: https://svnweb.freebsd.org/changeset/ports/567955

Log:
  textproc/rubygem-ronn is BROKEN on 11.4: do not build manpages.
  
  Since I´m there define noflavors.

Modified:
  head/astro/kosmorro/Makefile
  head/astro/kosmorro/pkg-plist

Modified: head/astro/kosmorro/Makefile
==============================================================================
--- head/astro/kosmorro/Makefile	Tue Mar  9 20:10:10 2021	(r567954)
+++ head/astro/kosmorro/Makefile	Tue Mar  9 20:40:25 2021	(r567955)
@@ -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
 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 <bsd.port.pre.mk>
+
+# 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 <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/astro/kosmorro/pkg-plist
==============================================================================
--- head/astro/kosmorro/pkg-plist	Tue Mar  9 20:10:10 2021	(r567954)
+++ head/astro/kosmorro/pkg-plist	Tue Mar  9 20:40:25 2021	(r567955)
@@ -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



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