mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +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:
parent
7c4c76c791
commit
5605c5a7cd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300082
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= weather
|
||||
PORTVERSION= 1.5
|
||||
PORTVERSION= 2.0
|
||||
CATEGORIES= astro python
|
||||
MASTER_SITES= http://fungi.yuggoth.org/weather/src/ \
|
||||
LOCAL/sunpoet
|
||||
@ -14,24 +14,27 @@ MASTER_SITES= http://fungi.yuggoth.org/weather/src/ \
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= An utility to provide current weather conditions and forecasts
|
||||
|
||||
USE_PYTHON= -2.7
|
||||
USE_PYTHON= yes
|
||||
USE_XZ= yes
|
||||
|
||||
MAN1= weather.1
|
||||
MAN5= weatherrc.5
|
||||
PLIST_FILES= bin/weather \
|
||||
MAN1= ${PORTNAME}.1
|
||||
MAN5= ${PORTNAME}rc.5
|
||||
PLIST_FILES= bin/${PORTNAME} \
|
||||
%%PYTHON_SITELIBDIR%%/${PORTNAME}.py \
|
||||
%%PYTHON_SITELIBDIR%%/${PORTNAME}.pyc
|
||||
%%PYTHON_SITELIBDIR%%/${PORTNAME}.pyc \
|
||||
%%PYTHON_SITELIBDIR%%/${PORTNAME}.pyo
|
||||
|
||||
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:
|
||||
@${WRKSRC}/weather --version
|
||||
@${PYTHON_CMD} -m compileall ${WRKSRC}/${PORTNAME}.py
|
||||
@${PYTHON_CMD} -O -m compileall ${WRKSRC}/${PORTNAME}.py
|
||||
|
||||
do-install:
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/weather ${PREFIX}/bin/
|
||||
@${INSTALL_DATA} ${WRKSRC}/weather.py ${WRKSRC}/weather.pyc ${PYTHON_SITELIBDIR}/
|
||||
@${INSTALL_MAN} ${WRKSRC}/weather.1 ${MANPREFIX}/man/man1/
|
||||
@${INSTALL_MAN} ${WRKSRC}/weatherrc.5 ${MANPREFIX}/man/man5/
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
|
||||
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTNAME}.py ${PORTNAME}.pyc ${PORTNAME}.pyo ${PYTHON_SITELIBDIR}/
|
||||
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1/${PORTNAME}.1
|
||||
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}rc.5 ${MANPREFIX}/man/man5/${PORTNAME}rc.5
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (weather-1.5.tar.gz) = 4a88936ada82a7027d97e33edc9aea50222ee5a3092566bf82fc77952222711b
|
||||
SIZE (weather-1.5.tar.gz) = 16533
|
||||
SHA256 (weather-2.0.tar.xz) = 807aff002d31cd81aeaae096981c28900323c405b8f7d36625d9c7e48719347a
|
||||
SIZE (weather-2.0.tar.xz) = 8928144
|
||||
|
Loading…
Reference in New Issue
Block a user