2010-05-10 15:59:09 +00:00
|
|
|
# New ports collection makefile for: conkyforecast
|
|
|
|
# Date created: 2010-05-07
|
|
|
|
# Whom: Gvozdikov Veniamin <g.veniamin@googlemail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= conkyforecast
|
2011-09-12 22:04:49 +00:00
|
|
|
PORTVERSION= 2.20
|
2010-05-10 15:59:09 +00:00
|
|
|
CATEGORIES= deskutils
|
2011-09-12 22:04:49 +00:00
|
|
|
MASTER_SITES= https://launchpadlibrarian.net/70673352/ \
|
2010-05-10 15:59:09 +00:00
|
|
|
http://fbsd.zlonet.ru/distfiles/
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= g.veniamin@googlemail.com
|
|
|
|
COMMENT= Weather forecast script for conky
|
|
|
|
|
2011-09-12 22:04:49 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2010-05-10 15:59:09 +00:00
|
|
|
BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
RUN_DEPENDS= conky:${PORTSDIR}/sysutils/conky \
|
2011-09-12 22:04:49 +00:00
|
|
|
pidof:${PORTSDIR}/sysutils/pidof \
|
2010-05-10 15:59:09 +00:00
|
|
|
fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS=yes
|
|
|
|
INSTALL_EGGINFO=yes
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST+= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
|
|
|
|
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
|
|
|
|
FONTSDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME}
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,/usr/share/${PORTNAME},${DATADIR},g' \
|
2011-09-12 22:04:49 +00:00
|
|
|
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} -fr test/*.bak example/*.bak
|
2010-05-10 15:59:09 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${FONTSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/fonts/* ${FONTSDIR}
|
|
|
|
@${ECHO_MSG} "===> Running fc-cache"
|
|
|
|
-${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}
|
|
|
|
@${ECHO_MSG}
|
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|