diff options
author | adamw <adamw@FreeBSD.org> | 2003-11-19 01:22:49 +0000 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2003-11-19 01:22:49 +0000 |
commit | 3178944c71b587e55e266f30f1efaa6c29e2e6b6 (patch) | |
tree | 256679bd3327cee0c55838c83d6a90938c343547 /astro | |
parent | 7e8ff2b54b669ab0a6dab5dffdd4a6a17b8a20c1 (diff) | |
download | FreeBSD-ports-3178944c71b587e55e266f30f1efaa6c29e2e6b6.zip FreeBSD-ports-3178944c71b587e55e266f30f1efaa6c29e2e6b6.tar.gz |
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)
Diffstat (limited to 'astro')
-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 9075e07..f7b250d 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 4e2e64d..e577be2 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 |