diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-12-17 20:43:47 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-12-17 20:43:47 +0000 |
commit | e69d130c587345d8e86bdc4431138a74ddbe1e1e (patch) | |
tree | 2e3e38a92423d283bc9532548cb164330e2e35e2 /deskutils | |
parent | Add gdesklets-psi_themes, and collection of themes for gDesklets from the (diff) |
Theme backend sensor module for gDesklets from the PSI project.
PR: 59820
Submitted by: Franz Klammer <klammer@webonaut.com>
Notes
Notes:
svn path=/head/; revision=96096
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/Makefile | 1 | ||||
-rw-r--r-- | deskutils/gdesklets-sensor-psi_theme/Makefile | 48 | ||||
-rw-r--r-- | deskutils/gdesklets-sensor-psi_theme/distinfo | 1 | ||||
-rw-r--r-- | deskutils/gdesklets-sensor-psi_theme/files/patch-Install_Theme_Sensor.bin | 19 | ||||
-rw-r--r-- | deskutils/gdesklets-sensor-psi_theme/pkg-descr | 3 | ||||
-rw-r--r-- | deskutils/gdesklets-sensor-psi_theme/pkg-message | 8 | ||||
-rw-r--r-- | deskutils/gdesklets-sensor-psi_theme/pkg-plist | 5 |
7 files changed, 85 insertions, 0 deletions
diff --git a/deskutils/Makefile b/deskutils/Makefile index 204fd5d56064..6270977928b5 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -21,6 +21,7 @@ SUBDIR += gdesklets-psi_themes SUBDIR += gdesklets-recentlyused SUBDIR += gdesklets-sensor-psi_iconbutton + SUBDIR += gdesklets-sensor-psi_theme SUBDIR += gdesklets-sensor-psi_variableborder SUBDIR += gdesklets-starterbar SUBDIR += gemcal diff --git a/deskutils/gdesklets-sensor-psi_theme/Makefile b/deskutils/gdesklets-sensor-psi_theme/Makefile new file mode 100644 index 000000000000..b840fb56c7cb --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_theme/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: gdesklets-sensor-psi_theme +# Date created: 20 September 2003 +# Whom: Franz Klammer <klammer@webonaut.com> +# +# $FreeBSD$ +# + +PORTNAME= theme +PORTVERSION= 0.1.1 +CATEGORIES= deskutils gnome +MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ +PKGNAMEPREFIX= gdesklets-sensor-psi_ +DISTNAME= PsiSensorPackage-${DISTVERSION} + +MAINTAINER= klammer@webonaut.com +COMMENT= Theme Sensor from the Psi Sensor Package + +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets \ + ${DATADIR}/gdesklets/Themes/Psi-Disp-Themes/icons/themes:${PORTSDIR}/deskutils/gdesklets-psi_themes + +USE_BZIP2= yes +USE_PYTHON= yes +USE_X_PREFIX= yes +USE_REINPLACE= yes + +DISTVERSION= 20031028 +NAME= Theme +DATADIR= ${PREFIX}/share/gnome +WRKSRC= ${WRKDIR}/${NAME}-${PORTVERSION} + +do-build: + @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${REINPLACE_CMD} -e 's|/usr/share/gdesklets/Themes/|${DATADIR}/gdesklets/Themes/|' \ + ${WRKSRC}/${NAME}/__init__.py + @${FIND} ${WRKSRC} -name '*.orig' -delete + @${FIND} ${WRKSRC} -name '*.bak' -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 <bsd.port.mk> diff --git a/deskutils/gdesklets-sensor-psi_theme/distinfo b/deskutils/gdesklets-sensor-psi_theme/distinfo new file mode 100644 index 000000000000..bf4d02f7d5c7 --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_theme/distinfo @@ -0,0 +1 @@ +MD5 (PsiSensorPackage-20031028.tar.bz2) = 24c891e1d0f66426040b4e4fb618f9f5 diff --git a/deskutils/gdesklets-sensor-psi_theme/files/patch-Install_Theme_Sensor.bin b/deskutils/gdesklets-sensor-psi_theme/files/patch-Install_Theme_Sensor.bin new file mode 100644 index 000000000000..bfa03b5af5be --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_theme/files/patch-Install_Theme_Sensor.bin @@ -0,0 +1,19 @@ +--- Install_Theme_Sensor.bin.orig Wed Nov 19 18:34:09 2003 ++++ Install_Theme_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_theme/pkg-descr b/deskutils/gdesklets-sensor-psi_theme/pkg-descr new file mode 100644 index 000000000000..c933ffbbe1aa --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_theme/pkg-descr @@ -0,0 +1,3 @@ +Theme Sensor from the Psi Sensor Package. + +WWW: http://gdesklets.gnomedesktop.org/ diff --git a/deskutils/gdesklets-sensor-psi_theme/pkg-message b/deskutils/gdesklets-sensor-psi_theme/pkg-message new file mode 100644 index 000000000000..134b43535ec3 --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_theme/pkg-message @@ -0,0 +1,8 @@ +## +To view the README, do the command following: + + cat ${PREFIX}/share/gnome/gdesklets/Sensors/Theme/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_theme/pkg-plist b/deskutils/gdesklets-sensor-psi_theme/pkg-plist new file mode 100644 index 000000000000..7a63129816dd --- /dev/null +++ b/deskutils/gdesklets-sensor-psi_theme/pkg-plist @@ -0,0 +1,5 @@ +share/gnome/gdesklets/Sensors/Theme/__init__.py +share/gnome/gdesklets/Sensors/Theme/__init__.pyc +share/gnome/gdesklets/Sensors/Theme/__init__.pyo +share/gnome/gdesklets/Sensors/Theme/README +@dirrm share/gnome/gdesklets/Sensors/Theme |