summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11-misc/driconf/ChangeLog7
-rw-r--r--x11-misc/driconf/driconf-0.9.1-r1.ebuild21
2 files changed, 24 insertions, 4 deletions
diff --git a/x11-misc/driconf/ChangeLog b/x11-misc/driconf/ChangeLog
index 499f466a1ee0..b668e244bfb8 100644
--- a/x11-misc/driconf/ChangeLog
+++ b/x11-misc/driconf/ChangeLog
@@ -1,6 +1,11 @@
# 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.29 2010/10/21 14:02:05 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/driconf/ChangeLog,v 1.30 2010/11/15 15:47:02 arfrever Exp $
+
+ 15 Nov 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ driconf-0.9.1-r1.ebuild:
+ Update EAPI. Fix dependencies, use Python 2, call python_mod_optimize() and
+ python_mod_cleanup() (bug 317007).
21 Oct 2010; Tomáš Chvátal <scarabeus@gentoo.org>
-driconf-0.9.1.ebuild:
diff --git a/x11-misc/driconf/driconf-0.9.1-r1.ebuild b/x11-misc/driconf/driconf-0.9.1-r1.ebuild
index d71cd1fa2172..52450a0bd9fb 100644
--- a/x11-misc/driconf/driconf-0.9.1-r1.ebuild
+++ b/x11-misc/driconf/driconf-0.9.1-r1.ebuild
@@ -1,8 +1,11 @@
# 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.5 2010/10/21 01:21:08 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/driconf/driconf-0.9.1-r1.ebuild,v 1.6 2010/11/15 15:47:02 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+PYTHON_USE_WITH="xml"
-EAPI=2
inherit distutils eutils
DESCRIPTION="driconf is a GTK+2 GUI configurator for DRI."
@@ -15,13 +18,17 @@ 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"
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
src_prepare() {
epatch "${FILESDIR}"/${P}-glxinfo-unicode.patch \
"${FILESDIR}"/${P}-update-toolbar-methods.patch \
@@ -42,3 +49,11 @@ src_install() {
distutils_src_install
domenu driconf.desktop
}
+
+pkg_postinst() {
+ python_mod_optimize /usr/lib/driconf
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/lib/driconf
+}