diff options
author | adamw <adamw@FreeBSD.org> | 2004-01-08 03:23:44 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2004-01-08 03:23:44 +0800 |
commit | af685b57f90b5b824e878fb410f09638526c6747 (patch) | |
tree | eb12b145185cf21f709d3052bc0d023e51db4e53 /sysutils | |
parent | 575c391365e7c125e4fc3f00b15101631adca2f6 (diff) | |
download | freebsd-ports-gnome-af685b57f90b5b824e878fb410f09638526c6747.tar.gz freebsd-ports-gnome-af685b57f90b5b824e878fb410f09638526c6747.tar.zst freebsd-ports-gnome-af685b57f90b5b824e878fb410f09638526c6747.zip |
Update to 0.25.
PR: ports/61014
Submitted by: Franz Klammer <klammer@webonaut.com> (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/gdesklets-sysinfo/Makefile | 16 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/distinfo | 2 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/files/patch-sysinfo.display | 59 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/files/postbuild-patch-__init__.py | 141 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/pkg-plist | 38 |
5 files changed, 220 insertions, 36 deletions
diff --git a/sysutils/gdesklets-sysinfo/Makefile b/sysutils/gdesklets-sysinfo/Makefile index e1775e5f35a9..2c23425950f9 100644 --- a/sysutils/gdesklets-sysinfo/Makefile +++ b/sysutils/gdesklets-sysinfo/Makefile @@ -6,8 +6,7 @@ # PORTNAME= sysinfo -PORTVERSION= 0.23 -PORTREVISION= 1 +PORTVERSION= 0.25 CATEGORIES= sysutils gnome MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ PKGNAMEPREFIX= gdesklets- @@ -20,26 +19,25 @@ RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutil USE_BZIP2= yes USE_X_PREFIX= yes +USE_PYTHON= yes NAME= SysInfo DATADIR= ${PREFIX}/share/gnome LANG= de es fr pt sq sr sr@Latn sv PKGMESSAGE= ${WRKDIR}/pkg-message +WRKSRC= ${WRKDIR}/${NAME} do-build: - @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} - @${PATCH} -d ${WRKDIR} -sp0 < ${PATCHDIR}/postbuild-patch-__init__.py + @${WRKDIR}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${PATCH} -d ${WRKSRC} -sp0 < ${PATCHDIR}/postbuild-patch-__init__.py @${FIND} ${WRKSRC} -name '*.orig' -delete @${CAT} pkg-message | ${SED} -e 's|%%PREFIX%%|${PREFIX}|' > ${PKGMESSAGE} do-install: @${MKDIR} ${DATADIR}/gdesklets/Displays/${NAME}/gfx - @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME}/gfx + @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME} @${INSTALL_DATA} ${WRKSRC}/*.display ${DATADIR}/gdesklets/Displays/${NAME}/ - @${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DATADIR}/gdesklets/Displays/${NAME}/ - @${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DATADIR}/gdesklets/Displays/${NAME}/ @${INSTALL_DATA} ${WRKSRC}/gfx/*.png ${DATADIR}/gdesklets/Displays/${NAME}/gfx/ @${INSTALL_DATA} ${WRKSRC}/${NAME}/__init__.py ${DATADIR}/gdesklets/Sensors/${NAME} - @${INSTALL_DATA} ${WRKSRC}/${NAME}/gfx/*.png ${DATADIR}/gdesklets/Sensors/${NAME}/gfx/ .for ii in ${LANG} @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME}/locale/${ii}/LC_MESSAGES @${INSTALL_DATA} ${WRKSRC}/${NAME}/locale/${ii}/LC_MESSAGES/gdesklets.mo \ @@ -47,6 +45,8 @@ do-install: .endfor 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/sysutils/gdesklets-sysinfo/distinfo b/sysutils/gdesklets-sysinfo/distinfo index d9f235fa0828..b05e16bce0b4 100644 --- a/sysutils/gdesklets-sysinfo/distinfo +++ b/sysutils/gdesklets-sysinfo/distinfo @@ -1 +1 @@ -MD5 (SysInfo-0.23.tar.bz2) = 071151b2674937fe4c3f9fc8e0a8bff8 +MD5 (SysInfo-0.25.tar.bz2) = 6d6c6c21b0f73227c33649d07a88b4c6 diff --git a/sysutils/gdesklets-sysinfo/files/patch-sysinfo.display b/sysutils/gdesklets-sysinfo/files/patch-sysinfo.display new file mode 100644 index 000000000000..b1fe2bd0d03d --- /dev/null +++ b/sysutils/gdesklets-sysinfo/files/patch-sysinfo.display @@ -0,0 +1,59 @@ +--- sysinfo.display.orig Tue Jan 6 11:29:16 2004 ++++ sysinfo.display Tue Jan 6 12:05:28 2004 +@@ -36,9 +36,8 @@ + + <label id="value1" relative-to="key1, x" + x="0" y="0" visible="false" +- font="Bitstream Vera Sans 12" +- watch="value=sys:value1, visible=sys:show1, +- color=sys:val_color" wrap-at="100"/> ++ watch="font=sys:fonts, value=sys:value1, visible=sys:show1, ++ color=sys:title_color" wrap-at="200"/> + </group> + + <group id="line2" relative-to="line1, y"> +@@ -50,7 +49,7 @@ + x="5" y="0" visible="false" + watch="value=sys:value2, visible=sys:show2, + font=sys:fonts, color=sys:val_color" +- wrap-at="80"/> ++ wrap-at="100"/> + </group> + + <group id="line3" relative-to="line2, y"> +@@ -62,7 +61,7 @@ + x="5" y="0" visible="false" + watch="value=sys:value3, visible=sys:show3, + font=sys:fonts, color=sys:val_color" +- wrap-at="80"/> ++ wrap-at="100"/> + </group> + + <group id="line4" relative-to="line3, y"> +@@ -74,7 +73,7 @@ + x="5" y="0" visible="false" + watch="value=sys:value4, visible=sys:show4, + font=sys:fonts, color=sys:val_color" +- wrap-at="80"/> ++ wrap-at="100"/> + </group> + + <group id="line5" relative-to="line4, y"> +@@ -86,7 +85,7 @@ + x="5" y="0" visible="false" + watch="value=sys:value5, visible=sys:show5, + font=sys:fonts, color=sys:val_color" +- wrap-at="80"/> ++ wrap-at="100"/> + </group> + + <group id="line6" relative-to="line5, y"> +@@ -98,7 +97,7 @@ + x="5" y="0" visible="false" + watch="value=sys:value6, visible=sys:show6, + font=sys:fonts, color=sys:val_color" +- wrap-at="80"/> ++ wrap-at="100"/> + </group> + + <group id="ggauge" relative-to="line6, y" x="0" y="4" diff --git a/sysutils/gdesklets-sysinfo/files/postbuild-patch-__init__.py b/sysutils/gdesklets-sysinfo/files/postbuild-patch-__init__.py index ab09a17e0200..7fce2615bc37 100644 --- a/sysutils/gdesklets-sysinfo/files/postbuild-patch-__init__.py +++ b/sysutils/gdesklets-sysinfo/files/postbuild-patch-__init__.py @@ -1,11 +1,130 @@ ---- SysInfo-0.23/SysInfo/__init__.py.orig Mon Dec 29 11:45:41 2003 -+++ SysInfo-0.23/SysInfo/__init__.py Mon Dec 29 11:46:51 2003 -@@ -129,7 +129,7 @@ - signal.set("key2[%(index)d]" % vars(), _("Clock:")) - signal.set("value2[%(index)d]" % vars(), self.__cpu_speed) - signal.set("key3[%(index)d]" % vars(), _("Cache:")) -- signal.set("value3[%(index)d]" % vars(), self.__cpu_cache) -+ signal.set("value3[%(index)d]" % vars(), "Unknown") - signal.set("fill[%(index)d]" % vars(), load) - signal.set("show1[%(index)d]" % vars(), 1) - signal.set("show2[%(index)d]" % vars(), 1) +--- SysInfo/__init__.py.orig Mon Jan 5 23:16:50 2004 ++++ SysInfo/__init__.py Wed Jan 7 12:50:31 2004 +@@ -23,8 +23,9 @@ + + self.__backgr = "" + +- self.__key_color = "" +- self.__val_color = "" ++ self.__key_color = "" ++ self.__val_color = "" ++ self.__title_color = "" + + self.__current_size = 0 + self.__size_changed = 0 +@@ -40,6 +41,7 @@ + self._set_config_type("fonts", TYPE_STRING, "Sans 10") + self._set_config_type("key_color", TYPE_STRING, "white") + self._set_config_type("val_color", TYPE_STRING, "yellow") ++ self._set_config_type("title_color", TYPE_STRING, "#FFA500") + self._set_config_type("background", TYPE_STRING, "gfx/bg.png") + self._set_config_type("memory", TYPE_STRING, "RAM") + self._set_config_type("partition", TYPE_STRING, "/") +@@ -74,6 +76,8 @@ + _("The color of the key")) + configurator.add_color_selector(_("Value color:"), "val_color", + _("The color of the value")) ++ configurator.add_color_selector(_("Title color:"), "title_color", ++ _("The color of the titles")) + configurator.add_option(_("Partition:"), "partition", + "Specify partition type", part) + configurator.add_option(_("Memory:"), "memory", +@@ -103,8 +107,9 @@ + idle_d, idle_h, idle_m, idle_s = lib.convert.secs_to_dhms(idletime) + idle_p = (idletime / float(uptime)) * 100 + +- signal.set("value1[%(index)d]" % vars(), os + " @ " + name) +- signal.set("value2[%(index)d]" % vars(), kernel[:6]) ++ signal.set("value1[%(index)d]" % vars(), os + " @ " + \ ++ name.split(".")[0]) ++ signal.set("value2[%(index)d]" % vars(), kernel) + signal.set("value3[%(index)d]" % vars(), str(l1) + " " + str(l5) + \ + " " + str(l15)) + signal.set("value4[%(index)d]" % vars(), users) +@@ -128,7 +133,7 @@ + + cpu_type = lib.cpu.get_model() + cpu_speed = lib.cpu.get_speed() +- cpu_cache = lib.cpu.get_cache_size() ++ cpu_cache = "Unknown" + total, load = lib.cpu.get_load() + + signal.set("value1[%(index)d]" % vars(), cpu_type) +@@ -234,20 +239,22 @@ + + index = 0 + +- fonts = self._get_config("fonts") +- key_color = self._get_config("key_color") +- val_color = self._get_config("val_color") +- background = self._get_config("background") +- +- v1 = (self.__fonts, self.__key_color, self.__val_color, self.__backgr) +- v2 = (fonts, key_color, val_color, background) ++ fonts = self._get_config("fonts") ++ key_color = self._get_config("key_color") ++ val_color = self._get_config("val_color") ++ title_color = self._get_config("title_color") ++ background = self._get_config("background") ++ ++ v1 = (self.__fonts, self.__key_color, self.__val_color, ++ self.__title_color, self.__backgr) ++ v2 = (fonts, key_color, val_color, title_color, background) + + # only take action when some value has changed + if (v1 != v2 or self.__size_changed): + signal = self._new_output() + + signal.set("icon[%(index)d]" % vars(), "gfx/Info.png") +- signal.set("key1[%(index)d]" % vars(), _("")) ++ signal.set("key1[%(index)d]" % vars(), ("")) + signal.set("key2[%(index)d]" % vars(), _("Kernel:")) + signal.set("key3[%(index)d]" % vars(), _("Load:")) + signal.set("key4[%(index)d]" % vars(), _("Users:")) +@@ -255,25 +262,25 @@ + signal.set("key6[%(index)d]" % vars(), _("Idle time:")) + index += 1 + signal.set("icon[%(index)d]" % vars(), "gfx/cpu.png") +- signal.set("key1[%(index)d]" % vars(), _("")) ++ signal.set("key1[%(index)d]" % vars(), ("")) + signal.set("key2[%(index)d]" % vars(), _("Clock:")) + signal.set("key3[%(index)d]" % vars(), _("Cache:")) + signal.set("key4[%(index)d]" % vars(), _("Idle time:")) + index += 1 + signal.set("icon[%(index)d]" % vars(), "gfx/memory.png") +- signal.set("key1[%(index)d]" % vars(), _("")) ++ signal.set("key1[%(index)d]" % vars(), ("")) + signal.set("key2[%(index)d]" % vars(), _("Total:")) + signal.set("key3[%(index)d]" % vars(), _("Used:")) + signal.set("key4[%(index)d]" % vars(), _("Free:")) + index += 1 + signal.set("icon[%(index)d]" % vars(), "gfx/hdd.png") +- signal.set("key1[%(index)d]" % vars(), _("")) ++ signal.set("key1[%(index)d]" % vars(), ("")) + signal.set("key2[%(index)d]" % vars(), _("Total:")) + signal.set("key3[%(index)d]" % vars(), _("Used:")) + signal.set("key4[%(index)d]" % vars(), _("Free:")) + index += 1 + signal.set("icon[%(index)d]" % vars(), "gfx/network.png") +- signal.set("key1[%(index)d]" % vars(), _("")) ++ signal.set("key1[%(index)d]" % vars(), ("")) + signal.set("key2[%(index)d]" % vars(), _("IP addr:")) + signal.set("key3[%(index)d]" % vars(), _("Bytes in:")) + signal.set("key4[%(index)d]" % vars(), _("Bytes out:")) +@@ -292,12 +299,16 @@ + if (self.__val_color != val_color or self.__size_changed): + for i in xrange(self.__array_size): + signal.set("val_color[%(i)d]" %vars(), val_color) ++ if (self.__title_color != title_color or self.__size_changed): ++ for i in xrange(self.__array_size): ++ signal.set("title_color[%(i)d]" %vars(), title_color) + + self._send_output(signal) + + self.__fonts = fonts + self.__key_color = key_color + self.__val_color = val_color ++ self.__title_color = title_color + self.__backgr = background + self.__size_changed = 0 + diff --git a/sysutils/gdesklets-sysinfo/pkg-plist b/sysutils/gdesklets-sysinfo/pkg-plist index 7d80c1d23a93..46a1a922c130 100644 --- a/sysutils/gdesklets-sysinfo/pkg-plist +++ b/sysutils/gdesklets-sysinfo/pkg-plist @@ -1,22 +1,29 @@ +share/gnome/gdesklets/Displays/SysInfo/gfx/Info.png +share/gnome/gdesklets/Displays/SysInfo/gfx/Info_.png share/gnome/gdesklets/Displays/SysInfo/gfx/SysInfo.png +share/gnome/gdesklets/Displays/SysInfo/gfx/_hdd.png share/gnome/gdesklets/Displays/SysInfo/gfx/bg.png -share/gnome/gdesklets/Displays/SysInfo/gfx/border-left.png -share/gnome/gdesklets/Displays/SysInfo/gfx/border-right.png -share/gnome/gdesklets/Displays/SysInfo/gfx/border-top.png -share/gnome/gdesklets/Displays/SysInfo/gfx/border-topleft.png +share/gnome/gdesklets/Displays/SysInfo/gfx/bg_g.png +share/gnome/gdesklets/Displays/SysInfo/gfx/cpu.png +share/gnome/gdesklets/Displays/SysInfo/gfx/e.png +share/gnome/gdesklets/Displays/SysInfo/gfx/expander.png share/gnome/gdesklets/Displays/SysInfo/gfx/gauge-bg.png share/gnome/gdesklets/Displays/SysInfo/gfx/gauge.png -share/gnome/gdesklets/Displays/SysInfo/gfx/gauge_h.png +share/gnome/gdesklets/Displays/SysInfo/gfx/hdd.png +share/gnome/gdesklets/Displays/SysInfo/gfx/memory.png +share/gnome/gdesklets/Displays/SysInfo/gfx/memory_.png +share/gnome/gdesklets/Displays/SysInfo/gfx/n.png +share/gnome/gdesklets/Displays/SysInfo/gfx/ne.png +share/gnome/gdesklets/Displays/SysInfo/gfx/network.png +share/gnome/gdesklets/Displays/SysInfo/gfx/nw.png +share/gnome/gdesklets/Displays/SysInfo/gfx/s.png +share/gnome/gdesklets/Displays/SysInfo/gfx/se.png +share/gnome/gdesklets/Displays/SysInfo/gfx/sw.png +share/gnome/gdesklets/Displays/SysInfo/gfx/w.png share/gnome/gdesklets/Displays/SysInfo/sysinfo.display -share/gnome/gdesklets/Displays/SysInfo/AUTHORS -share/gnome/gdesklets/Displays/SysInfo/ChangeLog share/gnome/gdesklets/Sensors/SysInfo/__init__.py -share/gnome/gdesklets/Sensors/SysInfo/gfx/SysInfo.png -share/gnome/gdesklets/Sensors/SysInfo/gfx/boot.png -share/gnome/gdesklets/Sensors/SysInfo/gfx/cpu.png -share/gnome/gdesklets/Sensors/SysInfo/gfx/hdd.png -share/gnome/gdesklets/Sensors/SysInfo/gfx/memory.png -share/gnome/gdesklets/Sensors/SysInfo/gfx/network.png +share/gnome/gdesklets/Sensors/SysInfo/__init__.pyc +share/gnome/gdesklets/Sensors/SysInfo/__init__.pyo share/gnome/gdesklets/Sensors/SysInfo/locale/de/LC_MESSAGES/sysinfo-sensor.mo share/gnome/gdesklets/Sensors/SysInfo/locale/es/LC_MESSAGES/sysinfo-sensor.mo share/gnome/gdesklets/Sensors/SysInfo/locale/fr/LC_MESSAGES/sysinfo-sensor.mo @@ -25,7 +32,8 @@ share/gnome/gdesklets/Sensors/SysInfo/locale/sq/LC_MESSAGES/sysinfo-sensor.mo share/gnome/gdesklets/Sensors/SysInfo/locale/sr/LC_MESSAGES/sysinfo-sensor.mo share/gnome/gdesklets/Sensors/SysInfo/locale/sr@Latn/LC_MESSAGES/sysinfo-sensor.mo share/gnome/gdesklets/Sensors/SysInfo/locale/sv/LC_MESSAGES/sysinfo-sensor.mo -@dirrm share/gnome/gdesklets/Sensors/SysInfo/gfx +@dirrm share/gnome/gdesklets/Displays/SysInfo/gfx +@dirrm share/gnome/gdesklets/Displays/SysInfo @dirrm share/gnome/gdesklets/Sensors/SysInfo/locale/de/LC_MESSAGES @dirrm share/gnome/gdesklets/Sensors/SysInfo/locale/de @dirrm share/gnome/gdesklets/Sensors/SysInfo/locale/es/LC_MESSAGES @@ -44,5 +52,3 @@ share/gnome/gdesklets/Sensors/SysInfo/locale/sv/LC_MESSAGES/sysinfo-sensor.mo @dirrm share/gnome/gdesklets/Sensors/SysInfo/locale/sv @dirrm share/gnome/gdesklets/Sensors/SysInfo/locale @dirrm share/gnome/gdesklets/Sensors/SysInfo -@dirrm share/gnome/gdesklets/Displays/SysInfo/gfx -@dirrm share/gnome/gdesklets/Displays/SysInfo |