diff --git a/x11/driconf/Makefile b/x11/driconf/Makefile new file mode 100644 index 00000000000..ee5ffaf444c --- /dev/null +++ b/x11/driconf/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $ + +COMMENT = configuration utility for DRI drivers + +MODPY_EGG_VERSION = 0.9.1 +DISTNAME = driconf-${MODPY_EGG_VERSION} +CATEGORIES = x11 + +HOMEPAGE = http://people.freedesktop.org/~fxkuehl/driconf/dri_config_design_rev4.html +MASTER_SITES = http://people.freedesktop.org/~fxkuehl/driconf/ + +# GPLv2 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM = Yes +PERMIT_DISTFILES_FTP = Yes + +MODULES = lang/python +RUN_DEPENDS = ::x11/py-gtk2 \ + :python-expat-${MODPY_VERSION}*:lang/python/${MODPY_VERSION},-expat + +pre-configure: + @mkdir -p ${WRKSRC}/lib/driconf + @touch ${WRKSRC}/lib/driconf/__init__.py + @cd ${WRKSRC}; mv dri.py driconf.py ./lib/driconf/. + @cd ${WRKSRC}; for i in driconf_*.py; do \ + mv $$i ./lib/driconf/$${i#*_}; done + +.include diff --git a/x11/driconf/distinfo b/x11/driconf/distinfo new file mode 100644 index 00000000000..d47cfc6727e --- /dev/null +++ b/x11/driconf/distinfo @@ -0,0 +1,5 @@ +MD5 (driconf-0.9.1.tar.gz) = dtYQvNVqpeikid67UIEXig== +RMD160 (driconf-0.9.1.tar.gz) = 62ADcuwtQGZitEwEsoqX91Yt0yw= +SHA1 (driconf-0.9.1.tar.gz) = Uj3ITa6Pr0Q7vE0y0ejiCfvhD/U= +SHA256 (driconf-0.9.1.tar.gz) = SEmkP2MkSY6UPAN3e85XEim1RGmFsc7FlrNlUF529z8= +SIZE (driconf-0.9.1.tar.gz) = 112529 diff --git a/x11/driconf/patches/patch-driconf b/x11/driconf/patches/patch-driconf new file mode 100644 index 00000000000..61b51b255d9 --- /dev/null +++ b/x11/driconf/patches/patch-driconf @@ -0,0 +1,16 @@ +$OpenBSD: patch-driconf,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $ +--- driconf.orig Thu Aug 11 14:07:12 2005 ++++ driconf Mon Jul 7 08:31:49 2008 +@@ -20,9 +20,9 @@ + + # Contact: http://fxk.de.vu/ + +-import sys +-sys.path.append("/usr/local/lib/driconf") ++#import sys ++#sys.path.append("/usr/local/lib/driconf") + +-import driconf ++from driconf import driconf + + driconf.main() diff --git a/x11/driconf/patches/patch-driconf_complexui_py b/x11/driconf/patches/patch-driconf_complexui_py new file mode 100644 index 00000000000..460828e64c6 --- /dev/null +++ b/x11/driconf/patches/patch-driconf_complexui_py @@ -0,0 +1,17 @@ +$OpenBSD: patch-driconf_complexui_py,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $ +--- driconf_complexui.py.orig Mon Jul 7 08:30:04 2008 ++++ driconf_complexui.py Mon Jul 7 08:29:55 2008 +@@ -24,10 +24,10 @@ pygtk.require ("2.0") + import gtk + import gobject + +-import driconf_commonui +-commonui = driconf_commonui # short cut ++import commonui ++#commonui = driconf_commonui # short cut + +-from driconf_commonui import _, lang, findInShared, escapeMarkup, WrappingCheckButton, SectionPage, UnknownSectionPage ++from commonui import _, lang, findInShared, escapeMarkup, WrappingCheckButton, SectionPage, UnknownSectionPage + + class DriverPanel (gtk.Frame): + """ Panel for driver settings for a specific application. """ diff --git a/x11/driconf/patches/patch-driconf_py b/x11/driconf/patches/patch-driconf_py new file mode 100644 index 00000000000..cc452ae74ba --- /dev/null +++ b/x11/driconf/patches/patch-driconf_py @@ -0,0 +1,26 @@ +$OpenBSD: patch-driconf_py,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $ +--- driconf.py.orig Mon Jul 7 08:29:20 2008 ++++ driconf.py Mon Jul 7 08:29:13 2008 +@@ -30,15 +30,15 @@ if gtk.check_version(2, 4, 0): + print "Error: DRIconf requires GTK 2.4 or newer." + sys.exit(1) + +-import driconf_commonui +-import driconf_complexui +-import driconf_simpleui ++import commonui ++import complexui ++import simpleui + +-commonui = driconf_commonui # short cuts +-complexui = driconf_complexui +-simpleui = driconf_simpleui ++#commonui = driconf_commonui # short cuts ++#complexui = driconf_complexui ++#simpleui = driconf_simpleui + +-from driconf_commonui import _ ++from commonui import _ + + + def main(): diff --git a/x11/driconf/patches/patch-driconf_simpleui_py b/x11/driconf/patches/patch-driconf_simpleui_py new file mode 100644 index 00000000000..a2574c4a81f --- /dev/null +++ b/x11/driconf/patches/patch-driconf_simpleui_py @@ -0,0 +1,21 @@ +$OpenBSD: patch-driconf_simpleui_py,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $ +--- driconf_simpleui.py.orig Mon Jul 7 08:30:20 2008 ++++ driconf_simpleui.py Mon Jul 7 08:30:36 2008 +@@ -25,12 +25,12 @@ pygtk.require ("2.0") + import gtk + import gobject + +-import driconf_commonui +-import driconf_complexui +-commonui = driconf_commonui # short cut +-complexui = driconf_complexui ++import commonui ++import complexui ++#commonui = driconf_commonui # short cut ++#complexui = driconf_complexui + +-from driconf_commonui import _, lang ++from commonui import _, lang + + def isUserConfig(config): + return config.fileName.startswith(os.environ["HOME"]) diff --git a/x11/driconf/patches/patch-setup_cfg b/x11/driconf/patches/patch-setup_cfg new file mode 100644 index 00000000000..a0fab2c827f --- /dev/null +++ b/x11/driconf/patches/patch-setup_cfg @@ -0,0 +1,9 @@ +$OpenBSD: patch-setup_cfg,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $ +--- setup.cfg.orig Thu Aug 11 20:07:12 2005 ++++ setup.cfg Sun Jul 6 22:42:19 2008 +@@ -1,3 +1,3 @@ + [install] +-prefix=/usr/local +-install-purelib=/usr/local/lib/driconf ++#prefix=/usr/local ++#install-purelib=/usr/local/driconf diff --git a/x11/driconf/patches/patch-setup_py b/x11/driconf/patches/patch-setup_py new file mode 100644 index 00000000000..e0c4cd29199 --- /dev/null +++ b/x11/driconf/patches/patch-setup_py @@ -0,0 +1,22 @@ +$OpenBSD: patch-setup_py,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $ +--- setup.py.orig Sun Sep 17 20:41:20 2006 ++++ setup.py Mon Jul 7 08:26:00 2008 +@@ -12,12 +12,16 @@ setup(name="driconf", + author="Felix Kuehling", + author_email="fxkuehl@gmx.de", + url="http://dri.freedesktop.org/wiki/DriConf", +- py_modules=["dri", "driconf", "driconf_commonui", "driconf_complexui", +- "driconf_simpleui"], ++ packages=["driconf",], ++ package_dir={"": "lib"}, + scripts=["driconf"], + data_files=[("share/driconf", ["card.png", "screen.png", "screencard.png", + "drilogo.jpg", "driconf-icon.png"]) + ] + translations) ++ ++# Exit here, skipping useless checks below. ++import sys ++sys.exit(0) + + # + # Search for obsolete files. diff --git a/x11/driconf/pkg/DESCR b/x11/driconf/pkg/DESCR new file mode 100644 index 00000000000..e9d505b9229 --- /dev/null +++ b/x11/driconf/pkg/DESCR @@ -0,0 +1,7 @@ +DRIconf is a configuration applet for the Direct Rendering +Infrastructure. It allows customizing performance and visual quality +settings of OpenGL drivers on a per-driver, per-screen and/or +per-application level. + +The settings are stored in system wide and per-user XML configuration +files, which are parsed by the OpenGL drivers on startup. diff --git a/x11/driconf/pkg/PLIST b/x11/driconf/pkg/PLIST new file mode 100644 index 00000000000..5d618652bcb --- /dev/null +++ b/x11/driconf/pkg/PLIST @@ -0,0 +1,27 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/07/11 13:07:54 wcmaier Exp $ +bin/driconf +lib/python${MODPY_VERSION}/site-packages/driconf/ +lib/python${MODPY_VERSION}/site-packages/driconf-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info +lib/python${MODPY_VERSION}/site-packages/driconf/__init__.py +lib/python${MODPY_VERSION}/site-packages/driconf/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/driconf/commonui.py +lib/python${MODPY_VERSION}/site-packages/driconf/commonui.pyc +lib/python${MODPY_VERSION}/site-packages/driconf/complexui.py +lib/python${MODPY_VERSION}/site-packages/driconf/complexui.pyc +lib/python${MODPY_VERSION}/site-packages/driconf/dri.py +lib/python${MODPY_VERSION}/site-packages/driconf/dri.pyc +lib/python${MODPY_VERSION}/site-packages/driconf/driconf.py +lib/python${MODPY_VERSION}/site-packages/driconf/driconf.pyc +lib/python${MODPY_VERSION}/site-packages/driconf/simpleui.py +lib/python${MODPY_VERSION}/site-packages/driconf/simpleui.pyc +share/driconf/ +share/driconf/card.png +share/driconf/driconf-icon.png +share/driconf/drilogo.jpg +share/driconf/screen.png +share/driconf/screencard.png +share/locale/de/LC_MESSAGES/driconf.mo +share/locale/es/LC_MESSAGES/driconf.mo +share/locale/it/LC_MESSAGES/driconf.mo +share/locale/nl/LC_MESSAGES/driconf.mo +share/locale/ru/LC_MESSAGES/driconf.mo