Changeset View
Changeset View
Standalone View
Standalone View
astro/kosmorro/Makefile
# Created by: thierry@pompo.net | # Created by: thierry@pompo.net | ||||
PORTNAME= kosmorro | PORTNAME= kosmorro | ||||
PORTVERSION= 0.10.1 | PORTVERSION= 0.10.1 | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
CATEGORIES= astro python | CATEGORIES= astro python | ||||
MAINTAINER= thierry@FreeBSD.org | MAINTAINER= thierry@FreeBSD.org | ||||
COMMENT= Ephemerides computation | COMMENT= Ephemerides computation | ||||
LICENSE= AGPLv3 | LICENSE= AGPLv3 | ||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}\ | BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}\ | ||||
${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}\ | ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}\ | ||||
${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR}\ | ${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR}\ | ||||
${PYTHON_PKGNAMEPREFIX}kosmorrolib>0:astro/py-kosmorrolib@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}kosmorrolib>0:astro/py-kosmorrolib@${PY_FLAVOR} \ | ||||
ronn:textproc/rubygem-ronn | |||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}\ | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}\ | ||||
${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}\ | ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}\ | ||||
${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR}\ | ${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR}\ | ||||
${PYTHON_PKGNAMEPREFIX}kosmorrolib>0:astro/py-kosmorrolib@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}kosmorrolib>0:astro/py-kosmorrolib@${PY_FLAVOR} | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
USES= python:3.7+ shebangfix | USES= python:3.7+ shebangfix | ||||
USE_PYTHON= distutils noflavors | USE_PYTHON= distutils noflavors | ||||
SHEBANG_FILES= ${PORTNAME} | SHEBANG_FILES= ${PORTNAME} | ||||
OPTIONS_DEFINE= PDF | OPTIONS_DEFINE= PDF | ||||
OPTIONS_DEFAULT=PDF | OPTIONS_DEFAULT=PDF | ||||
PDF_DESC= Exporting to PDF | PDF_DESC= Exporting to PDF | ||||
PDF_RUN_DEPENDS=pdflatex:print/tex-formats | PDF_RUN_DEPENDS=pdflatex:print/tex-formats | ||||
NO_ARCH= yes | 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: | pre-configure: | ||||
${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/Makefile | ${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/Makefile | ||||
.if ${OSVERSION} < 1200000 | |||||
${REINPLACE_CMD} -e 's|i18n manpages|manpages|' ${WRKSRC}/Makefile | |||||
${REINPLACE_CMD} -e '/manpage\/kosmorro/d' ${WRKSRC}/setup.py | |||||
.else | |||||
post-build: | post-build: | ||||
(cd ${WRKSRC} && LC_ALL=C.UTF-8 ${MAKE} manpages) | (cd ${WRKSRC} && LC_ALL=C.UTF-8 ${MAKE} manpages) | ||||
.endif | |||||
.include <bsd.port.post.mk> | .include <bsd.port.mk> |