Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2003 21:46:04 -0500 (CDT)
From:      Jeremy Messenger <mezz7@cox.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gnome@FreeBSD.org
Subject:   ports/56390: New port: deskutils/gdesklets-starterbar A pure eye-candy panel for Gnome2
Message-ID:  <200309040246.h842k46f057337@ns1.mezzweb.com>
Resent-Message-ID: <200309040310.h843AFf5082991@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         56390
>Category:       ports
>Synopsis:       New port: deskutils/gdesklets-starterbar A pure eye-candy panel for Gnome2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 03 20:10:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mezz
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ns1.mezzweb.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Aug 13 22:39:47 CDT 2003 mezz@mezz.mezzweb.com:/usr/obj/usr/src/sys/BSDROCKS i386

>Description:
An icon bar for GNOME where you can put starters into. Yes, you can do the same
with the GNOME panel, but this one is pure eye candy!

>How-To-Repeat:
n/a

>Fix:
Note: This is only will work on least FreeBSD 5.0.

--- gdesklets-starterbar.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gdesklets-starterbar
#	gdesklets-starterbar/distinfo
#	gdesklets-starterbar/Makefile
#	gdesklets-starterbar/pkg-plist
#	gdesklets-starterbar/files
#	gdesklets-starterbar/files/patch-Install_StarterBar_Sensor.bin
#	gdesklets-starterbar/files/patch-StarterBar::Icon.py
#	gdesklets-starterbar/files/patch-StarterBar::__init__.py
#	gdesklets-starterbar/pkg-descr
#	gdesklets-starterbar/pkg-message
#
echo c - gdesklets-starterbar
mkdir -p gdesklets-starterbar > /dev/null 2>&1
echo x - gdesklets-starterbar/distinfo
sed 's/^X//' >gdesklets-starterbar/distinfo << 'END-of-gdesklets-starterbar/distinfo'
XMD5 (starterbar-desklet-0.12.tar.bz2) = c16f81895ed65bf43d2f07c9e97b358d
END-of-gdesklets-starterbar/distinfo
echo x - gdesklets-starterbar/Makefile
sed 's/^X//' >gdesklets-starterbar/Makefile << 'END-of-gdesklets-starterbar/Makefile'
X# New ports collection makefile for:	gdesklets-starterbar
X# Date created:				02 September 2003
X# Whom:					Mezz <mezz7@cox.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gdesklets-starterbar
XPORTVERSION=	0.12
XCATEGORIES=	deskutils gnome
XMASTER_SITES=	http://gdesklets.gnomedesktop.org/files/
XDISTNAME=	starterbar-desklet-${PORTVERSION}
X
XMAINTAINER=	mezz7@cox.net
XCOMMENT=	An icon bar for GNOME 2.x where you can put starters into
X
XBUILD_DEPENDS=	${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets
XRUN_DEPENDS=	${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets
X
XUSE_BZIP2=	yes
XUSE_X_PREFIX=	yes
XNO_BUILD=	yes
XNAME=		StarterBar
X
X.if ${OSVERSION} < 500000
XIGNORE=		"Requires FreeBSD 5.0 or later, because of uuidgen command first appeared in FreeBSD 5.0"
X.endif
X
Xpost-extract:
X	@${PATCH} ${WRKSRC}/Install_${NAME}_Sensor.bin < ${FILESDIR}/patch-Install_${NAME}_Sensor.bin
X	@${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC}
X
Xdo-patch:
X	@${PATCH} ${WRKSRC}/${NAME}/Icon.py < ${FILESDIR}/patch-${NAME}::Icon.py
X	@${PATCH} ${WRKSRC}/${NAME}/__init__.py < ${FILESDIR}/patch-${NAME}::__init__.py
X	@${FIND} ${WRKSRC} -name '*.orig' -delete
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}
X	@${CP} ${WRKSRC}/*.display ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/
X	@${CP} -Rp ${WRKSRC}/gfx ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/
X	@${CP} -Rp ${WRKSRC}/${NAME} ${PREFIX}/share/gnome/gdesklets/Sensors/
X	@${CP} ${WRKSRC}/README ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/
X	@${LN} -s ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/README \
X		${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/README
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-gdesklets-starterbar/Makefile
echo x - gdesklets-starterbar/pkg-plist
sed 's/^X//' >gdesklets-starterbar/pkg-plist << 'END-of-gdesklets-starterbar/pkg-plist'
Xshare/gnome/gdesklets/Displays/StarterBar/README
Xshare/gnome/gdesklets/Displays/StarterBar/gfx/bg-e.png
Xshare/gnome/gdesklets/Displays/StarterBar/gfx/bg-n.png
Xshare/gnome/gdesklets/Displays/StarterBar/gfx/bg-ne.png
Xshare/gnome/gdesklets/Displays/StarterBar/gfx/bg-nw.png
Xshare/gnome/gdesklets/Displays/StarterBar/gfx/bg-s.png
Xshare/gnome/gdesklets/Displays/StarterBar/gfx/bg-se.png
Xshare/gnome/gdesklets/Displays/StarterBar/gfx/bg-sw.png
Xshare/gnome/gdesklets/Displays/StarterBar/gfx/bg-w.png
Xshare/gnome/gdesklets/Displays/StarterBar/gfx/bg.png
Xshare/gnome/gdesklets/Displays/StarterBar/starterbar.display
Xshare/gnome/gdesklets/Sensors/StarterBar/.order
Xshare/gnome/gdesklets/Sensors/StarterBar/Animator.py
Xshare/gnome/gdesklets/Sensors/StarterBar/ChangeLog
Xshare/gnome/gdesklets/Sensors/StarterBar/DesktopReader.py
Xshare/gnome/gdesklets/Sensors/StarterBar/Icon.py
Xshare/gnome/gdesklets/Sensors/StarterBar/IconSet.py
Xshare/gnome/gdesklets/Sensors/StarterBar/README
Xshare/gnome/gdesklets/Sensors/StarterBar/__init__.py
Xshare/gnome/gdesklets/Sensors/StarterBar/home.desktop
X@dirrm share/gnome/gdesklets/Sensors/StarterBar
X@dirrm share/gnome/gdesklets/Displays/StarterBar/gfx
X@dirrm share/gnome/gdesklets/Displays/StarterBar
END-of-gdesklets-starterbar/pkg-plist
echo c - gdesklets-starterbar/files
mkdir -p gdesklets-starterbar/files > /dev/null 2>&1
echo x - gdesklets-starterbar/files/patch-Install_StarterBar_Sensor.bin
sed 's/^X//' >gdesklets-starterbar/files/patch-Install_StarterBar_Sensor.bin << 'END-of-gdesklets-starterbar/files/patch-Install_StarterBar_Sensor.bin'
X--- Install_StarterBar_Sensor.bin.orig	Tue Sep  2 15:06:02 2003
X+++ Install_StarterBar_Sensor.bin	Tue Sep  2 15:08:28 2003
X@@ -75,15 +75,9 @@
X     else:
X         cmd = "mkdir -p %(destination)s; cd %(destination)s; " \
X               "LANG=C tar -xzvf %(tmp)s 2>&1"
X-    fail, out = commands.getstatusoutput(cmd % vars())
X+    commands.getstatusoutput(cmd % vars())
X     os.unlink(tmp)
X     
X-    if (fail):
X-        if (no_message): print ERROR_TAR + out
X-        else: message(ERROR_TAR + out, "error")
X-        sys.exit(1)
X-
X-    print out
X     if (not list_only):
X         if (no_message): print SUCCESS
X         else: message(SUCCESS, "info")
END-of-gdesklets-starterbar/files/patch-Install_StarterBar_Sensor.bin
echo x - gdesklets-starterbar/files/patch-StarterBar::Icon.py
sed 's/^X//' >gdesklets-starterbar/files/patch-StarterBar::Icon.py << 'END-of-gdesklets-starterbar/files/patch-StarterBar::Icon.py'
X--- StarterBar/Icon.py.orig	Tue Sep  2 23:57:32 2003
X+++ StarterBar/Icon.py	Wed Sep  3 00:15:11 2003
X@@ -10,7 +10,7 @@
X     __GNOME_PIXMAP_DIR = \
X       os.path.join(
X         commands.getoutput("dirname `which gnome-desktop-item-edit`"),
X-        "..", "share", "pixmaps")
X+        "..", "share", "gnome", "pixmaps")
X 
X     # the unknown icon
X     __UNKNOWN_ICON = "gnome-unknown.png"
X@@ -55,8 +55,10 @@
X                 return os.path.join(self.__GNOME_PIXMAP_DIR, f)
X         #end for
X 
X-        return os.path.join(self.__GNOME_PIXMAP_DIR, self.__UNKNOWN_ICON)
X-
X+        return os.path.join(
X+                 commands.getoutput("dirname `which gnome-desktop-item-edit`"),
X+                 "..", "share", "icons", "gnome", "48x48", "apps",
X+                 self.__UNKNOWN_ICON)
X 
X 
X     def get_pixmap(self): return self.__pixmap
END-of-gdesklets-starterbar/files/patch-StarterBar::Icon.py
echo x - gdesklets-starterbar/files/patch-StarterBar::__init__.py
sed 's/^X//' >gdesklets-starterbar/files/patch-StarterBar::__init__.py << 'END-of-gdesklets-starterbar/files/patch-StarterBar::__init__.py'
X--- StarterBar/__init__.py.orig	Wed Sep  3 00:18:24 2003
X+++ StarterBar/__init__.py	Wed Sep  3 00:18:36 2003
X@@ -219,7 +219,7 @@
X         elif (action == "launch"):
X             index = int(path[-1])
X             cmd = self.__icon_set.get_icon(index).get_command()
X-            os.system("cd ~ && " + cmd + " & disown")
X+            os.system("cd ~ && " + cmd + " &")
X             if (self._get_config("animation")):
X                 self.__animator.jump(index)
X 
END-of-gdesklets-starterbar/files/patch-StarterBar::__init__.py
echo x - gdesklets-starterbar/pkg-descr
sed 's/^X//' >gdesklets-starterbar/pkg-descr << 'END-of-gdesklets-starterbar/pkg-descr'
XAn icon bar for GNOME where you can put starters into. Yes, you can do the same
Xwith the GNOME panel, but this one is pure eye candy!
X
XWWW: http://gdesklets.gnomedesktop.org
END-of-gdesklets-starterbar/pkg-descr
echo x - gdesklets-starterbar/pkg-message
sed 's/^X//' >gdesklets-starterbar/pkg-message << 'END-of-gdesklets-starterbar/pkg-message'
X##
XTo view the README, do the either command following:
X
X	cat ${PREFIX}/share/gnome/gdesklets/Displays/${name}/README
X	cat ${PREFIX}/share/gnome/gdesklets/Sensors/${name}/README
X
XTo view the applets, do the command following:
X
X	ls ${PREFIX}/share/gnome/gdesklets/Displays
X
XTo use those applets, do the command following:
X
X	gdesklets ${PREFIX}/share/gnome/gdesklets/Displays/${name}/${name}.display
X
XReplace the ${name} to the correct name to what you want to use applets.
X
XNOTE: Be sure to login as your user when you use gdesklets command, because it
X      will storage in the ~/.gdesklets/. In future, I hope the author of
X      desklets make the change for easier to use and easier to add applets.
X##
END-of-gdesklets-starterbar/pkg-message
exit
--- gdesklets-starterbar.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309040246.h842k46f057337>