Tue Oct 21 06:29:51 2008 UTC ()
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.
Status:
Vendor Tag: TNF
Release Tags: pkgsrc-base
(bjs)
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/Makefile
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/PLIST
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/distinfo
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/DESCR
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/patches/patch-aa
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/patches/patch-ab
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/patches/patch-ac
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/patches/patch-ad
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/patches/patch-ae
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/patches/patch-af
diff -r0 -r1.1.1.1 pkgsrc/x11/driconf/patches/patch-ag
# $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
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"
@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
$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
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.
$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
$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)
$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@
$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:
$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
$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:
$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"))
+ self.upButton.connect("clicked", self.configTree.moveUp)
+ self.upButton.show()
+ self.toolbar.insert(self.upButton, -1)
+ self.downButton = gtk.ToolButton("gtk-go-down")
+ self.downButton.set_tooltip_text(_("Move selected item down"))
+ self.downButton.connect("clicked", self.configTree.moveDown)
+ self.downButton.show()
+ self.toolbar.insert(self.downButton, -1)
+ self.propertiesButton = gtk.ToolButton("gtk-properties")
+ self.propertiesButton.set_tooltip_text(_("Properties of selected device or application"))
+ self.propertiesButton.connect("clicked", self.configTree.properties)
+ self.propertiesButton.show()
+ self.toolbar.insert(self.propertiesButton, -1)
+
+ separator = gtk.SeparatorToolItem()
+ separator.show()
+ self.toolbar.insert(separator, -1)
+
# The gtk-about stock item is available with gtk >= 2.6.
# It's definitely not available with gtk 2.2. Not sure about 2.4.
if gtk.gtk_version[0] == 2 and gtk.gtk_version[1] < 6:
aboutStock = "gtk-dialog-info"
else:
aboutStock = "gtk-about"
- self.aboutButton = self.toolbar.insert_stock (
- aboutStock, _("About DRIconf"), "priv",
- self.aboutHandler, None, -1)
- self.toolbar.append_space()
- self.exitButton = self.toolbar.insert_stock (
- "gtk-quit", _("Exit DRIconf"), "priv",
- self.exitHandler, None, -1)
+ self.aboutButton = gtk.ToolButton(aboutStock)
+ self.aboutButton.set_tooltip_text(_("About DRIconf"))
+ self.aboutButton.connect("clicked", self.aboutHandler)
+ self.aboutButton.show()
+ self.toolbar.insert(self.aboutButton, -1)
+
+ separator = gtk.SeparatorToolItem()
+ separator.show()
+ self.toolbar.insert(separator, -1)
+
+ self.exitButton = gtk.ToolButton("gtk-quit")
+ self.exitButton.set_tooltip_text(_("Exit DRIconf"))
+ self.exitButton.connect("clicked", self.exitHandler)
+ self.exitButton.show()
+ self.toolbar.insert(self.exitButton, -1)
if len(configList) != 0:
self.activateConfigButtons (configList[0])
self.toolbar.show()