diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-08-07 12:45:26 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-08-07 12:45:26 +0800 |
commit | 466fecc955c4edadfec86bb995303a05e20a36c0 (patch) | |
tree | ba5799f0b49cd481a7d0b834a53da412ed91ba59 /x11-clocks/gdesklets-clock | |
parent | ae02cb4fcd9a5e211cbf998df8eec4521072dbe9 (diff) | |
download | marcuscom-ports-466fecc955c4edadfec86bb995303a05e20a36c0.tar marcuscom-ports-466fecc955c4edadfec86bb995303a05e20a36c0.tar.gz marcuscom-ports-466fecc955c4edadfec86bb995303a05e20a36c0.tar.bz2 marcuscom-ports-466fecc955c4edadfec86bb995303a05e20a36c0.tar.lz marcuscom-ports-466fecc955c4edadfec86bb995303a05e20a36c0.tar.xz marcuscom-ports-466fecc955c4edadfec86bb995303a05e20a36c0.tar.zst marcuscom-ports-466fecc955c4edadfec86bb995303a05e20a36c0.zip |
share/gnome/ -> share/.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9365 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-clocks/gdesklets-clock')
-rw-r--r-- | x11-clocks/gdesklets-clock/Makefile | 53 | ||||
-rw-r--r-- | x11-clocks/gdesklets-clock/distinfo | 3 | ||||
-rw-r--r-- | x11-clocks/gdesklets-clock/files/Clock::__init__.py | 16 | ||||
-rw-r--r-- | x11-clocks/gdesklets-clock/files/patch-Install_Clock_Sensor.bin | 19 | ||||
-rw-r--r-- | x11-clocks/gdesklets-clock/pkg-descr | 3 | ||||
-rw-r--r-- | x11-clocks/gdesklets-clock/pkg-message | 19 | ||||
-rw-r--r-- | x11-clocks/gdesklets-clock/pkg-plist | 41 |
7 files changed, 154 insertions, 0 deletions
diff --git a/x11-clocks/gdesklets-clock/Makefile b/x11-clocks/gdesklets-clock/Makefile new file mode 100644 index 000000000..8761fdacc --- /dev/null +++ b/x11-clocks/gdesklets-clock/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: gdesklets-clock +# Date created: 02 September 2003 +# Whom: Mezz <mezz7@cox.net> +# +# $FreeBSD$ +# + +PORTNAME= clock +PORTVERSION= 0.32 +PORTREVISION= 8 +CATEGORIES= x11-clocks gnome +MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ +PKGNAMEPREFIX= gdesklets- +DISTNAME= clock-desklet-${PORTVERSION} + +MAINTAINER= ports@FreeBSD.org +COMMENT= Various clock displays for Gnome 2.x + +RUN_DEPENDS= gdesklets:${PORTSDIR}/deskutils/gdesklets + +USE_BZIP2= yes +USE_PYTHON= yes +USE_XLIB= yes + +NAME= Clock +DATADIR= ${PREFIX}/share +LANG= de fr pt sq sr sr@Latn sv + +do-build: + @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${FIND} ${WRKSRC} -name '*.orig' -delete + @${PATCH} ${WRKSRC}/Clock/__init__.py < ${FILESDIR}/Clock::__init__.py + +do-install: + @${MKDIR} ${DATADIR}/gdesklets/Displays/${NAME}/gfx +.for ii in ${LANG} + @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME}/locale/${ii}/LC_MESSAGES + @${INSTALL_DATA} ${WRKSRC}/${NAME}/locale/${ii}/LC_MESSAGES/*.mo \ + ${DATADIR}/gdesklets/Sensors/${NAME}/locale/${ii}/LC_MESSAGES/ +.endfor + @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py ${DATADIR}/gdesklets/Sensors/${NAME}/ + @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.dat ${DATADIR}/gdesklets/Sensors/${NAME}/ + @${INSTALL_DATA} ${WRKSRC}/*.display ${DATADIR}/gdesklets/Displays/${NAME}/ + @${INSTALL_DATA} ${WRKSRC}/gfx/*.png ${DATADIR}/gdesklets/Displays/${NAME}/gfx/ + @${INSTALL_DATA} ${WRKSRC}/gfx/*.xcf ${DATADIR}/gdesklets/Displays/${NAME}/gfx/ + @${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}/gdesklets/Displays/${NAME}/ + @${LN} -s ${DATADIR}/gdesklets/Displays/${NAME}/README \ + ${DATADIR}/gdesklets/Sensors/${NAME}/README + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/x11-clocks/gdesklets-clock/distinfo b/x11-clocks/gdesklets-clock/distinfo new file mode 100644 index 000000000..c01a4dba3 --- /dev/null +++ b/x11-clocks/gdesklets-clock/distinfo @@ -0,0 +1,3 @@ +MD5 (clock-desklet-0.32.tar.bz2) = d9b8a292e6e439ab62765143b6678df5 +SHA256 (clock-desklet-0.32.tar.bz2) = 83d50abf487f2e0f6d9e5a53e82d6f113bca33843dcb1cd46a7f38a23745635d +SIZE (clock-desklet-0.32.tar.bz2) = 159655 diff --git a/x11-clocks/gdesklets-clock/files/Clock::__init__.py b/x11-clocks/gdesklets-clock/files/Clock::__init__.py new file mode 100644 index 000000000..f0f063ed9 --- /dev/null +++ b/x11-clocks/gdesklets-clock/files/Clock::__init__.py @@ -0,0 +1,16 @@ +--- __init__.py.bak Tue Mar 30 18:08:39 2004 ++++ __init__.py Tue Mar 30 18:11:36 2004 +@@ -149,8 +149,11 @@ + timezone = self._get_config("timezone") + if (timezone != self.__timezone): + self.__timezone = timezone +- offset = commands.getoutput("TZ=\"%(timezone)s\" date +%%z" +- % vars()) ++ if timezone == "localtime": ++ offset = commands.getoutput("date +%z") ++ else: ++ offset = commands.getoutput("TZ=\"%(timezone)s\" date +%%z" ++ % vars()) + sign = (offset[0] == "+") and 1 or -1 + hours = int(offset[1:3]) + mins = int(offset[3:5]) diff --git a/x11-clocks/gdesklets-clock/files/patch-Install_Clock_Sensor.bin b/x11-clocks/gdesklets-clock/files/patch-Install_Clock_Sensor.bin new file mode 100644 index 000000000..0de363c68 --- /dev/null +++ b/x11-clocks/gdesklets-clock/files/patch-Install_Clock_Sensor.bin @@ -0,0 +1,19 @@ +--- Install_Clock_Sensor.bin.orig Wed Sep 3 12:51:06 2003 ++++ Install_Clock_Sensor.bin Wed Sep 3 12:52:23 2003 +@@ -75,15 +75,9 @@ + else: + cmd = "mkdir -p %(destination)s; cd %(destination)s; " \ + "LANG=C tar -xzvf %(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/x11-clocks/gdesklets-clock/pkg-descr b/x11-clocks/gdesklets-clock/pkg-descr new file mode 100644 index 000000000..539db5456 --- /dev/null +++ b/x11-clocks/gdesklets-clock/pkg-descr @@ -0,0 +1,3 @@ +The Clock sensor with various clock displays. + +WWW: http://gdesklets.gnomedesktop.org/ diff --git a/x11-clocks/gdesklets-clock/pkg-message b/x11-clocks/gdesklets-clock/pkg-message new file mode 100644 index 000000000..c9b65b336 --- /dev/null +++ b/x11-clocks/gdesklets-clock/pkg-message @@ -0,0 +1,19 @@ +## +To view the README: + + cat ${PREFIX}/share/gdesklets/Displays/${name}/README + cat ${PREFIX}/share/gdesklets/Sensors/${name}/README + +To view all installed applets: + + ls ${PREFIX}/share/gdesklets/Displays + +To use those applets: + + gdesklets open ${PREFIX}/share/gdesklets/Displays/${name}/${name}.display + +Replace ${name} with the correct name of the applets you want to use. + +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/x11-clocks/gdesklets-clock/pkg-plist b/x11-clocks/gdesklets-clock/pkg-plist new file mode 100644 index 000000000..7b4bf935c --- /dev/null +++ b/x11-clocks/gdesklets-clock/pkg-plist @@ -0,0 +1,41 @@ +share/gdesklets/Displays/Clock/README +share/gdesklets/Displays/Clock/gfx/clock.png +share/gdesklets/Displays/Clock/gfx/gnomeclock.png +share/gdesklets/Displays/Clock/gfx/gnomeclock.xcf +share/gdesklets/Displays/Clock/gfx/osXclock.png +share/gdesklets/Displays/Clock/gfx/pocketwatch.png +share/gdesklets/Displays/Clock/gfx/pocketwatch.xcf +share/gdesklets/Displays/Clock/gfx/rafclock.png +share/gdesklets/Displays/Clock/gnomeclock.display +share/gdesklets/Displays/Clock/osXclock.display +share/gdesklets/Displays/Clock/plainclock.display +share/gdesklets/Displays/Clock/pocket-watch.display +share/gdesklets/Displays/Clock/rafclock.display +share/gdesklets/Sensors/Clock/README +share/gdesklets/Sensors/Clock/__init__.py +share/gdesklets/Sensors/Clock/locale/de/LC_MESSAGES/gdesklets.mo +share/gdesklets/Sensors/Clock/locale/fr/LC_MESSAGES/gdesklets.mo +share/gdesklets/Sensors/Clock/locale/pt/LC_MESSAGES/gdesklets.mo +share/gdesklets/Sensors/Clock/locale/sq/LC_MESSAGES/gdesklets.mo +share/gdesklets/Sensors/Clock/locale/sr/LC_MESSAGES/gdesklets.mo +share/gdesklets/Sensors/Clock/locale/sr@Latn/LC_MESSAGES/gdesklets.mo +share/gdesklets/Sensors/Clock/locale/sv/LC_MESSAGES/gdesklets.mo +share/gdesklets/Sensors/Clock/timezones.dat +@dirrm share/gdesklets/Sensors/Clock/locale/sv/LC_MESSAGES +@dirrm share/gdesklets/Sensors/Clock/locale/sv +@dirrm share/gdesklets/Sensors/Clock/locale/sr@Latn/LC_MESSAGES +@dirrm share/gdesklets/Sensors/Clock/locale/sr@Latn +@dirrm share/gdesklets/Sensors/Clock/locale/sr/LC_MESSAGES +@dirrm share/gdesklets/Sensors/Clock/locale/sr +@dirrm share/gdesklets/Sensors/Clock/locale/sq/LC_MESSAGES +@dirrm share/gdesklets/Sensors/Clock/locale/sq +@dirrm share/gdesklets/Sensors/Clock/locale/pt/LC_MESSAGES +@dirrm share/gdesklets/Sensors/Clock/locale/pt +@dirrm share/gdesklets/Sensors/Clock/locale/fr/LC_MESSAGES +@dirrm share/gdesklets/Sensors/Clock/locale/fr +@dirrm share/gdesklets/Sensors/Clock/locale/de/LC_MESSAGES +@dirrm share/gdesklets/Sensors/Clock/locale/de +@dirrm share/gdesklets/Sensors/Clock/locale +@dirrm share/gdesklets/Sensors/Clock +@dirrm share/gdesklets/Displays/Clock/gfx +@dirrm share/gdesklets/Displays/Clock |