diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-21 18:23:10 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-21 18:23:10 +0000 |
commit | d2ad9158925c61663e38df5d9c33d00be67d3c27 (patch) | |
tree | 345b896cbde2ba23c11f6ca7fbb0c068a41cb2d6 /deskutils | |
parent | a1155434532d4b0e4c7da7a3c3e1e2a7d248c69d (diff) |
- Add dependency on astro/gdesklets-weather (needed for weather.display)
- Patch uname invocation
PR: ports/64543
Submitted by: Tim Bishop <tim@bishnet.net> (maintainer)
Reported by: adamw
Notes
Notes:
svn path=/head/; revision=104855
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/gdesklets-ltvariations/Makefile | 5 | ||||
-rw-r--r-- | deskutils/gdesklets-ltvariations/files/LTVUptime::__init__.py | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/deskutils/gdesklets-ltvariations/Makefile b/deskutils/gdesklets-ltvariations/Makefile index 78b1ea4ddd23..1f4f88088d5a 100644 --- a/deskutils/gdesklets-ltvariations/Makefile +++ b/deskutils/gdesklets-ltvariations/Makefile @@ -7,6 +7,7 @@ PORTNAME= ltvariations PORTVERSION= 0.26 +PORTREVISION= 1 CATEGORIES= deskutils gnome MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ PKGNAMEPREFIX= gdesklets- @@ -15,7 +16,8 @@ DISTNAME= LTVariations-${PORTVERSION} MAINTAINER= tim@bishnet.net COMMENT= A collection of sensors and displays -RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets \ + ${X11BASE}/share/gnome/gdesklets/Sensors/Weather/__init__.py:${PORTSDIR}/astro/gdesklets-weather USE_PYTHON= yes USE_X_PREFIX= yes @@ -32,6 +34,7 @@ do-build: .for ii in ${SENSORS} @${WRKSRC}/Sensors/Install_${ii}_Sensor.bin --nomsg ${WRKSRC} .endfor + @${PATCH} ${WRKSRC}/LTVUptime/__init__.py < ${FILESDIR}/LTVUptime::__init__.py @${CAT} pkg-message | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g ; s|%%DISPLAY%%|${DISPLAY}|g' > ${PKGMESSAGE} do-install: diff --git a/deskutils/gdesklets-ltvariations/files/LTVUptime::__init__.py b/deskutils/gdesklets-ltvariations/files/LTVUptime::__init__.py new file mode 100644 index 000000000000..b1e1ae1f030d --- /dev/null +++ b/deskutils/gdesklets-ltvariations/files/LTVUptime::__init__.py @@ -0,0 +1,11 @@ +--- __init__.py.bak Sun Mar 21 17:40:07 2004 ++++ __init__.py Sun Mar 21 17:41:40 2004 +@@ -21,7 +21,7 @@ + self._set_config_type("update", TYPE_INT, int(interval)) + self._set_config_type("format", TYPE_STRING, format) + self._set_config_type("host", TYPE_STRING, commands.getoutput("uname -n")) +- self._set_config_type("os", TYPE_STRING, commands.getoutput("uname -o")) ++ self._set_config_type("os", TYPE_STRING, commands.getoutput("uname -s")) + self._set_config_type("kernel", TYPE_STRING, commands.getoutput("uname -s")) + self._set_config_type("version", TYPE_STRING, commands.getoutput("uname -r")) + self._set_config_type("processor", TYPE_STRING, commands.getoutput("uname -p")) |