blob: 2f98aaa14833587a8ab56d07d64fdb3ec5bf2fa8 (
plain)
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
38
39
40
41
42
43
44
45
46
|
PORTNAME= conkyforecast
PORTVERSION= 2.24
CATEGORIES= deskutils
MASTER_SITES= https://launchpad.net/~conky-companions/+archive/ppa/+files/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Weather forecast script for conky
WWW= https://code.launchpad.net/~m-buck/+junk/conkyforecast
LICENSE= GPLv3
RUN_DEPENDS= conky:sysutils/conky \
pidof:sysutils/pidof
USES= gettext python:3.6+ fonts
USE_PYTHON= distutils concurrent optsuffix
NO_ARCH= yes
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/src
post-patch:
@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,/usr/share/${PORTNAME},${DATADIR},g' \
setup.py \
test/conkyForecast.test.conkyrc \
test/conkyForecast.test.sh \
example/conkyForecast.fontbased.sh \
example/conkyForecast.fontbasedtemplate.conkyrc \
example/conkyForecast.fontbasedtemplate.sh \
example/conkyForecast.imagebasedtemplate.conkyrc \
example/conkyForecast.imagebasedtemplate.sh \
conkyForecast.py \
conkyForecast \
conkyForecast-SunsetSunriseCountdown
@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,/usr/bin/python,/usr/bin/env,g' \
conkyForecast \
conkyForecast-SunsetSunriseCountdown
@cd ${WRKSRC} && ${RM} -r test/*.bak example/*.bak
post-install:
@${MKDIR} ${STAGEDIR}${FONTSDIR}
@${INSTALL_DATA} ${WRKSRC}/fonts/* ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>
|