diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-04-25 20:43:46 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2011-04-25 20:43:46 +0000 |
commit | 5db2c1f0a3707bd04984d2ac63c46795e41f4c47 (patch) | |
tree | c504b54e73fe27613b0b4d7c223eaad4d81aab8c /gnome-extra | |
parent | Fix deprecation warnings. (diff) | |
download | gentoo-2-5db2c1f0a3707bd04984d2ac63c46795e41f4c47.tar.gz gentoo-2-5db2c1f0a3707bd04984d2ac63c46795e41f4c47.tar.bz2 gentoo-2-5db2c1f0a3707bd04984d2ac63c46795e41f4c47.zip |
Use Python 2 (bug #313453).
(Portage version: 2.2.0_alpha30_p2/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra')
-rw-r--r-- | gnome-extra/avant-window-navigator/ChangeLog | 6 | ||||
-rw-r--r-- | gnome-extra/avant-window-navigator/avant-window-navigator-0.3.2.1.ebuild | 27 |
2 files changed, 19 insertions, 14 deletions
diff --git a/gnome-extra/avant-window-navigator/ChangeLog b/gnome-extra/avant-window-navigator/ChangeLog index 05049aceab29..631f563ba5bb 100644 --- a/gnome-extra/avant-window-navigator/ChangeLog +++ b/gnome-extra/avant-window-navigator/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for gnome-extra/avant-window-navigator # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/avant-window-navigator/ChangeLog,v 1.27 2011/03/21 22:31:51 nirbheek Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/avant-window-navigator/ChangeLog,v 1.28 2011/04/25 20:43:46 arfrever Exp $ + + 25 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + avant-window-navigator-0.3.2.1.ebuild: + Use Python 2 (bug #313453). 21 Mar 2011; Nirbheek Chauhan <nirbheek@gentoo.org> avant-window-navigator-0.3.2.1.ebuild: diff --git a/gnome-extra/avant-window-navigator/avant-window-navigator-0.3.2.1.ebuild b/gnome-extra/avant-window-navigator/avant-window-navigator-0.3.2.1.ebuild index 14bf20f7acfc..0f3cbfc57d41 100644 --- a/gnome-extra/avant-window-navigator/avant-window-navigator-0.3.2.1.ebuild +++ b/gnome-extra/avant-window-navigator/avant-window-navigator-0.3.2.1.ebuild @@ -1,8 +1,10 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-extra/avant-window-navigator/avant-window-navigator-0.3.2.1.ebuild,v 1.8 2011/03/21 22:31:51 nirbheek Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-extra/avant-window-navigator/avant-window-navigator-0.3.2.1.ebuild,v 1.9 2011/04/25 20:43:46 arfrever Exp $ -EAPI=1 +EAPI=3 +PYTHON_DEPEND="2" +PYTHON_USE_WITH="xml" inherit gnome2 python @@ -17,10 +19,6 @@ KEYWORDS="~amd64 ~x86" IUSE="doc gnome thunar vala" RDEPEND=" - || ( - =dev-lang/python-2* - dev-python/elementtree - ) dev-libs/dbus-glib >=dev-libs/glib-2.16.0 dev-python/pycairo @@ -46,15 +44,20 @@ DEPEND="${RDEPEND} DOCS="AUTHORS ChangeLog NEWS README TODO" -src_unpack() { - gnome2_src_unpack +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + +src_prepare() { + gnome2_src_prepare # Disable pyc compiling. mv py-compile py-compile.orig ln -s $(type -P true) py-compile } -src_compile() { +src_configure() { local myconf if use gnome; then myconf="--with-desktop=gnome" @@ -70,8 +73,6 @@ src_compile() { VALAC=$(type -P valac-0.10) \ VALA_GEN_INTROSPECT=$(type -O vapigen-0.10) \ ${myconf} - - emake || die "emake failed" } pkg_postinst() { @@ -80,10 +81,10 @@ pkg_postinst() { ewarn ewarn "AWN will be of no use if you do not have a compositing manager." - python_mod_optimize $(python_get_sitedir)/awn + python_mod_optimize awn } pkg_postrm() { gnome2_pkg_postrm - python_mod_cleanup $(python_get_sitedir)/awn + python_mod_cleanup awn } |