diff --git a/deskutils/Makefile b/deskutils/Makefile index 429e733d51d8..a123ab2b8fa2 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -15,6 +15,7 @@ SUBDIR += gdeskcal-skins SUBDIR += gdesklets SUBDIR += gdesklets-recentlyused + SUBDIR += gdesklets-starterbar SUBDIR += gemcal SUBDIR += genius SUBDIR += glabels diff --git a/deskutils/gdesklets-starterbar/Makefile b/deskutils/gdesklets-starterbar/Makefile new file mode 100644 index 000000000000..04bfab66d6ea --- /dev/null +++ b/deskutils/gdesklets-starterbar/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: gdesklets-starterbar +# Date created: 02 September 2003 +# Whom: Mezz +# +# $FreeBSD$ +# + +PORTNAME= gdesklets-starterbar +PORTVERSION= 0.20 +CATEGORIES= deskutils gnome +MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ +DISTNAME= starterbar-desklet-${PORTVERSION} + +MAINTAINER= mezz7@cox.net +COMMENT= An icon bar for GNOME 2.x where you can put starters into + +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets + +USE_BZIP2= yes +USE_X_PREFIX= yes +NAME= StarterBar + +.include + +.if ${OSVERSION} < 500000 +IGNORE= "Requires FreeBSD 5.0 or later, because of uuidgen command first appeared in FreeBSD 5.0" +.endif + +do-build: + @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${PATCH} ${WRKSRC}/${NAME}/Icon.py < ${FILESDIR}/${NAME}::Icon.py + @${PATCH} ${WRKSRC}/${NAME}/__init__.py < ${FILESDIR}/${NAME}::__init__.py + @${FIND} ${WRKSRC} -name '*.orig' -delete + +do-install: + @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Displays/${NAME} + @${CP} ${WRKSRC}/*.display ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/ + @${CP} -Rp ${WRKSRC}/gfx ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/ + @${CP} -Rp ${WRKSRC}/${NAME} ${PREFIX}/share/gnome/gdesklets/Sensors/ + @${CP} ${WRKSRC}/README ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/ + @${LN} -s ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/README \ + ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/README + +post-install: + @${CAT} ${PKGMESSAGE} + +.include diff --git a/deskutils/gdesklets-starterbar/distinfo b/deskutils/gdesklets-starterbar/distinfo new file mode 100644 index 000000000000..c0a5f8f51d4a --- /dev/null +++ b/deskutils/gdesklets-starterbar/distinfo @@ -0,0 +1 @@ +MD5 (starterbar-desklet-0.20.tar.bz2) = 5260e70daabcb97ca7c65ec2455959ca diff --git a/deskutils/gdesklets-starterbar/files/StarterBar::Icon.py b/deskutils/gdesklets-starterbar/files/StarterBar::Icon.py new file mode 100644 index 000000000000..fbe820f00c47 --- /dev/null +++ b/deskutils/gdesklets-starterbar/files/StarterBar::Icon.py @@ -0,0 +1,23 @@ +--- StarterBar/Icon.py.orig Wed Sep 24 14:26:55 2003 ++++ StarterBar/Icon.py Wed Sep 24 14:28:22 2003 +@@ -11,7 +11,7 @@ + __GNOME_PIXMAP_DIR = \ + os.path.join( + commands.getoutput("dirname `which gnome-desktop-item-edit`"), +- "..", "share", "pixmaps") ++ "..", "share", "gnome", "pixmaps") + + # the unknown icon + __UNKNOWN_ICON = "gnome-unknown.png" +@@ -61,7 +61,10 @@ + return os.path.join(self.__GNOME_PIXMAP_DIR, f) + #end for + +- return os.path.join(self.__GNOME_PIXMAP_DIR, self.__UNKNOWN_ICON) ++ return os.path.join( ++ commands.getoutput("dirname `which gnome-desktop-item-edit`"), ++ "..", "share", "icons", "gnome", "48x48", "apps", ++ self.__UNKNOWN_ICON) + + + diff --git a/deskutils/gdesklets-starterbar/files/StarterBar::__init__.py b/deskutils/gdesklets-starterbar/files/StarterBar::__init__.py new file mode 100644 index 000000000000..26a938eb6348 --- /dev/null +++ b/deskutils/gdesklets-starterbar/files/StarterBar::__init__.py @@ -0,0 +1,11 @@ +--- StarterBar/__init__.py.orig Wed Sep 24 14:31:33 2003 ++++ StarterBar/__init__.py Wed Sep 24 14:32:22 2003 +@@ -336,7 +336,7 @@ + index = self.__current_index + if (self.__dragged_icon == -1 or self.__dragged_icon == index): + cmd = self.__icon_set.get_icon(index).get_command() +- os.system("cd ~ && " + cmd + " & disown") ++ os.system("cd ~ && " + cmd + " &") + self.__animator.unhilight() + if (self._get_config("animation")): + self.__animator.jump(index) diff --git a/deskutils/gdesklets-starterbar/files/patch-Install_StarterBar_Sensor.bin b/deskutils/gdesklets-starterbar/files/patch-Install_StarterBar_Sensor.bin new file mode 100644 index 000000000000..3faccc9833a0 --- /dev/null +++ b/deskutils/gdesklets-starterbar/files/patch-Install_StarterBar_Sensor.bin @@ -0,0 +1,19 @@ +--- Install_StarterBar_Sensor.bin.orig Wed Sep 24 14:24:12 2003 ++++ Install_StarterBar_Sensor.bin Wed Sep 24 14:24:49 2003 +@@ -75,15 +75,9 @@ + else: + cmd = "mkdir -p %(destination)s; cd %(destination)s; " \ + "LANG=C tar -xzf %(tmp)s 2>&1" +- fail, out = commands.getstatusoutput(cmd % vars()) ++ commands.getstatusoutput(cmd % vars()) + os.unlink(tmp) + +- if (fail): +- if (no_message): print ERROR_TAR + out +- else: message(ERROR_TAR + out, "error") +- sys.exit(1) +- +- print out + if (not list_only): + if (no_message): print SUCCESS + else: message(SUCCESS, "info") diff --git a/deskutils/gdesklets-starterbar/pkg-descr b/deskutils/gdesklets-starterbar/pkg-descr new file mode 100644 index 000000000000..e97f62ac6e21 --- /dev/null +++ b/deskutils/gdesklets-starterbar/pkg-descr @@ -0,0 +1,4 @@ +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! + +WWW: http://gdesklets.gnomedesktop.org diff --git a/deskutils/gdesklets-starterbar/pkg-message b/deskutils/gdesklets-starterbar/pkg-message new file mode 100644 index 000000000000..a36c141299e1 --- /dev/null +++ b/deskutils/gdesklets-starterbar/pkg-message @@ -0,0 +1,19 @@ +## +To view the README: + + cat ${PREFIX}/share/gnome/gdesklets/Displays/${name}/README + cat ${PREFIX}/share/gnome/gdesklets/Sensors/${name}/README + +To view the installed applets: + + ls ${PREFIX}/share/gnome/gdesklets/Displays + +To use those applets: + + gdesklets ${PREFIX}/share/gnome/gdesklets/Displays/${name}/${name}.display + +Replace the ${name} with the correct name to what you want to use applets. + +NOTE: Be sure to login as your user when you use the gdesklets command, + as the configuration will be stored in the ~/.gdesklets/ directory. +## diff --git a/deskutils/gdesklets-starterbar/pkg-plist b/deskutils/gdesklets-starterbar/pkg-plist new file mode 100644 index 000000000000..7b5ee82efed0 --- /dev/null +++ b/deskutils/gdesklets-starterbar/pkg-plist @@ -0,0 +1,48 @@ +share/gnome/gdesklets/Displays/StarterBar/README +share/gnome/gdesklets/Displays/StarterBar/gfx/bg-e.png +share/gnome/gdesklets/Displays/StarterBar/gfx/bg-n.png +share/gnome/gdesklets/Displays/StarterBar/gfx/bg-ne.png +share/gnome/gdesklets/Displays/StarterBar/gfx/bg-nw.png +share/gnome/gdesklets/Displays/StarterBar/gfx/bg-s.png +share/gnome/gdesklets/Displays/StarterBar/gfx/bg-se.png +share/gnome/gdesklets/Displays/StarterBar/gfx/bg-sw.png +share/gnome/gdesklets/Displays/StarterBar/gfx/bg-w.png +share/gnome/gdesklets/Displays/StarterBar/gfx/bg.png +share/gnome/gdesklets/Displays/StarterBar/starterbar.display +share/gnome/gdesklets/Sensors/StarterBar/.#ChangeLog.1.2 +share/gnome/gdesklets/Sensors/StarterBar/.#__init__.py.1.3 +share/gnome/gdesklets/Sensors/StarterBar/.order +share/gnome/gdesklets/Sensors/StarterBar/Animator.py +share/gnome/gdesklets/Sensors/StarterBar/ChangeLog +share/gnome/gdesklets/Sensors/StarterBar/DesktopReader.py +share/gnome/gdesklets/Sensors/StarterBar/Icon.py +share/gnome/gdesklets/Sensors/StarterBar/IconSet.py +share/gnome/gdesklets/Sensors/StarterBar/IconTheme.py +share/gnome/gdesklets/Sensors/StarterBar/README +share/gnome/gdesklets/Sensors/StarterBar/__init__.py +share/gnome/gdesklets/Sensors/StarterBar/home.desktop +share/gnome/gdesklets/Sensors/StarterBar/locale/de/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/Sensors/StarterBar/locale/fr/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/Sensors/StarterBar/locale/pt/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/Sensors/StarterBar/locale/sq/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/Sensors/StarterBar/locale/sr/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/Sensors/StarterBar/locale/sr@Latn/LC_MESSAGES/gdesklets.mo +share/gnome/gdesklets/Sensors/StarterBar/locale/sv/LC_MESSAGES/gdesklets.mo +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/sv/LC_MESSAGES +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/sv +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/sr@Latn/LC_MESSAGES +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/sr@Latn +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/sr/LC_MESSAGES +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/sr +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/sq/LC_MESSAGES +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/sq +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/pt/LC_MESSAGES +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/pt +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/fr/LC_MESSAGES +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/fr +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/de/LC_MESSAGES +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale/de +@dirrm share/gnome/gdesklets/Sensors/StarterBar/locale +@dirrm share/gnome/gdesklets/Sensors/StarterBar +@dirrm share/gnome/gdesklets/Displays/StarterBar/gfx +@dirrm share/gnome/gdesklets/Displays/StarterBar