diff options
author | makc <makc@FreeBSD.org> | 2010-05-10 23:59:09 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2010-05-10 23:59:09 +0800 |
commit | fa03a3149ba3b1ec151dbd71123a1e7aa9fd1914 (patch) | |
tree | 89d26bdcc88eccd603d6b7443666d03a0a9e3bfb /deskutils | |
parent | 1e3fd5db56d823b8abca6c2075d4e4c411bd0455 (diff) | |
download | freebsd-ports-gnome-fa03a3149ba3b1ec151dbd71123a1e7aa9fd1914.tar.gz freebsd-ports-gnome-fa03a3149ba3b1ec151dbd71123a1e7aa9fd1914.tar.zst freebsd-ports-gnome-fa03a3149ba3b1ec151dbd71123a1e7aa9fd1914.zip |
Add new port deskutils/conkyforecast:
conkyForecast is a python script created to provide weather forecast
information to be displayed in Conky. It uses the Weather.com XOAP
service to retrieve data for all over the world.
WWW: https://launchpad.net/~conkyhardcore
WWW: https://code.launchpad.net/~m-buck/+junk/conkyforecast
PR: ports/146381
Submitted by: Gvozdikov Veniamin <g.veniamin at googlemail.com>
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/conkyforecast/Makefile | 46 | ||||
-rw-r--r-- | deskutils/conkyforecast/distinfo | 3 | ||||
-rw-r--r-- | deskutils/conkyforecast/files/patch-conkyForecast | 7 | ||||
-rw-r--r-- | deskutils/conkyforecast/files/patch-conkyForecast.py | 8 | ||||
-rw-r--r-- | deskutils/conkyforecast/files/patch-setup.py | 10 | ||||
-rw-r--r-- | deskutils/conkyforecast/files/pkg-message.in | 18 | ||||
-rw-r--r-- | deskutils/conkyforecast/pkg-descr | 6 | ||||
-rw-r--r-- | deskutils/conkyforecast/pkg-plist | 209 |
8 files changed, 307 insertions, 0 deletions
diff --git a/deskutils/conkyforecast/Makefile b/deskutils/conkyforecast/Makefile new file mode 100644 index 000000000000..6ece6602b61e --- /dev/null +++ b/deskutils/conkyforecast/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: conkyforecast +# Date created: 2010-05-07 +# Whom: Gvozdikov Veniamin <g.veniamin@googlemail.com> +# +# $FreeBSD$ +# + +PORTNAME= conkyforecast +PORTVERSION= 2.09 +CATEGORIES= deskutils +MASTER_SITES= http://launchpadlibrarian.net/37518633/ \ + http://fbsd.zlonet.ru/distfiles/ +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= g.veniamin@googlemail.com +COMMENT= Weather forecast script for conky + +BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig +RUN_DEPENDS= conky:${PORTSDIR}/sysutils/conky \ + 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' \ + setup.py test/conkyrc example/conkyrc conkyForecast.py conkyForecast + @cd ${WRKSRC} && ${RM} -fr test/conkyrc.bak example/conkyrc.bak + +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> diff --git a/deskutils/conkyforecast/distinfo b/deskutils/conkyforecast/distinfo new file mode 100644 index 000000000000..a949ae534c2f --- /dev/null +++ b/deskutils/conkyforecast/distinfo @@ -0,0 +1,3 @@ +MD5 (conkyforecast_2.09.tar.gz) = b8933e2513079df26dfa3e781feb2650 +SHA256 (conkyforecast_2.09.tar.gz) = a7c196f9cb05e76098ff27149c34f634e0baaf8bf895e58156d3200135dd28cc +SIZE (conkyforecast_2.09.tar.gz) = 11029079 diff --git a/deskutils/conkyforecast/files/patch-conkyForecast b/deskutils/conkyforecast/files/patch-conkyForecast new file mode 100644 index 000000000000..43174f186f89 --- /dev/null +++ b/deskutils/conkyforecast/files/patch-conkyForecast @@ -0,0 +1,7 @@ +--- conkyForecast.orig 2010-01-07 05:02:45.000000000 +0700 ++++ conkyForecast 2010-05-07 02:07:30.000000000 +0800 +@@ -1,3 +1,3 @@ + #! /bin/sh + cd /usr/share/conkyforecast/ +-$PYTHONPATH /usr/bin/python /usr/share/conkyforecast/conkyForecast.py "$@" ++$PYTHONPATH /usr/bin/env python /usr/share/conkyforecast/conkyForecast.py "$@" diff --git a/deskutils/conkyforecast/files/patch-conkyForecast.py b/deskutils/conkyforecast/files/patch-conkyForecast.py new file mode 100644 index 000000000000..6db19cb424f2 --- /dev/null +++ b/deskutils/conkyforecast/files/patch-conkyForecast.py @@ -0,0 +1,8 @@ +--- conkyForecast.py.orig 2010-01-07 05:02:45.000000000 +0700 ++++ conkyForecast.py 2010-05-07 01:54:00.000000000 +0800 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/env python + # -*- coding: utf-8 -*- + ############################################################################### + # conkyForecast.py is a (not so) simple (anymore) python script to gather diff --git a/deskutils/conkyforecast/files/patch-setup.py b/deskutils/conkyforecast/files/patch-setup.py new file mode 100644 index 000000000000..32a0c3ff412a --- /dev/null +++ b/deskutils/conkyforecast/files/patch-setup.py @@ -0,0 +1,10 @@ +--- setup.py.orig 2010-01-07 05:02:45.000000000 +0700 ++++ setup.py 2010-05-07 23:16:08.000000000 +0800 +@@ -46,7 +46,6 @@ + ('/usr/share/conkyforecast/', [ 'conkyForecast.pot' ] ), + ('/usr/share/conkyforecast/', [ 'conkyForecast.config' ] ), + ('/usr/share/conkyforecast/example', listfiles( 'example', '*' ) ), +- ('/usr/share/fonts/truetype/conkyforecast', listfiles( 'fonts', '*' ) ), + ('/usr/share/conkyforecast/images/bearingicons', listfiles( 'images/bearingicons', '*' ) ), + ('/usr/share/conkyforecast/images/moonicons', listfiles( 'images/moonicons', '*' ) ), + ('/usr/share/conkyforecast/images/weathericons', listfiles( 'images/weathericons', '*' ) ), diff --git a/deskutils/conkyforecast/files/pkg-message.in b/deskutils/conkyforecast/files/pkg-message.in new file mode 100644 index 000000000000..d0b42db317fe --- /dev/null +++ b/deskutils/conkyforecast/files/pkg-message.in @@ -0,0 +1,18 @@ +Make sure that the freetype module is loaded. If it is not, add the following +line to the "Modules" section of your X Windows configuration file: + + Load "freetype" + +Add the following line to the "Files" section of X Windows configuration file: + + FontPath "%%PREFIX%%/%%FONTSDIR%%/" + +For a working script you must define, in a user specific config file, a partner +id and registration code for the weather.com xoap service. For this purpose +the config file should be copied to ~/.conkyForecast.config and setup as +required. + +To copy and edit the config, using the command line, run: + + cp %%DATADIR%%/conkyForecast.config ~/.conkyForecast.config + diff --git a/deskutils/conkyforecast/pkg-descr b/deskutils/conkyforecast/pkg-descr new file mode 100644 index 000000000000..0dff0122b229 --- /dev/null +++ b/deskutils/conkyforecast/pkg-descr @@ -0,0 +1,6 @@ +conkyForecast is a python script created to provide weather forecast +information to be displayed in Conky. It uses the Weather.com XOAP +service to retrieve data for all over the world. + +WWW: https://launchpad.net/~conkyhardcore +WWW: https://code.launchpad.net/~m-buck/+junk/conkyforecast diff --git a/deskutils/conkyforecast/pkg-plist b/deskutils/conkyforecast/pkg-plist new file mode 100644 index 000000000000..46cd08a750bc --- /dev/null +++ b/deskutils/conkyforecast/pkg-plist @@ -0,0 +1,209 @@ +bin/conkyForecast +%%DATADIR%%/conkyForecast.config +%%DATADIR%%/conkyForecast.pot +%%DATADIR%%/conkyForecast.py +%%DATADIR%%/example/conkyForecast.template +%%DATADIR%%/example/conkyrc +%%FONTSDIR%%/Arrows.sfd.tar.gz +%%FONTSDIR%%/Arrows.ttf +%%FONTSDIR%%/ConkyWeather.otf +%%FONTSDIR%%/ConkyWind.otf +%%FONTSDIR%%/ConkyWind.sfd.tar.gz +%%FONTSDIR%%/ConkyWindN.otf +%%FONTSDIR%%/ConkyWindNESW.otf +%%FONTSDIR%%/Moon Phases.ttf +%%FONTSDIR%%/StyleBats.ttf +%%DATADIR%%/images/bearingicons/00.png +%%DATADIR%%/images/bearingicons/01.png +%%DATADIR%%/images/bearingicons/02.png +%%DATADIR%%/images/bearingicons/03.png +%%DATADIR%%/images/bearingicons/04.png +%%DATADIR%%/images/bearingicons/05.png +%%DATADIR%%/images/bearingicons/06.png +%%DATADIR%%/images/bearingicons/07.png +%%DATADIR%%/images/bearingicons/08.png +%%DATADIR%%/images/bearingicons/09.png +%%DATADIR%%/images/bearingicons/10.png +%%DATADIR%%/images/bearingicons/11.png +%%DATADIR%%/images/bearingicons/12.png +%%DATADIR%%/images/bearingicons/13.png +%%DATADIR%%/images/bearingicons/14.png +%%DATADIR%%/images/bearingicons/15.png +%%DATADIR%%/images/bearingicons/16.png +%%DATADIR%%/images/bearingicons/17.png +%%DATADIR%%/images/bearingicons/18.png +%%DATADIR%%/images/bearingicons/19.png +%%DATADIR%%/images/bearingicons/20.png +%%DATADIR%%/images/bearingicons/21.png +%%DATADIR%%/images/bearingicons/22.png +%%DATADIR%%/images/bearingicons/23.png +%%DATADIR%%/images/bearingicons/24.png +%%DATADIR%%/images/bearingicons/25.png +%%DATADIR%%/images/bearingicons/26.png +%%DATADIR%%/images/bearingicons/27.png +%%DATADIR%%/images/bearingicons/28.png +%%DATADIR%%/images/bearingicons/29.png +%%DATADIR%%/images/bearingicons/30.png +%%DATADIR%%/images/bearingicons/31.png +%%DATADIR%%/images/bearingicons/32.png +%%DATADIR%%/images/bearingicons/33.png +%%DATADIR%%/images/bearingicons/34.png +%%DATADIR%%/images/bearingicons/35.png +%%DATADIR%%/images/bearingicons/36.png +%%DATADIR%%/images/bearingicons/37.png +%%DATADIR%%/images/bearingicons/38.png +%%DATADIR%%/images/bearingicons/39.png +%%DATADIR%%/images/bearingicons/40.png +%%DATADIR%%/images/bearingicons/41.png +%%DATADIR%%/images/bearingicons/42.png +%%DATADIR%%/images/bearingicons/43.png +%%DATADIR%%/images/bearingicons/44.png +%%DATADIR%%/images/bearingicons/45.png +%%DATADIR%%/images/bearingicons/46.png +%%DATADIR%%/images/bearingicons/47.png +%%DATADIR%%/images/bearingicons/48.png +%%DATADIR%%/images/bearingicons/49.png +%%DATADIR%%/images/bearingicons/50.png +%%DATADIR%%/images/bearingicons/51.png +%%DATADIR%%/images/bearingicons/52.png +%%DATADIR%%/images/bearingicons/53.png +%%DATADIR%%/images/bearingicons/54.png +%%DATADIR%%/images/bearingicons/55.png +%%DATADIR%%/images/bearingicons/56.png +%%DATADIR%%/images/bearingicons/57.png +%%DATADIR%%/images/bearingicons/58.png +%%DATADIR%%/images/bearingicons/59.png +%%DATADIR%%/images/bearingicons/60.png +%%DATADIR%%/images/bearingicons/61.png +%%DATADIR%%/images/bearingicons/62.png +%%DATADIR%%/images/bearingicons/63.png +%%DATADIR%%/images/bearingicons/64.png +%%DATADIR%%/images/bearingicons/65.png +%%DATADIR%%/images/bearingicons/66.png +%%DATADIR%%/images/bearingicons/67.png +%%DATADIR%%/images/bearingicons/68.png +%%DATADIR%%/images/moonicons/01.png +%%DATADIR%%/images/moonicons/02.png +%%DATADIR%%/images/moonicons/03.png +%%DATADIR%%/images/moonicons/04.png +%%DATADIR%%/images/moonicons/05.png +%%DATADIR%%/images/moonicons/06.png +%%DATADIR%%/images/moonicons/07.png +%%DATADIR%%/images/moonicons/08.png +%%DATADIR%%/images/moonicons/09.png +%%DATADIR%%/images/moonicons/10.png +%%DATADIR%%/images/moonicons/11.png +%%DATADIR%%/images/moonicons/12.png +%%DATADIR%%/images/moonicons/13.png +%%DATADIR%%/images/moonicons/14.png +%%DATADIR%%/images/moonicons/15.png +%%DATADIR%%/images/moonicons/16.png +%%DATADIR%%/images/moonicons/17.png +%%DATADIR%%/images/moonicons/18.png +%%DATADIR%%/images/moonicons/19.png +%%DATADIR%%/images/moonicons/20.png +%%DATADIR%%/images/moonicons/21.png +%%DATADIR%%/images/moonicons/22.png +%%DATADIR%%/images/moonicons/23.png +%%DATADIR%%/images/moonicons/24.png +%%DATADIR%%/images/weathericons/00.png +%%DATADIR%%/images/weathericons/01.png +%%DATADIR%%/images/weathericons/02.png +%%DATADIR%%/images/weathericons/03.png +%%DATADIR%%/images/weathericons/04.png +%%DATADIR%%/images/weathericons/05.png +%%DATADIR%%/images/weathericons/06.png +%%DATADIR%%/images/weathericons/07.png +%%DATADIR%%/images/weathericons/08.png +%%DATADIR%%/images/weathericons/09.png +%%DATADIR%%/images/weathericons/10.png +%%DATADIR%%/images/weathericons/11.png +%%DATADIR%%/images/weathericons/12.png +%%DATADIR%%/images/weathericons/13.png +%%DATADIR%%/images/weathericons/14.png +%%DATADIR%%/images/weathericons/15.png +%%DATADIR%%/images/weathericons/16.png +%%DATADIR%%/images/weathericons/17.png +%%DATADIR%%/images/weathericons/18.png +%%DATADIR%%/images/weathericons/19.png +%%DATADIR%%/images/weathericons/20.png +%%DATADIR%%/images/weathericons/21.png +%%DATADIR%%/images/weathericons/22.png +%%DATADIR%%/images/weathericons/23.png +%%DATADIR%%/images/weathericons/24.png +%%DATADIR%%/images/weathericons/25.png +%%DATADIR%%/images/weathericons/26.png +%%DATADIR%%/images/weathericons/27.png +%%DATADIR%%/images/weathericons/28.png +%%DATADIR%%/images/weathericons/29.png +%%DATADIR%%/images/weathericons/30.png +%%DATADIR%%/images/weathericons/31.png +%%DATADIR%%/images/weathericons/32.png +%%DATADIR%%/images/weathericons/33.png +%%DATADIR%%/images/weathericons/34.png +%%DATADIR%%/images/weathericons/35.png +%%DATADIR%%/images/weathericons/36.png +%%DATADIR%%/images/weathericons/37.png +%%DATADIR%%/images/weathericons/38.png +%%DATADIR%%/images/weathericons/39.png +%%DATADIR%%/images/weathericons/40.png +%%DATADIR%%/images/weathericons/41.png +%%DATADIR%%/images/weathericons/42.png +%%DATADIR%%/images/weathericons/43.png +%%DATADIR%%/images/weathericons/44.png +%%DATADIR%%/images/weathericons/45.png +%%DATADIR%%/images/weathericons/46.png +%%DATADIR%%/images/weathericons/47.png +%%DATADIR%%/locale/bg/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/bg/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/locale/cs/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/cs/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/locale/de/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/de/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/locale/es/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/es/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/locale/fj/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/fj/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/locale/fr/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/fr/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/locale/it/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/it/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/locale/nl/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/nl/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/locale/pl/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/pl/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/locale/ro/LC_MESSAGES/conkyForecast.mo +%%DATADIR%%/locale/ro/LC_MESSAGES/conkyForecast.po +%%DATADIR%%/test/conkyForecast.template +%%DATADIR%%/test/conkyrc +@dirrm %%DATADIR%%/test +@dirrm %%DATADIR%%/locale/ro/LC_MESSAGES +@dirrm %%DATADIR%%/locale/ro +@dirrm %%DATADIR%%/locale/pl/LC_MESSAGES +@dirrm %%DATADIR%%/locale/pl +@dirrm %%DATADIR%%/locale/nl/LC_MESSAGES +@dirrm %%DATADIR%%/locale/nl +@dirrm %%DATADIR%%/locale/it/LC_MESSAGES +@dirrm %%DATADIR%%/locale/it +@dirrm %%DATADIR%%/locale/fr/LC_MESSAGES +@dirrm %%DATADIR%%/locale/fr +@dirrm %%DATADIR%%/locale/fj/LC_MESSAGES +@dirrm %%DATADIR%%/locale/fj +@dirrm %%DATADIR%%/locale/es/LC_MESSAGES +@dirrm %%DATADIR%%/locale/es +@dirrm %%DATADIR%%/locale/de/LC_MESSAGES +@dirrm %%DATADIR%%/locale/de +@dirrm %%DATADIR%%/locale/cs/LC_MESSAGES +@dirrm %%DATADIR%%/locale/cs +@dirrm %%DATADIR%%/locale/bg/LC_MESSAGES +@dirrm %%DATADIR%%/locale/bg +@dirrm %%DATADIR%%/locale +@dirrm %%DATADIR%%/images/weathericons +@dirrm %%DATADIR%%/images/moonicons +@dirrm %%DATADIR%%/images/bearingicons +@dirrm %%DATADIR%%/images +@dirrm %%DATADIR%%/example +@dirrm %%DATADIR%% +@unexec rm %D/%%FONTSDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true +@dirrm %%FONTSDIR%% +@exec %%LOCALBASE%%/bin/fc-cache -f -v %D/%%FONTSDIR%% || /usr/bin/true |