1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Update to 2.0

- Do not silence installation message

Changes:	http://fungi.yuggoth.org/weather/doc/changelog.rst
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2012-06-27 09:03:57 +00:00
parent 7c4c76c791
commit 5605c5a7cd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300082
2 changed files with 17 additions and 14 deletions

View File

@ -6,7 +6,7 @@
# #
PORTNAME= weather PORTNAME= weather
PORTVERSION= 1.5 PORTVERSION= 2.0
CATEGORIES= astro python CATEGORIES= astro python
MASTER_SITES= http://fungi.yuggoth.org/weather/src/ \ MASTER_SITES= http://fungi.yuggoth.org/weather/src/ \
LOCAL/sunpoet LOCAL/sunpoet
@ -14,24 +14,27 @@ MASTER_SITES= http://fungi.yuggoth.org/weather/src/ \
MAINTAINER= sunpoet@FreeBSD.org MAINTAINER= sunpoet@FreeBSD.org
COMMENT= An utility to provide current weather conditions and forecasts COMMENT= An utility to provide current weather conditions and forecasts
USE_PYTHON= -2.7 USE_PYTHON= yes
USE_XZ= yes
MAN1= weather.1 MAN1= ${PORTNAME}.1
MAN5= weatherrc.5 MAN5= ${PORTNAME}rc.5
PLIST_FILES= bin/weather \ PLIST_FILES= bin/${PORTNAME} \
%%PYTHON_SITELIBDIR%%/${PORTNAME}.py \ %%PYTHON_SITELIBDIR%%/${PORTNAME}.py \
%%PYTHON_SITELIBDIR%%/${PORTNAME}.pyc %%PYTHON_SITELIBDIR%%/${PORTNAME}.pyc \
%%PYTHON_SITELIBDIR%%/${PORTNAME}.pyo
post-patch: post-patch:
@${REINPLACE_CMD} -e '1 s/python/${PYTHON_VERSION}/' ${WRKSRC}/weather @${REINPLACE_CMD} -e '1 s|/usr/bin/env python|${PYTHON_CMD}|' ${WRKSRC}/${PORTNAME}
do-build: do-build:
@${WRKSRC}/weather --version @${PYTHON_CMD} -m compileall ${WRKSRC}/${PORTNAME}.py
@${PYTHON_CMD} -O -m compileall ${WRKSRC}/${PORTNAME}.py
do-install: do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/weather ${PREFIX}/bin/ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
@${INSTALL_DATA} ${WRKSRC}/weather.py ${WRKSRC}/weather.pyc ${PYTHON_SITELIBDIR}/ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTNAME}.py ${PORTNAME}.pyc ${PORTNAME}.pyo ${PYTHON_SITELIBDIR}/
@${INSTALL_MAN} ${WRKSRC}/weather.1 ${MANPREFIX}/man/man1/ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1/${PORTNAME}.1
@${INSTALL_MAN} ${WRKSRC}/weatherrc.5 ${MANPREFIX}/man/man5/ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}rc.5 ${MANPREFIX}/man/man5/${PORTNAME}rc.5
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (weather-1.5.tar.gz) = 4a88936ada82a7027d97e33edc9aea50222ee5a3092566bf82fc77952222711b SHA256 (weather-2.0.tar.xz) = 807aff002d31cd81aeaae096981c28900323c405b8f7d36625d9c7e48719347a
SIZE (weather-1.5.tar.gz) = 16533 SIZE (weather-2.0.tar.xz) = 8928144