1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/astro/py-metar/Makefile
Sunpoet Po-Chuan Hsieh 80f33c0f16 - Update to 0.17
- Add LICENSE
2010-11-02 18:55:05 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: py-metar
# Date created: 26 July 2002
# Whom: Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$
#
PORTNAME= metar
PORTVERSION= 0.17
CATEGORIES= astro python geography
MASTER_SITES= http://www.schwarzvogel.de/pkgs/ \
LOCAL/sunpoet
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${REALPORTNAME}-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Python module that provides access to NOAA's METAR weather reports
LICENSE= GPLv2
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
PYDISTUTILS_PKGNAME= ${REALPORTNAME}
USE_PYDISTUTILS= yes
USE_PYTHON= -2.7
PLIST_FILES= bin/${REALPORTNAME} \
%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.py \
%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyc \
%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyo
PORTDOCS= COPYING README THANKS librarydoc.txt
REALPORTNAME= pymetar
post-patch:
@${REINPLACE_CMD} -E '1 s|/usr/bin/(env *)?python|${PYTHON_CMD}|' \
${WRKSRC}/setup.py ${WRKSRC}/bin/${REALPORTNAME}
.if !defined(NOPORTDOCS)
@${REINPLACE_CMD} \
-e 's|"share/doc/pymetar-%s/"%pymetar.__version__|"${DOCSDIR}"|' \
${WRKSRC}/setup.py
.else
@${REINPLACE_CMD} \
-e 's|"share/doc/pymetar-%s/"%pymetar.__version__|""|' \
-e "s|\['README.*'\]|[]|" ${WRKSRC}/setup.py
.endif
.include <bsd.port.mk>