- Cleanup Makefile

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2014-07-27 16:27:31 +00:00
parent 1075ba838c
commit 6f950576f9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363081

View file

@ -8,7 +8,7 @@ CATEGORIES= astro python geography
MASTER_SITES= http://www.schwarzvogel.de/pkgs/ \ MASTER_SITES= http://www.schwarzvogel.de/pkgs/ \
LOCAL/sunpoet LOCAL/sunpoet
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${REALPORTNAME}-${PORTVERSION} DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Python module that provides access to NOAA METAR weather reports COMMENT= Python module that provides access to NOAA METAR weather reports
@ -25,13 +25,11 @@ USES= shebangfix
PORTDOCS= COPYING README THANKS librarydoc.txt PORTDOCS= COPYING README THANKS librarydoc.txt
REALPORTNAME= pymetar SHEBANG_FILES= bin/py${PORTNAME}
SHEBANG_FILES= bin/${REALPORTNAME}
python_CMD= ${PYTHON_CMD} python_CMD= ${PYTHON_CMD}
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|share/\(man/man1\)|\1|' \ @${REINPLACE_CMD} -e 's|share/\(man/man1\)|\1|' \
-e 's|"share/doc/pymetar-%s"%pymetar.__version__|"${DOCSDIR}"|' ${WRKSRC}/${PYSETUP} -e 's|"share/doc/pymetar-%s"%pymetar.__version__|"${DOCSDIR}"|' ${WRKSRC}/setup.py
.include <bsd.port.mk> .include <bsd.port.mk>