diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2003-11-19 01:22:49 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2003-11-19 01:22:49 +0000 |
commit | 6e097d26876f0d4e4e7876eb788d2d4326386af4 (patch) | |
tree | 612c618c41a2c3dfee8dcad688f07d338ffcc517 | |
parent | Update to 031118 (diff) |
Add Python compilation post-install, and an extra mirror.
Add a patch to work around a bug wherein changing your
location would cause old data to be displayed (patch by
Franz Klammer <klammer@webonaut.com>).
PR: ports/59440
Submitted by: Jeremy Messenger <mezz7@cox.net> (maintainer)
Notes
Notes:
svn path=/head/; revision=94310
-rw-r--r-- | astro/gdesklets-goodweather/Makefile | 9 | ||||
-rw-r--r-- | astro/gdesklets-goodweather/pkg-plist | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/astro/gdesklets-goodweather/Makefile b/astro/gdesklets-goodweather/Makefile index 9075e07f50ba..f7b250d0371c 100644 --- a/astro/gdesklets-goodweather/Makefile +++ b/astro/gdesklets-goodweather/Makefile @@ -7,8 +7,10 @@ PORTNAME= goodweather PORTVERSION= 0.1 +PORTREVISION= 1 CATEGORIES= astro gnome -MASTER_SITES= http://people.roqe.org/kr/misc/ +MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ \ + http://people.roqe.org/kr/misc/ PKGNAMEPREFIX= gdesklets- DISTNAME= GoodWeather-${PORTVERSION} @@ -18,6 +20,7 @@ COMMENT= A desklet that displays current weather condition and forecast RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets USE_BZIP2= yes +USE_PYTHON= yes USE_X_PREFIX= yes USE_REINPLACE= yes @@ -27,6 +30,8 @@ SKINS= liquid um weather.com do-build: @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${PATCH} ${WRKSRC}/${NAME}/__init__.py < ${FILESDIR}/${NAME}::__init__.py + @${FIND} ${WRKSRC} -name '*.orig' -delete do-install: @${MKDIR} ${DATADIR}/gdesklets/Displays/${NAME}/gfx @@ -46,6 +51,8 @@ do-install: ${DATADIR}/gdesklets/Sensors/${NAME}/README post-install: + @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/gdesklets/Sensors/${NAME} + @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/gdesklets/Sensors/${NAME} @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/astro/gdesklets-goodweather/pkg-plist b/astro/gdesklets-goodweather/pkg-plist index 4e2e64d0828c..e577be2ada28 100644 --- a/astro/gdesklets-goodweather/pkg-plist +++ b/astro/gdesklets-goodweather/pkg-plist @@ -6,6 +6,8 @@ share/gnome/gdesklets/Displays/GoodWeather/gfx/bg-right.png share/gnome/gdesklets/Displays/GoodWeather/gfx/bg-weather.png share/gnome/gdesklets/Sensors/GoodWeather/README share/gnome/gdesklets/Sensors/GoodWeather/__init__.py +share/gnome/gdesklets/Sensors/GoodWeather/__init__.pyc +share/gnome/gdesklets/Sensors/GoodWeather/__init__.pyo share/gnome/gdesklets/Sensors/GoodWeather/liquid/large_icons/1.png share/gnome/gdesklets/Sensors/GoodWeather/liquid/large_icons/10.png share/gnome/gdesklets/Sensors/GoodWeather/liquid/large_icons/11.png @@ -285,6 +287,8 @@ share/gnome/gdesklets/Sensors/GoodWeather/weather.com/small_icons/8.png share/gnome/gdesklets/Sensors/GoodWeather/weather.com/small_icons/9.png share/gnome/gdesklets/Sensors/GoodWeather/weather.com/small_icons/na.png share/gnome/gdesklets/Sensors/GoodWeather/weather.py +share/gnome/gdesklets/Sensors/GoodWeather/weather.pyc +share/gnome/gdesklets/Sensors/GoodWeather/weather.pyo @dirrm share/gnome/gdesklets/Sensors/GoodWeather/weather.com/small_icons @dirrm share/gnome/gdesklets/Sensors/GoodWeather/weather.com/large_icons @dirrm share/gnome/gdesklets/Sensors/GoodWeather/weather.com |