pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/driconf Add driconf-0.9.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5c65c51e2073
branches:  trunk
changeset: 548703:5c65c51e2073
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Tue Oct 21 06:29:51 2008 +0000

description:
Add driconf-0.9.1.

DRI is the direct rendering infrastructure in XFree86 and X.org, which
provides 3D hardware acceleration. Most 3D drivers have a number of
options for tuning the performance and visual quality. DRIconf is a
configuration applet that allows you to change these parameters.

diffstat:

 x11/driconf/DESCR            |    4 +
 x11/driconf/Makefile         |   47 ++++++++++++++++++
 x11/driconf/PLIST            |   32 ++++++++++++
 x11/driconf/distinfo         |   12 ++++
 x11/driconf/patches/patch-aa |   13 +++++
 x11/driconf/patches/patch-ab |   22 ++++++++
 x11/driconf/patches/patch-ac |   10 +++
 x11/driconf/patches/patch-ad |   31 ++++++++++++
 x11/driconf/patches/patch-ae |   13 +++++
 x11/driconf/patches/patch-af |   13 +++++
 x11/driconf/patches/patch-ag |  108 +++++++++++++++++++++++++++++++++++++++++++
 11 files changed, 305 insertions(+), 0 deletions(-)

diffs (truncated from 349 to 300 lines):

diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/DESCR Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,4 @@
+DRI is the direct rendering infrastructure in XFree86 and X.org, which
+provides 3D hardware acceleration. Most 3D drivers have a number of
+options for tuning the performance and visual quality. DRIconf is a
+configuration applet that allows you to change these parameters.
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/Makefile      Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+#
+
+DISTNAME=      driconf-0.9.1
+CATEGORIES=    x11
+MASTER_SITES=  ${MASTER_SITE_LOCAL}
+
+MAINTAINER=    bjs%NetBSD.org@localhost
+HOMEPAGE=      http://dri.freedesktop.org/wiki/DriConf
+COMMENT=       Configuration applet for DRI drivers
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+DEPENDS+=      xdriinfo>=1.0.2:../../x11/xdriinfo
+
+USE_DIRS+=     xdg-1.4
+USE_TOOLS+=    msgfmt msgmerge xgettext
+
+CONFIGURE_ARGS+=       --prefix=${PREFIX:Q}
+PYDISTUTILSPKG=        yes
+REPLACE_PYTHON=        *.py
+PYTHON_VERSIONS_INCOMPATIBLE=  15 21
+
+SUBST_CLASSES+=        fix-paths
+SUBST_FILES.fix-paths= driconf driconf.desktop
+SUBST_FILES.fix-paths+=        driconf.py driconf_com*ui.py
+SUBST_FILES.fix-paths+=        setup.cfg setup.py
+SUBST_MESSAGE.fix-paths=Fixing hard-coded pathnames.
+SUBST_STAGE.fix-paths= pre-configure
+SUBST_VARS.fix-paths=  PKGBASE PKGLOCALEDIR PKG_SYSCONFDIR PREFIX PYSITELIB
+
+pre-build:
+       ${RUN} cd ${WRKSRC} && \
+       ${BUILD_MAKE_CMD} all
+
+#post-install:
+       ${RUN} cd ${WRKSRC} && \
+       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/applications && \
+       ${INSTALL_DATA} ${WRKSRC}/driconf.desktop \
+               ${DESTDIR}${PREFIX}/share/applications/
+
+.include "../../lang/python/extension.mk"
+#.include "../../textproc/py-xml/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../x11/py-gtk2/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/PLIST Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,32 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+bin/driconf
+${PYSITELIB}/driconf/dri.py
+${PYSITELIB}/driconf/dri.pyc
+${PYSITELIB}/driconf/dri.pyo
+${PYSITELIB}/driconf/driconf.py
+${PYSITELIB}/driconf/driconf.pyc
+${PYSITELIB}/driconf/driconf.pyo
+${PYSITELIB}/driconf/driconf_commonui.py
+${PYSITELIB}/driconf/driconf_commonui.pyc
+${PYSITELIB}/driconf/driconf_commonui.pyo
+${PYSITELIB}/driconf/driconf_complexui.py
+${PYSITELIB}/driconf/driconf_complexui.pyc
+${PYSITELIB}/driconf/driconf_complexui.pyo
+${PYSITELIB}/driconf/driconf_simpleui.py
+${PYSITELIB}/driconf/driconf_simpleui.pyc
+${PYSITELIB}/driconf/driconf_simpleui.pyo
+share/applications/driconf.desktop
+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
+share/pixmaps/driconf/card.png
+share/pixmaps/driconf/driconf-icon.png
+share/pixmaps/driconf/drilogo.jpg
+share/pixmaps/driconf/screen.png
+share/pixmaps/driconf/screencard.png
+@dirrm share/pixmaps/driconf
+@comment in xdg-dirs: @dirrm share/pixmaps
+@comment in xdg-dirs: @dirrm share/applications
+@dirrm ${PYSITELIB}/driconf
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/distinfo      Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+
+SHA1 (driconf-0.9.1.tar.gz) = 504fbe38643fc91ade9c87c502c7c18e4fdc7ac5
+RMD160 (driconf-0.9.1.tar.gz) = f32e83a283756dd911356dae220b54ba351df984
+Size (driconf-0.9.1.tar.gz) = 102531 bytes
+SHA1 (patch-aa) = db3fd8fb5e2d8438c2dea3025e3c9eda2019cc22
+SHA1 (patch-ab) = 2f3221759c30d1010a01598c4134218127e5e605
+SHA1 (patch-ac) = 46cdd74cc05e42276e4c565c275d706fa5083c58
+SHA1 (patch-ad) = 51a8f495904117028fdfe794190f2194757879ef
+SHA1 (patch-ae) = b9dd855cb800c0040df98177d74791c5e2ca6163
+SHA1 (patch-af) = c76889cb4e56e9d0f8cdca1d9989653c93c034c6
+SHA1 (patch-ag) = df575f741ca6c656a77fde0defa99236daf02898
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/patches/patch-aa      Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+
+--- driconf.desktop.orig       2008-10-19 02:04:41.000000000 -0400
++++ driconf.desktop
+@@ -3,7 +3,7 @@ Encoding=UTF-8
+ Name=3D Acceleration
+ Comment=Change 3D Acceleration options
+ Exec=driconf
+-Icon=/usr/local/share/driconf/driconf-icon.png
++Icon=@PREFIX@/share/pixmaps/@PKGBASE@/driconf-icon.png
+ Type=Application
+ Categories=GNOME;Application;Settings;AdvancedSettings;
+ StartupNotify=true
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/patches/patch-ab      Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+
+--- driconf_commonui.py.orig   2008-10-19 02:04:41.000000000 -0400
++++ driconf_commonui.py
+@@ -38,7 +38,7 @@ except IOError:
+     try:
+         _ = gettext.translation ("driconf").ugettext
+     except IOError:
+-        _ = gettext.translation ("driconf", "/usr/local/share/locale",
++        _ = gettext.translation ("driconf", "@PREFIX@/@PKGLOCALEDIR@/locale",
+                                  fallback=True).ugettext
+ 
+ # global variable: lang
+@@ -69,7 +69,7 @@ def findInShared (name):
+     # try all <prefix>/share/driconf/name for all prefixes of __file__
+     head,tail = os.path.split (__file__)
+     while head and tail:
+-        f = os.path.join (head, "share/driconf", name)
++        f = os.path.join (head, "share/pixmaps/@PKGBASE@", name)
+         if os.path.isfile (f):
+             return f
+         head,tail = os.path.split (head)
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/patches/patch-ac      Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,10 @@
+$NetBSD: patch-ac,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+
+--- setup.cfg.orig     2008-10-19 02:04:41.000000000 -0400
++++ setup.cfg
+@@ -1,3 +1,3 @@
+ [install]
+-prefix=/usr/local
+-install-purelib=/usr/local/lib/driconf
++prefix=@PREFIX@
++install-purelib=@PREFIX@/@PYSITELIB@/@PKGBASE@
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/patches/patch-ad      Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-ad,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+
+--- setup.py.orig      2008-10-19 02:04:41.000000000 -0400
++++ setup.py
+@@ -3,7 +3,7 @@ from distutils.core import setup
+ langs = ["de", "es", "it", "ru", "nl"]
+ translations = []
+ for lang in langs:
+-    translations.append (("share/locale/%s/LC_MESSAGES" % lang,
++    translations.append (("@PKGLOCALEDIR@/locale/%s/LC_MESSAGES" % lang,
+                           ["%s/LC_MESSAGES/driconf.mo" % lang]))
+ 
+ setup(name="driconf",
+@@ -15,7 +15,7 @@ setup(name="driconf",
+       py_modules=["dri", "driconf", "driconf_commonui", "driconf_complexui",
+                   "driconf_simpleui"],
+       scripts=["driconf"],
+-      data_files=[("share/driconf", ["card.png", "screen.png", "screencard.png",
++      data_files=[("share/pixmaps/@PKGBASE@", ["card.png", "screen.png", "screencard.png",
+                                      "drilogo.jpg", "driconf-icon.png"])
+                   ] + translations)
+ 
+@@ -28,7 +28,7 @@ setup(name="driconf",
+ from os.path import isfile, isdir, join
+ from distutils.sysconfig import get_python_lib
+ obsoleteFiles = []
+-for prefix in [None, "/usr/local"]:
++for prefix in ["@PREFIX@"]:
+     if not prefix:
+         pyLibPath = get_python_lib()
+     else:
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/patches/patch-ae      Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+
+--- driconf.orig       2008-10-19 02:04:41.000000000 -0400
++++ driconf
+@@ -21,7 +21,7 @@
+ # Contact: http://fxk.de.vu/
+ 
+ import sys
+-sys.path.append("/usr/local/lib/driconf")
++sys.path.append("@PREFIX@/@PYSITELIB@/@PKGBASE@")
+ 
+ import driconf
+ 
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/patches/patch-af      Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+
+--- driconf.py.orig    2008-10-19 02:04:41.000000000 -0400
++++ driconf.py
+@@ -79,7 +79,7 @@ def main():
+         expert = True
+ 
+     # read or create configuration files
+-    fileNameList = ["/etc/drirc", os.path.join (os.environ["HOME"], ".drirc")]
++    fileNameList = ["@PKG_SYSCONFDIR@/dri.conf", os.path.join (os.environ["HOME"], ".drirc")]
+     configList = []
+     newFiles = []
+     for fileName in fileNameList:
diff -r 8126e5007585 -r 5c65c51e2073 x11/driconf/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/driconf/patches/patch-ag      Tue Oct 21 06:29:51 2008 +0000
@@ -0,0 +1,108 @@
+$NetBSD: patch-ag,v 1.1.1.1 2008/10/21 06:29:51 bjs Exp $
+
+--- driconf_complexui.py.orig  2008-10-19 02:04:41.000000000 -0400
++++ driconf_complexui.py
+@@ -838,42 +838,73 @@ class MainWindow (gtk.Window):
+         self.paned.show()
+         self.toolbar = gtk.Toolbar ()
+         iconSize = self.toolbar.get_icon_size()
+-        self.saveButton = self.toolbar.insert_stock (
+-            "gtk-save", _("Save selected configuration file"),
+-            "priv", self.configTree.saveConfig, None, -1)
+-        self.reloadButton = self.toolbar.insert_stock (
+-            "gtk-revert-to-saved", _("Reload selected configuration file"),
+-            "priv", self.configTree.reloadConfig, None, -1)
+-        self.toolbar.append_space()
+-        self.newButton = self.toolbar.insert_stock (
+-            "gtk-new", _("Create a new device or application"),
+-            "priv", self.configTree.newItem, None, -1)
+-        self.removeButton = self.toolbar.insert_stock (
+-            "gtk-delete", _("Remove selected device or application"),
+-            "priv", self.configTree.removeItem, None, -1)
+-        self.upButton = self.toolbar.insert_stock (
+-            "gtk-go-up", _("Move selected item up"),
+-            "priv", self.configTree.moveUp, None, -1)
+-        self.downButton = self.toolbar.insert_stock (
+-            "gtk-go-down", _("Move selected item down"),
+-            "priv", self.configTree.moveDown, None, -1)
+-        self.propertiesButton = self.toolbar.insert_stock (
+-            "gtk-properties", _("Properties of selected device or application"),
+-            "priv", self.configTree.properties, None, -1)
+-        self.toolbar.append_space()
++
++        self.saveButton = gtk.ToolButton("gtk-save")
++        self.saveButton.set_tooltip_text(_("Save selected configuration file"))
++        self.saveButton.connect("clicked", self.configTree.saveConfig)
++        self.saveButton.show()
++        self.toolbar.insert(self.saveButton, -1)
++        self.reloadButton = gtk.ToolButton("gtk-revert-to-saved")
++        self.reloadButton.set_tooltip_text(_("Reload selected configuration file"))
++        self.reloadButton.connect("clicked", self.configTree.reloadConfig)
++        self.reloadButton.show()
++        self.toolbar.insert(self.reloadButton, -1)
++
++        separator = gtk.SeparatorToolItem()
++        separator.show()
++        self.toolbar.insert(separator, -1)
++
++        self.newButton = gtk.ToolButton("gtk-new")
++        self.newButton.set_tooltip_text(_("Create a new device or application"))
++        self.newButton.connect("clicked", self.configTree.newItem)
++        self.newButton.show()
++        self.toolbar.insert(self.newButton, -1)
++        self.removeButton = gtk.ToolButton("gtk-delete")
++        self.removeButton.set_tooltip_text(_("Remove selected device or application"))
++        self.removeButton.connect("clicked", self.configTree.removeItem)
++        self.removeButton.show()
++        self.toolbar.insert(self.removeButton, -1)
++        self.upButton = gtk.ToolButton("gtk-go-up")
++        self.upButton.set_tooltip_text(_("Move selected item up"))



Home | Main Index | Thread Index | Old Index