Date: Sat, 13 Sep 2003 02:46:41 -0500 From: Jeremy Messenger <mezz7@cox.net> To: freebsd-gnome@freebsd.org Cc: freebsd-ports@freebsd.org Subject: Need the help on hack gDesklets to kill the 'Linuxish' in Python. Message-ID: <oprvfg73we8ckrg5@smtp.central.cox.net>
next in thread | raw e-mail | index | archive | help
------------vN1UymLUinC510M1sQjPct Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: 8bit The new version of gDesklets just released yesterday and it has the new directory called libgdesklets. All of them will not work on FreeBSD, because it is too 'Linuxish' by read the /proc/* stuff. They are written in Python and I don't know Python that much and much, but I am trying to learn it. The gDesklets developer said that they will accept the patch(es)[1] as long it will work on Linux too, so you can send me the patch(es) too and I will add it in the gDesklets port until one of your patch(es) make it in gDesklets. It doesn't matter if you only can get it works on FreeBSD but not on Linux, then just send it to me. Here is an attach of update gDesklets from 0.20-1 -> 0.21.2.. To patch: # cd /usr/ports/deskutils # patch -p0 < /path/to/gdesklets.diff # find /usr/ports/deskutils/gdesklets -name '*.orig' -delete [1] Send the patch(es) to gDesklets at http://bugzilla.gnome.org .. Thanks! Cheers, Mezz -- bsdforums.org 's moderator, mezz. ------------vN1UymLUinC510M1sQjPct Content-Disposition: attachment; filename=gdesklets.diff Content-Type: text/plain; name=gdesklets.diff Content-Transfer-Encoding: 8bit diff -urN gdesklets.orig/Makefile gdesklets/Makefile --- gdesklets.orig/Makefile Tue Sep 2 23:32:05 2003 +++ gdesklets/Makefile Sat Sep 13 00:42:48 2003 @@ -6,8 +6,7 @@ # PORTNAME= gdesklets -PORTVERSION= 0.20 -PORTREVISION= 1 +PORTVERSION= 0.21.2 CATEGORIES= deskutils gnome MASTER_SITES= http://www.pycage.de/download/${PORTNAME}/ DISTNAME= gDesklets-${PORTVERSION} @@ -27,8 +26,9 @@ USE_X_PREFIX= yes USE_GNOME= gnomehack gnomeprefix gnometarget +MAN1= gdesklets.1 + post-install: - @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Sensors @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Displays @${CAT} ${PKGMESSAGE} diff -urN gdesklets.orig/distinfo gdesklets/distinfo --- gdesklets.orig/distinfo Tue Sep 2 01:24:00 2003 +++ gdesklets/distinfo Sat Sep 13 00:43:15 2003 @@ -1 +1 @@ -MD5 (gDesklets-0.20.tar.bz2) = cd43447ef66744665d8bdf11f181d3d0 +MD5 (gDesklets-0.21.2.tar.bz2) = 1c7509b454e41d443c2bda43c4472a05 diff -urN gdesklets.orig/files/patch-data::Makefile.in gdesklets/files/patch-data::Makefile.in --- gdesklets.orig/files/patch-data::Makefile.in Wed Dec 31 18:00:00 1969 +++ gdesklets/files/patch-data::Makefile.in Sat Sep 13 01:14:01 2003 @@ -0,0 +1,11 @@ +--- data/Makefile.in.orig Sat Sep 13 01:12:47 2003 ++++ data/Makefile.in Sat Sep 13 01:13:19 2003 +@@ -190,7 +190,7 @@ + @USERINST_TRUE@mimedir = ~/.gnome/mime-info + mime_in_files = gdesklets.keys.in + mime_DATA = $(mime_in_files:.keys.in=.keys) gdesklets.mime +-@USERINST_FALSE@mimeicondir = $(datadir)/icons/gnome/48x48/mimetypes ++@USERINST_FALSE@mimeicondir = $(prefix)/share/icons/gnome/48x48/mimetypes + + @USERINST_TRUE@mimeicondir = ~/.icons/gnome/48x48/mimetypes + mimeicon_DATA = x-gdesklets-display.png diff -urN gdesklets.orig/pkg-install gdesklets/pkg-install --- gdesklets.orig/pkg-install Tue Sep 2 22:02:25 2003 +++ gdesklets/pkg-install Sat Sep 13 00:42:57 2003 @@ -1,6 +1,5 @@ #!/bin/sh if [ "$2" = "POST-INSTALL" ]; then - mkdir -p ${PKG_PREFIX}/share/gnome/gdesklets/Sensors mkdir -p ${PKG_PREFIX}/share/gnome/gdesklets/Displays fi diff -urN gdesklets.orig/pkg-plist gdesklets/pkg-plist --- gdesklets.orig/pkg-plist Tue Sep 2 23:32:06 2003 +++ gdesklets/pkg-plist Sat Sep 13 01:19:37 2003 @@ -2,6 +2,8 @@ libdata/pkgconfig/gdesklets-core.pc share/gnome/application-registry/gdesklets.applications share/gnome/applications/gdesklets.desktop +share/gnome/gdesklets/Sensors/External/__init__.py +share/gnome/gdesklets/Sensors/FontSelector/__init__.py share/gnome/gdesklets/config/ConfigManager.py share/gnome/gdesklets/config/GConfBackend.py share/gnome/gdesklets/config/__init__.py @@ -18,10 +20,13 @@ share/gnome/gdesklets/display/TargetArray.py share/gnome/gdesklets/display/TargetBonoboControl.py share/gnome/gdesklets/display/TargetCanvas.py +share/gnome/gdesklets/display/TargetFrame.py share/gnome/gdesklets/display/TargetGauge.py share/gnome/gdesklets/display/TargetGroup.py +share/gnome/gdesklets/display/TargetHTML.py share/gnome/gdesklets/display/TargetImage.py share/gnome/gdesklets/display/TargetLabel.py +share/gnome/gdesklets/display/TargetPlotter.py share/gnome/gdesklets/display/TargetPopup.py share/gnome/gdesklets/display/__init__.py share/gnome/gdesklets/display/layouters.py @@ -30,6 +35,14 @@ share/gnome/gdesklets/factory/SensorFactory.py share/gnome/gdesklets/factory/__init__.py share/gnome/gdesklets/gdesklets +share/gnome/gdesklets/libdesklets/CPU.py +share/gnome/gdesklets/libdesklets/Convert.py +share/gnome/gdesklets/libdesklets/Disk.py +share/gnome/gdesklets/libdesklets/Memory.py +share/gnome/gdesklets/libdesklets/Network.py +share/gnome/gdesklets/libdesklets/Sys.py +share/gnome/gdesklets/libdesklets/__init__.py +share/gnome/gdesklets/libdesklets/polling.py share/gnome/gdesklets/locale/ar/LC_MESSAGES/gdesklets.mo share/gnome/gdesklets/locale/de/LC_MESSAGES/gdesklets.mo share/gnome/gdesklets/locale/es/LC_MESSAGES/gdesklets.mo @@ -37,6 +50,11 @@ share/gnome/gdesklets/locale/he/LC_MESSAGES/gdesklets.mo share/gnome/gdesklets/locale/nl/LC_MESSAGES/gdesklets.mo share/gnome/gdesklets/locale/pl/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/locale/pt/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/locale/sq/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/locale/sr/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/locale/sr@Latn/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/locale/sv/LC_MESSAGES/gdesklets.mo share/gnome/gdesklets/main/Starter.py share/gnome/gdesklets/main/__init__.py share/gnome/gdesklets/main/add_display.py @@ -51,18 +69,29 @@ share/gnome/gdesklets/utils/TargetSettings.py share/gnome/gdesklets/utils/TypeConverter.py share/gnome/gdesklets/utils/__init__.py +share/gnome/gdesklets/utils/_ewmhmodule.so share/gnome/gdesklets/utils/datatypes.py share/gnome/gdesklets/utils/dialog.py share/gnome/gdesklets/utils/i18n.py share/gnome/gdesklets/utils/pwstore.py share/gnome/gdesklets/utils/singleton.py -share/gnome/icons/gnome/48x48/mimetypes/x-gdesklets-display.png share/gnome/mime-info/gdesklets.keys share/gnome/mime-info/gdesklets.mime share/gnome/pixmaps/gdesklets.png +share/icons/gnome/48x48/mimetypes/x-gdesklets-display.png @dirrm share/gnome/gdesklets/utils @dirrm share/gnome/gdesklets/sensor @dirrm share/gnome/gdesklets/main +@dirrm share/gnome/gdesklets/locale/sv/LC_MESSAGES +@dirrm share/gnome/gdesklets/locale/sv +@dirrm share/gnome/gdesklets/locale/sr@Latn/LC_MESSAGES +@dirrm share/gnome/gdesklets/locale/sr@Latn +@dirrm share/gnome/gdesklets/locale/sr/LC_MESSAGES +@dirrm share/gnome/gdesklets/locale/sr +@dirrm share/gnome/gdesklets/locale/sq/LC_MESSAGES +@dirrm share/gnome/gdesklets/locale/sq +@dirrm share/gnome/gdesklets/locale/pt/LC_MESSAGES +@dirrm share/gnome/gdesklets/locale/pt @dirrm share/gnome/gdesklets/locale/pl/LC_MESSAGES @dirrm share/gnome/gdesklets/locale/pl @dirrm share/gnome/gdesklets/locale/nl/LC_MESSAGES @@ -78,11 +107,14 @@ @dirrm share/gnome/gdesklets/locale/ar/LC_MESSAGES @dirrm share/gnome/gdesklets/locale/ar @dirrm share/gnome/gdesklets/locale +@dirrm share/gnome/gdesklets/libdesklets @dirrm share/gnome/gdesklets/factory @dirrm share/gnome/gdesklets/display @dirrm share/gnome/gdesklets/desktop @dirrm share/gnome/gdesklets/data @dirrm share/gnome/gdesklets/config +@dirrm share/gnome/gdesklets/Sensors/FontSelector +@dirrm share/gnome/gdesklets/Sensors/External @dirrm share/gnome/gdesklets/Sensors @dirrm share/gnome/gdesklets/Displays @dirrm share/gnome/gdesklets ------------vN1UymLUinC510M1sQjPct--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?oprvfg73we8ckrg5>