diff options
Diffstat (limited to 'astro/py-metar/Makefile')
-rw-r--r-- | astro/py-metar/Makefile | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/astro/py-metar/Makefile b/astro/py-metar/Makefile index 336a85654a75..9332d5760e2a 100644 --- a/astro/py-metar/Makefile +++ b/astro/py-metar/Makefile @@ -3,7 +3,7 @@ PORTNAME= metar PORTVERSION= 0.19 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= astro python geography MASTER_SITES= http://www.schwarzvogel.de/pkgs/ \ LOCAL/sunpoet @@ -18,33 +18,22 @@ LICENSE= GPLv2 OPTIONS_DEFINE= DOCS OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options -PYDISTUTILS_PKGNAME= ${REALPORTNAME} +PYDISTUTILS_AUTOPLIST= yes USE_PYDISTUTILS=yes USE_PYTHON= 2 +USES= shebangfix PLIST_FILES= bin/${REALPORTNAME} \ - %%PYTHON_SITELIBDIR%%/${REALPORTNAME}.py \ - %%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyc \ - %%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyo \ man/man1/${REALPORTNAME}.1.gz PORTDOCS= COPYING README THANKS librarydoc.txt REALPORTNAME= pymetar -.include <bsd.port.options.mk> +SHEBANG_FILES= bin/${REALPORTNAME} +python_CMD= ${PYTHON_CMD} post-patch: - @${REINPLACE_CMD} -E '1 s|/usr/bin/(env *)?python|${PYTHON_CMD}|' \ - ${WRKSRC}/${PYSETUP} ${WRKSRC}/bin/${REALPORTNAME} - @${REINPLACE_CMD} -e 's|share/\(man/man1\)|\1|' ${WRKSRC}/${PYSETUP} -.if ${PORT_OPTIONS:MDOCS} - @${REINPLACE_CMD} \ - -e 's|"share/doc/pymetar-%s"%pymetar.__version__|"${DOCSDIR}"|' \ - ${WRKSRC}/${PYSETUP} -.else - @${REINPLACE_CMD} \ - -e 's|"share/doc/pymetar-%s"%pymetar.__version__|""|' \ - -e "s|\['README.*'\]|[]|" ${WRKSRC}/${PYSETUP} -.endif + @${REINPLACE_CMD} -e 's|share/\(man/man1\)|\1|' \ + -e 's|"share/doc/pymetar-%s"%pymetar.__version__|"${DOCSDIR}"|' ${WRKSRC}/${PYSETUP} .include <bsd.port.mk> |