2002-07-25 18:57:37 +00:00
|
|
|
# New ports collection makefile for: py-metar
|
|
|
|
# Date created: 26 July 2002
|
|
|
|
# Whom: Hye-Shik Chang <perky@fallin.lv>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= metar
|
2010-05-29 13:48:24 +00:00
|
|
|
PORTVERSION= 0.16
|
2007-07-22 19:33:55 +00:00
|
|
|
CATEGORIES= astro python geography
|
2010-05-29 13:48:24 +00:00
|
|
|
MASTER_SITES= http://www.schwarzvogel.de/pkgs/ \
|
|
|
|
http://sunpoet.net/distfiles/
|
2002-07-25 18:57:37 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2010-05-29 13:48:24 +00:00
|
|
|
DISTNAME= ${REALPORTNAME}-${PORTVERSION}
|
2002-07-25 18:57:37 +00:00
|
|
|
|
2010-09-22 17:10:26 +00:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2003-02-25 06:25:35 +00:00
|
|
|
COMMENT= Python module that provides access to NOAA's METAR weather reports
|
2002-07-25 18:57:37 +00:00
|
|
|
|
2010-05-29 13:48:24 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
|
|
PYDISTUTILS_PKGNAME= ${REALPORTNAME}
|
2002-07-25 18:57:37 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2010-08-25 06:30:05 +00:00
|
|
|
USE_PYTHON= -2.7
|
2008-12-04 10:36:29 +00:00
|
|
|
|
2010-05-29 13:48:24 +00:00
|
|
|
PLIST_FILES= bin/${REALPORTNAME} \
|
|
|
|
%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyc \
|
|
|
|
%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyo
|
2008-12-04 10:36:29 +00:00
|
|
|
PORTDOCS= COPYING README THANKS librarydoc.txt
|
|
|
|
|
2010-05-29 13:48:24 +00:00
|
|
|
REALPORTNAME= pymetar
|
2008-12-04 10:36:29 +00:00
|
|
|
|
|
|
|
post-patch:
|
2010-05-29 13:48:24 +00:00
|
|
|
@${REINPLACE_CMD} -E '1 s|/usr/bin/(env *)?python|${PYTHON_CMD}|' \
|
|
|
|
${WRKSRC}/setup.py ${WRKSRC}/bin/${REALPORTNAME}
|
|
|
|
.if !defined(NOPORTDOCS)
|
2008-12-04 10:36:29 +00:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|"share/doc/pymetar-%s/"%pymetar.__version__|"${DOCSDIR}"|' \
|
|
|
|
${WRKSRC}/setup.py
|
2008-12-04 10:50:45 +00:00
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|"share/doc/pymetar-%s/"%pymetar.__version__|""|' \
|
|
|
|
-e "s|\['README.*'\]|[]|" ${WRKSRC}/setup.py
|
|
|
|
.endif
|
2004-01-26 02:33:44 +00:00
|
|
|
|
2002-07-25 18:57:37 +00:00
|
|
|
.include <bsd.port.mk>
|