aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-04-27 04:49:25 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2013-04-27 04:49:25 +0000
commit42b4d24e346a6e58d79c8298b7360136202e3552 (patch)
treee1022a88e279c26c795895dd312dbb626f595dd8 /astro
parentb21a61da78850ab2c9a3314ccab6b2d202ed5013 (diff)
downloadports-42b4d24e346a6e58d79c8298b7360136202e3552.tar.gz
ports-42b4d24e346a6e58d79c8298b7360136202e3552.zip
Notes
Diffstat (limited to 'astro')
-rw-r--r--astro/py-metar/Makefile17
-rw-r--r--astro/py-metar/distinfo4
2 files changed, 12 insertions, 9 deletions
diff --git a/astro/py-metar/Makefile b/astro/py-metar/Makefile
index 79f117eede6a..06898fff6949 100644
--- a/astro/py-metar/Makefile
+++ b/astro/py-metar/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= metar
-PORTVERSION= 0.17
+PORTVERSION= 0.19
CATEGORIES= astro python geography
MASTER_SITES= http://www.schwarzvogel.de/pkgs/ \
LOCAL/sunpoet
@@ -14,14 +14,16 @@ COMMENT= Python module that provides access to NOAA METAR weather reports
LICENSE= GPLv2
-OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options
OPTIONS_DEFINE= DOCS
+OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options
PYDISTUTILS_PKGNAME= ${REALPORTNAME}
-USE_PYDISTUTILS= yes
+USE_PYDISTUTILS=yes
USE_PYTHON= -2.7
-DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+DOCSDIR= ${PREFIX}/share/doc/${REALPORTNAME}-${PORTVERSION}
+MAN1= ${REALPORTNAME}.1
+MANCOMPRESSED= no
PLIST_FILES= bin/${REALPORTNAME} \
%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.py \
%%PYTHON_SITELIBDIR%%/${REALPORTNAME}.pyc \
@@ -34,15 +36,16 @@ REALPORTNAME= pymetar
post-patch:
@${REINPLACE_CMD} -E '1 s|/usr/bin/(env *)?python|${PYTHON_CMD}|' \
- ${WRKSRC}/setup.py ${WRKSRC}/bin/${REALPORTNAME}
+ ${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}/setup.py
+ ${WRKSRC}/${PYSETUP}
.else
@${REINPLACE_CMD} \
-e 's|"share/doc/pymetar-%s/"%pymetar.__version__|""|' \
- -e "s|\['README.*'\]|[]|" ${WRKSRC}/setup.py
+ -e "s|\['README.*'\]|[]|" ${WRKSRC}/${PYSETUP}
.endif
.include <bsd.port.mk>
diff --git a/astro/py-metar/distinfo b/astro/py-metar/distinfo
index 92b2d190ca74..958c4568fe23 100644
--- a/astro/py-metar/distinfo
+++ b/astro/py-metar/distinfo
@@ -1,2 +1,2 @@
-SHA256 (pymetar-0.17.tar.gz) = 37198f827690a3b7264a8e256ab46e6e1e42031d52e32f8fb5c34943e7dd221c
-SIZE (pymetar-0.17.tar.gz) = 21852
+SHA256 (pymetar-0.19.tar.gz) = 2666c9bcb171bcc5cd6c174073a280836f049fbbd9c264ea24a2a023edb647c9
+SIZE (pymetar-0.19.tar.gz) = 22123