diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-01-06 20:06:10 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-01-06 20:06:10 +0000 |
commit | 383ea3fccdb3bf36c510a28493451c17ffbac0fb (patch) | |
tree | 29abac08f8892feafa9b75589031ba4c9358bcf8 /deskutils/gdesklets-sensor-displayconstraints | |
parent | 75d872c6d40c976e5ed03b334636ec1f5ca21a66 (diff) | |
download | ports-383ea3fccdb3bf36c510a28493451c17ffbac0fb.tar.gz ports-383ea3fccdb3bf36c510a28493451c17ffbac0fb.zip |
Add gdesklets-sensor-displayconstraints, a sensor that allows a user to set
maximum constraints on a display. The display will then not grow larger then
the maximum values specified. Currently only display 'Width' and 'Height' are
supported.
PR: ports/60979
Submitted by: Franz Klammer <klammer@webonaut.com>
Notes
Notes:
svn path=/head/; revision=97495
Diffstat (limited to 'deskutils/gdesklets-sensor-displayconstraints')
5 files changed, 70 insertions, 0 deletions
diff --git a/deskutils/gdesklets-sensor-displayconstraints/Makefile b/deskutils/gdesklets-sensor-displayconstraints/Makefile new file mode 100644 index 000000000000..5a1b6d5e13c0 --- /dev/null +++ b/deskutils/gdesklets-sensor-displayconstraints/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: gdesklets-displayconstraints +# Date created: 06 January 2004 +# Whom: Franz Klammer <klammer@webonaut.com> +# +# $FreeBSD$ +# + +PORTNAME= displayconstraints +PORTVERSION= 0.1.0 +CATEGORIES= deskutils gnome +MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ +PKGNAMEPREFIX= gdesklets-sensor- +DISTNAME= displayconstraints-${PORTVERSION} + +MAINTAINER= klammer@webonaut.com +COMMENT= This Sensor allows a user to set maximum constraints on a display + +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets + +WRKSRC= ${WRKDIR}/${NAME}-${PORTVERSION} + +USE_BZIP2= yes +USE_X_PREFIX= yes +USE_PYTHON= yes +NAME= DisplayConstraints + +do-build: + @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${FIND} ${WRKSRC} -name '*.orig' -delete + +do-install: + @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME} + ${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/ + ${INSTALL_DATA} ${WRKSRC}/${NAME}/README ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/ + @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/ + @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/ + +.include <bsd.port.mk> diff --git a/deskutils/gdesklets-sensor-displayconstraints/distinfo b/deskutils/gdesklets-sensor-displayconstraints/distinfo new file mode 100644 index 000000000000..772536f0a12e --- /dev/null +++ b/deskutils/gdesklets-sensor-displayconstraints/distinfo @@ -0,0 +1 @@ +MD5 (displayconstraints-0.1.0.tar.bz2) = a36a563797dfd8c8f112323300661d02 diff --git a/deskutils/gdesklets-sensor-displayconstraints/files/patch-Install_DisplayConstraints_Sensor.bin b/deskutils/gdesklets-sensor-displayconstraints/files/patch-Install_DisplayConstraints_Sensor.bin new file mode 100644 index 000000000000..418cc72b7788 --- /dev/null +++ b/deskutils/gdesklets-sensor-displayconstraints/files/patch-Install_DisplayConstraints_Sensor.bin @@ -0,0 +1,19 @@ +--- Install_DisplayConstraints_Sensor.bin.orig Sun Sep 14 22:03:43 2003 ++++ Install_DisplayConstraints_Sensor.bin Tue Jan 6 14:08:22 2004 +@@ -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-displayconstraints/pkg-descr b/deskutils/gdesklets-sensor-displayconstraints/pkg-descr new file mode 100644 index 000000000000..dedb5bff56c6 --- /dev/null +++ b/deskutils/gdesklets-sensor-displayconstraints/pkg-descr @@ -0,0 +1,7 @@ +This sensor allows a user to set maximum constraints on a display. + +The display will then not grow larger then the maximum values specified. + +Currently only display 'Width' and 'Height' are supported. + +WWW: http://gdesklets.gnomedesktop.org/ diff --git a/deskutils/gdesklets-sensor-displayconstraints/pkg-plist b/deskutils/gdesklets-sensor-displayconstraints/pkg-plist new file mode 100644 index 000000000000..5e0fd540aba4 --- /dev/null +++ b/deskutils/gdesklets-sensor-displayconstraints/pkg-plist @@ -0,0 +1,5 @@ +share/gnome/gdesklets/Sensors/DisplayConstraints/__init__.py +share/gnome/gdesklets/Sensors/DisplayConstraints/__init__.pyc +share/gnome/gdesklets/Sensors/DisplayConstraints/__init__.pyo +share/gnome/gdesklets/Sensors/DisplayConstraints/README +@dirrm share/gnome/gdesklets/Sensors/DisplayConstraints/ |