diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2010-05-29 13:48:24 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2010-05-29 13:48:24 +0000 |
commit | 3e28dcfd076e8cbe57bc0def14a9462e984030af (patch) | |
tree | 758ce8ba0efc3d4ccc83af62463301cebcbd7fff /astro | |
parent | a5583dbb02e24aca3d2dd44c309c06a85f69bcfc (diff) | |
download | ports-3e28dcfd076e8cbe57bc0def14a9462e984030af.tar.gz ports-3e28dcfd076e8cbe57bc0def14a9462e984030af.zip |
Notes
Diffstat (limited to 'astro')
-rw-r--r-- | astro/py-metar/Makefile | 29 | ||||
-rw-r--r-- | astro/py-metar/distinfo | 6 |
2 files changed, 19 insertions, 16 deletions
diff --git a/astro/py-metar/Makefile b/astro/py-metar/Makefile index 5e0866f05c2b..b89339433b61 100644 --- a/astro/py-metar/Makefile +++ b/astro/py-metar/Makefile @@ -6,30 +6,33 @@ # PORTNAME= metar -PORTVERSION= 0.14 +PORTVERSION= 0.16 CATEGORIES= astro python geography -MASTER_SITES= http://www.schwarzvogel.de/pkgs/ +MASTER_SITES= http://www.schwarzvogel.de/pkgs/ \ + http://sunpoet.net/distfiles/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= pymetar-${PORTVERSION} +DISTNAME= ${REALPORTNAME}-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@sunpoet.net COMMENT= Python module that provides access to NOAA's METAR weather reports -USE_PYTHON= yes +DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +PYDISTUTILS_PKGNAME= ${REALPORTNAME} USE_PYDISTUTILS= yes -PYDISTUTILS_PKGNAME= pymetar - -PLIST_FILES= bin/weather.py \ - %%PYTHON_SITELIBDIR%%/pymetar.py \ - %%PYTHON_SITELIBDIR%%/pymetar.pyc \ - %%PYTHON_SITELIBDIR%%/pymetar.pyo +USE_PYTHON= -2.6 +PLIST_FILES= bin/${REALPORTNAME} \ + %%PYTHON_SITELIBDIR%%/${REALPORTNAME}.py \ + %%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyc \ + %%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyo PORTDOCS= COPYING README THANKS librarydoc.txt -DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +REALPORTNAME= pymetar post-patch: -.ifndef NOPORTDOCS + @${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 diff --git a/astro/py-metar/distinfo b/astro/py-metar/distinfo index a5c6bae4a6d2..c269d3b6cafe 100644 --- a/astro/py-metar/distinfo +++ b/astro/py-metar/distinfo @@ -1,3 +1,3 @@ -MD5 (pymetar-0.14.tar.gz) = 024fb0b46c0cb8cf21d63c68d2014796 -SHA256 (pymetar-0.14.tar.gz) = 46d21122cd200099271e8377cf40c7a4dd005b0a3867a792632715de812c47fe -SIZE (pymetar-0.14.tar.gz) = 21722 +MD5 (pymetar-0.16.tar.gz) = 6a054899484c13848da258e537ae545b +SHA256 (pymetar-0.16.tar.gz) = 315f62db08df5745792a0e3a903528a4c02c66378c6a627fdc79cfa6499a13dc +SIZE (pymetar-0.16.tar.gz) = 22653 |