diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-02-24 18:41:31 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-02-24 18:41:31 +0800 |
commit | f65424da69fdafcc3bce8662af54e0bccb4f73c5 (patch) | |
tree | d0ac9abd9c85d0a485bf9368827887347d7050b2 /astro | |
parent | a031924dd2558fc7d731941c1e176ddae122a858 (diff) | |
download | freebsd-ports-gnome-f65424da69fdafcc3bce8662af54e0bccb4f73c5.tar.gz freebsd-ports-gnome-f65424da69fdafcc3bce8662af54e0bccb4f73c5.tar.zst freebsd-ports-gnome-f65424da69fdafcc3bce8662af54e0bccb4f73c5.zip |
- Use PYDISTUTILS_AUTOPLIST instead of PLIST_FILES
- Remove PYDISTUTILS_PKGNAME
- Use USES=shebangfix
- Simplify Makefile
- Bump PORTREVISION for package change
Diffstat (limited to 'astro')
-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> |