Import GAMMApage-0.5
GAMMApage is a gamma-adjusting utility for your monitor. It is able to adjust gamma on the fly and save settings to be used at each login (on a per-user basis, GAMMApage will only write to the user's home directory). tested by several, ok simon@
This commit is contained in:
parent
202787132e
commit
371276505d
34
x11/gammapage/Makefile
Normal file
34
x11/gammapage/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/11/13 07:12:30 ajacoutot Exp $
|
||||
|
||||
COMMENT= gamma-adjusting utility
|
||||
|
||||
DISTNAME= GAMMApage-0.5
|
||||
CATEGORIES= x11
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
HOMEPAGE= http://www.pcbypaul.com/software/GAMMApage.html
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://www.pcbypaul.com/software/dl/
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
RUN_DEPENDS= ::x11/py-gtk2
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
PKG_ARCH= *
|
||||
|
||||
pre-configure:
|
||||
@find ${WRKDIST} -name \*.py | \
|
||||
xargs perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g'
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/GAMMApage.py ${PREFIX}/bin/GAMMApage
|
||||
|
||||
.include <bsd.port.mk>
|
5
x11/gammapage/distinfo
Normal file
5
x11/gammapage/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (GAMMApage-0.5.tar.bz2) = c75zhpwtW4l/XdNk6a2I8g==
|
||||
RMD160 (GAMMApage-0.5.tar.bz2) = RatCs68j7EKbAfvu35AM9BNXKbc=
|
||||
SHA1 (GAMMApage-0.5.tar.bz2) = FEq1v0OTYel7PeIRF4vnYkeV3W8=
|
||||
SHA256 (GAMMApage-0.5.tar.bz2) = SlO0EK+KFGratQGlSIKBxmwE9K84+8YJR/AOZWQxvo8=
|
||||
SIZE (GAMMApage-0.5.tar.bz2) = 19745
|
25
x11/gammapage/patches/patch-GAMMApage_py
Normal file
25
x11/gammapage/patches/patch-GAMMApage_py
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-GAMMApage_py,v 1.1.1.1 2007/11/13 07:12:30 ajacoutot Exp $
|
||||
--- GAMMApage.py.orig Fri Nov 17 03:17:51 2006
|
||||
+++ GAMMApage.py Mon Nov 12 16:17:48 2007
|
||||
@@ -717,6 +717,8 @@ class ShowGamma:
|
||||
return True
|
||||
if re.search("id:5:initdefault:", ret):
|
||||
return True
|
||||
+ if sys.platform.startswith('openbsd'):
|
||||
+ return False
|
||||
else:
|
||||
self.info("Logon type cannot be determined,\ntherefore GAMMApage does not know\nwhere to save the gamma-adjusting \ncommand to be run on X-startup.\n\nThe \"Save\" button will be disabled.\nIn its place, the \"Exit\" button will close the program but keep your gamma adjustments until your X-session ends.\n\nSee the \"HELP\" pages for further instructions.")
|
||||
self.save_btn.disconnect(self.saveid)
|
||||
@@ -728,9 +730,10 @@ class ShowGamma:
|
||||
def toggle_init(self, data=None):
|
||||
|
||||
if self.tog_init.get_active():
|
||||
- if not os.path.basename(os.getenv("SHELL")) == "bash":
|
||||
+ myshell=os.path.basename(os.getenv("SHELL"))
|
||||
+ if myshell != "bash" and myshell != "ksh" and myshell != "zsh" and myshell != "sh":
|
||||
self.saveable = False
|
||||
- self.info("GAMMApage uses bash shell scripts to adjust gamma on system startup. Since you appear to NOT be using a bash shell... \n\nThe \"Save\" button cannot be enabled.\nIn its place, the \"Exit\" button will close the program but keep your gamma adjustments until your X-session ends.\n\nSee the \"HELP\" pages for further instructions.")
|
||||
+ self.info("GAMMApage uses bourne shell scripts to adjust gamma on system startup. Since you appear to NOT be using a bourne shell... \n\nThe \"Save\" button cannot be enabled.\nIn its place, the \"Exit\" button will close the program but keep your gamma adjustments until your X-session ends.\n\nSee the \"HELP\" pages for further instructions.")
|
||||
return False
|
||||
else:
|
||||
|
4
x11/gammapage/pkg/DESCR
Normal file
4
x11/gammapage/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
GAMMApage is a gamma-adjusting utility for your monitor. It is able to
|
||||
adjust gamma on the fly and save settings to be used at each login (on
|
||||
a per-user basis, GAMMApage will only write to the user's home
|
||||
directory).
|
2
x11/gammapage/pkg/PLIST
Normal file
2
x11/gammapage/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/11/13 07:12:30 ajacoutot Exp $
|
||||
bin/GAMMApage
|
Loading…
Reference in New Issue
Block a user