summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-16 11:19:32 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-16 11:19:32 +0000
commit3f969a57110f5585052018440af107579a4f9563 (patch)
treed26e446e6000cc3cddb142ade13840e29bfcb667 /x11-misc/driconf
parentVersion Bump javacc to 5.0. (diff)
downloadhistorical-3f969a57110f5585052018440af107579a4f9563.tar.gz
historical-3f969a57110f5585052018440af107579a4f9563.tar.bz2
historical-3f969a57110f5585052018440af107579a4f9563.zip
Import Fedora patchset.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'x11-misc/driconf')
-rw-r--r--x11-misc/driconf/ChangeLog10
-rw-r--r--x11-misc/driconf/Manifest6
-rw-r--r--x11-misc/driconf/driconf-0.9.1-r1.ebuild44
-rw-r--r--x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch16
-rw-r--r--x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch22
-rw-r--r--x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch108
6 files changed, 204 insertions, 2 deletions
diff --git a/x11-misc/driconf/ChangeLog b/x11-misc/driconf/ChangeLog
index b2da5ae168e8..d1d61ec312e0 100644
--- a/x11-misc/driconf/ChangeLog
+++ b/x11-misc/driconf/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for x11-misc/driconf
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/driconf/ChangeLog,v 1.23 2010/01/23 21:12:19 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/driconf/ChangeLog,v 1.24 2010/03/16 11:19:32 ssuominen Exp $
+
+*driconf-0.9.1-r1 (16 Mar 2010)
+
+ 16 Mar 2010; Samuli Suominen <ssuominen@gentoo.org>
+ +driconf-0.9.1-r1.ebuild, +files/driconf-0.9.1-driconf_simpleui.py.patch,
+ +files/driconf-0.9.1-glxinfo-unicode.patch,
+ +files/driconf-0.9.1-update-toolbar-methods.patch:
+ Import Fedora patchset.
23 Jan 2010; Tomáš Chvátal <scarabeus@gentoo.org> driconf-0.9.1.ebuild:
Fix wrong doins.
diff --git a/x11-misc/driconf/Manifest b/x11-misc/driconf/Manifest
index 5450be9ae0e4..1d3381ca4a7c 100644
--- a/x11-misc/driconf/Manifest
+++ b/x11-misc/driconf/Manifest
@@ -1,4 +1,8 @@
+AUX driconf-0.9.1-driconf_simpleui.py.patch 391 RMD160 c56345983030f1fdb3874f79cfb423f6c350b006 SHA1 6de639a7ab216bc83c6dcd2b7a9a4553177cd537 SHA256 d90814a64541301a3b4cd8e9fcd22594ab2f95180b3ce2d3d5e6e93d77fd34eb
+AUX driconf-0.9.1-glxinfo-unicode.patch 978 RMD160 59ed735ba2d4a0f6e347fb8ce94a40599594f616 SHA1 aecd86e708e8d6b8e814466205a9e38744d1cb49 SHA256 7978861c02d07c50280027e402328ccb1643c114c4ffcdbc9e4167b9dc331b33
+AUX driconf-0.9.1-update-toolbar-methods.patch 5333 RMD160 55b62ee90d5819128f0c1dccd1946cdd0ab4564a SHA1 3076ff7a91a60a11883fa613dd6a8dddc8852380 SHA256 e0e004cfc68cdb523a489832b3accbb16d0581309cd9d0a7ff12724363f192f1
DIST driconf-0.9.1.tar.gz 112529 RMD160 eb600372ec2d406662b44c04b28a97f7562dd32c SHA1 523dc84dae8faf443bbc4d32d1e8e209fbe10ff5 SHA256 4849a43f6324498e943c03777bce571229b5446985b1cec596b365505e76f73f
+EBUILD driconf-0.9.1-r1.ebuild 1103 RMD160 6671cb0601a8b1d9f23f61338b5c172f151b22d4 SHA1 9e502a82c0e8cf3499cfcda34f62c7f9db827298 SHA256 29854cd9249d480f615a584afd8e821e424c2d06cdf353049b646990f189b3c9
EBUILD driconf-0.9.1.ebuild 949 RMD160 c0e17276aca828ab3c54f680389002bcb654f3a0 SHA1 47580e5fb9e5fc769d65ba9bed79e56ea56c3b54 SHA256 b6a7b785cb7f32da2cde857fc2c879ee98253b1b05b3ae4ce293ed7ef825d2f9
-MISC ChangeLog 2680 RMD160 1eee9f9fd9c62a59605974722644d14a924c8c0e SHA1 a7f7b142f1dc8f2dffa4cecc09dcd68a649272c8 SHA256 42f7efedcb1b8df03c0eeb57f63b14f756dd38e6f08062f7935eff3c8af4b98c
+MISC ChangeLog 2969 RMD160 c34c6211af3cdead010babf2e7fbfde00e4a5e02 SHA1 b642c47c350be849c29811774e0cc5df305d4cdd SHA256 50e655d24de704000e633a329c23b133466c67d92811a3d4d7784b133480a983
MISC metadata.xml 157 RMD160 bfca46b367901674b4ec5419c063ae27fb446b0a SHA1 4fe7fb7398abd34822cec8be77f8aaf86e28a1a3 SHA256 bc6a4a3d5e32f9329039b242036828256c9f2c33862bc1d606d4ac8427032fdc
diff --git a/x11-misc/driconf/driconf-0.9.1-r1.ebuild b/x11-misc/driconf/driconf-0.9.1-r1.ebuild
new file mode 100644
index 000000000000..7b6003ab6b89
--- /dev/null
+++ b/x11-misc/driconf/driconf-0.9.1-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/driconf/driconf-0.9.1-r1.ebuild,v 1.1 2010/03/16 11:19:32 ssuominen Exp $
+
+EAPI=2
+inherit distutils eutils
+
+DESCRIPTION="driconf is a GTK+2 GUI configurator for DRI."
+HOMEPAGE="http://dri.freedesktop.org/wiki/DriConf"
+SRC_URI="http://freedesktop.org/~fxkuehl/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=x11-libs/gtk+-2.4
+ dev-lang/python[xml]
+ >=dev-python/pygtk-2.4
+ x11-apps/xdriinfo"
+DEPEND="${RDEPEND}"
+
+DOCS="CHANGELOG COPYING PKG-INFO README TODO"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-glxinfo-unicode.patch \
+ "${FILESDIR}"/${P}-update-toolbar-methods.patch \
+ "${FILESDIR}"/${P}-driconf_simpleui.py.patch
+
+ # Fix install locations which breaks location policy - Josh_B
+ sed -i \
+ -e 's-/usr/local-/usr-g' \
+ driconf \
+ driconf.desktop \
+ driconf.py \
+ setup.cfg \
+ setup.py \
+ || die "Sed failed!"
+}
+
+src_install() {
+ distutils_src_install
+ domenu driconf.desktop
+}
diff --git a/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch b/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch
new file mode 100644
index 000000000000..fb661c819be2
--- /dev/null
+++ b/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch
@@ -0,0 +1,16 @@
+http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/
+
+--- driconf_simpleui.py
++++ driconf_simpleui.py
+@@ -266,8 +266,8 @@
+ j = i
+ break
+ i = i - 1
+- if i < chars/3:
+- i = chars
++ else:
++ i = j = chars
+ head, tail = head + tail[:i] + '\n', tail[j:]
+ return head
+
+
diff --git a/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch b/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch
new file mode 100644
index 000000000000..df4155025255
--- /dev/null
+++ b/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch
@@ -0,0 +1,22 @@
+http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/
+
+--- driconf_simpleui.py
++++ driconf_simpleui.py
+@@ -450,11 +450,13 @@ class MainWindow (gtk.Window):
+ else:
+ screen = self.screens[0]
+ if screen.glxInfo:
+- text = "%s (%s)" % (
+- screen.glxInfo.renderer, screen.glxInfo.vendor)
++ text = u"%s (%s)" % (
++ unicode(screen.glxInfo.renderer, "utf-8", "replace"),
++ unicode(screen.glxInfo.vendor, "utf-8", "replace"))
+ else:
+- text = _("Screen") + " %d: %s" % (
+- screen.num, screen.driver.name.capitalize())
++ text = _(u"Screen") + u" %d: %s" % (screen.num,
++ unicode(screen.driver.name, "utf-8",
++ "replace").capitalize())
+ deviceHBox = gtk.HBox()
+ deviceLabel = gtk.Label()
+ deviceLabel.set_justify(gtk.JUSTIFY_LEFT)
diff --git a/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch b/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch
new file mode 100644
index 000000000000..d6ce7e5c73e9
--- /dev/null
+++ b/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch
@@ -0,0 +1,108 @@
+http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/
+
+--- driconf_complexui.py
++++ 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()