summaryrefslogtreecommitdiff
path: root/astro/weather/Makefile
blob: f9b2bc1386ab707fa76ffd8b5df7f053c332cfdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:	weather
# Date created:		2010-05-25
# Whom:			Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
#
# $FreeBSD$
#

PORTNAME=	weather
PORTVERSION=	1.5
CATEGORIES=	astro python
MASTER_SITES=	http://fungi.yuggoth.org/weather/src/ \
		http://sunpoet.net/distfiles/

MAINTAINER=	sunpoet@sunpoet.net
COMMENT=	An utility to provide current weather conditions and forecasts

USE_PYTHON=	-2.7

MAN1=		weather.1
MAN5=		weatherrc.5
PLIST_FILES=	bin/weather \
		%%PYTHON_SITELIBDIR%%/${PORTNAME}.py \
		%%PYTHON_SITELIBDIR%%/${PORTNAME}.pyc

post-patch:
	@${REINPLACE_CMD} -e '1 s/python/${PYTHON_VERSION}/' ${WRKSRC}/weather

do-build:
	@${WRKSRC}/weather --version

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/

.include <bsd.port.mk>