From 8b1e84548e050b675f541bc42a2b439da2fe722c Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Thu, 20 Nov 2003 16:07:52 +0000 Subject: Add gdesklets-sensor-psi_iconbutton, a gdesklet backend based on the starterbar. It allows for a button to be used to execute a command with zooming eye candy on mouse over. PR: 59513 Submitted by: Franz Klammer --- deskutils/Makefile | 1 + deskutils/gdesklets-sensor-psi_iconbutton/Makefile | 43 ++++++++++++++++++++++ deskutils/gdesklets-sensor-psi_iconbutton/distinfo | 1 + .../files/patch-Install_Sensor.bin | 19 ++++++++++ .../gdesklets-sensor-psi_iconbutton/pkg-descr | 8 ++++ .../gdesklets-sensor-psi_iconbutton/pkg-message | 8 ++++ .../gdesklets-sensor-psi_iconbutton/pkg-plist | 5 +++ 7 files changed, 85 insertions(+) create mode 100644 deskutils/gdesklets-sensor-psi_iconbutton/Makefile create mode 100644 deskutils/gdesklets-sensor-psi_iconbutton/distinfo create mode 100644 deskutils/gdesklets-sensor-psi_iconbutton/files/patch-Install_Sensor.bin create mode 100644 deskutils/gdesklets-sensor-psi_iconbutton/pkg-descr create mode 100644 deskutils/gdesklets-sensor-psi_iconbutton/pkg-message create mode 100644 deskutils/gdesklets-sensor-psi_iconbutton/pkg-plist (limited to 'deskutils') diff --git a/deskutils/Makefile b/deskutils/Makefile index 0efd0160230f..5b2e0db72434 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -19,6 +19,7 @@ SUBDIR += gdeskcal-skins SUBDIR += gdesklets SUBDIR += gdesklets-recentlyused + SUBDIR += gdesklets-sensor-psi_iconbutton SUBDIR += gdesklets-starterbar SUBDIR += gemcal SUBDIR += genius diff --git a/deskutils/gdesklets-sensor-psi_iconbutton/Makefile b/deskutils/gdesklets-sensor-psi_iconbutton/Makefile new file mode 100644 index 000000000000..dc7d2d111dff --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_iconbutton/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: gdesklets-sensor-psi_iconbutton +# Date created: 20 September 2003 +# Whom: Franz Klammer +# +# $FreeBSD$ +# + +PORTNAME= iconbutton +PORTVERSION= 0.1.4 +CATEGORIES= deskutils gnome +MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ +PKGNAMEPREFIX= gdesklets-sensor-psi_ +DISTNAME= PsiSensorPackage-${DISTVERSION} + +MAINTAINER= klammer@webonaut.com +COMMENT= A sensor based on the starterbar + +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets + +USE_BZIP2= yes +USE_PYTHON= yes +USE_X_PREFIX= yes + +DISTVERSION= 20031028 +NAME= IconButton +DATADIR= ${PREFIX}/share/gnome +WRKSRC= ${WRKDIR}/${NAME}-${PORTVERSION} + +do-build: + @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${FIND} ${WRKSRC} -name '*.orig' -delete + +do-install: + @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME} + @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py ${DATADIR}/gdesklets/Sensors/${NAME}/ + @${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}/gdesklets/Sensors/${NAME}/ + +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 diff --git a/deskutils/gdesklets-sensor-psi_iconbutton/distinfo b/deskutils/gdesklets-sensor-psi_iconbutton/distinfo new file mode 100644 index 000000000000..bf4d02f7d5c7 --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_iconbutton/distinfo @@ -0,0 +1 @@ +MD5 (PsiSensorPackage-20031028.tar.bz2) = 24c891e1d0f66426040b4e4fb618f9f5 diff --git a/deskutils/gdesklets-sensor-psi_iconbutton/files/patch-Install_Sensor.bin b/deskutils/gdesklets-sensor-psi_iconbutton/files/patch-Install_Sensor.bin new file mode 100644 index 000000000000..c7e79a95ceb1 --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_iconbutton/files/patch-Install_Sensor.bin @@ -0,0 +1,19 @@ +--- Install_IconButton_Sensor.bin.orig Wed Nov 19 18:34:09 2003 ++++ Install_IconButton_Sensor.bin Wed Nov 19 18:34:26 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/deskutils/gdesklets-sensor-psi_iconbutton/pkg-descr b/deskutils/gdesklets-sensor-psi_iconbutton/pkg-descr new file mode 100644 index 000000000000..07d2c967d1e4 --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_iconbutton/pkg-descr @@ -0,0 +1,8 @@ + +This sensor is based on the starter bar and part of the Psi Sensor Package. + +It allows to have a button that executes a command (it is possible to i +change the command in the configurator) when it is clicked and that scales +on mouse over. + +WWW: http://gdesklets.gnomedesktop.org/ diff --git a/deskutils/gdesklets-sensor-psi_iconbutton/pkg-message b/deskutils/gdesklets-sensor-psi_iconbutton/pkg-message new file mode 100644 index 000000000000..7901ed264654 --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_iconbutton/pkg-message @@ -0,0 +1,8 @@ +## +To view the README, do the command following: + + cat ${PREFIX}/share/gnome/gdesklets/Sensors/${name}/README + +This is just a sensor, to actually see the data it collects, you have to install +an appropriate display plugin. +## diff --git a/deskutils/gdesklets-sensor-psi_iconbutton/pkg-plist b/deskutils/gdesklets-sensor-psi_iconbutton/pkg-plist new file mode 100644 index 000000000000..4cec55614050 --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_iconbutton/pkg-plist @@ -0,0 +1,5 @@ +share/gnome/gdesklets/Sensors/IconButton/__init__.py +share/gnome/gdesklets/Sensors/IconButton/__init__.pyc +share/gnome/gdesklets/Sensors/IconButton/__init__.pyo +share/gnome/gdesklets/Sensors/IconButton/README +@dirrm share/gnome/gdesklets/Sensors/IconButton -- cgit v1.2.3