summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2008-02-17 23:35:40 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2008-02-17 23:35:40 +0000
commitbd62a69d55c9a6ce086696f61e1e6d8aaf0d0bb8 (patch)
tree02f5f3aa5e46b0397970e9565f108a6e10fb866a /gnome-extra/avant-window-navigator
parentfix python eclass use, bug #207667 (diff)
downloadgentoo-2-bd62a69d55c9a6ce086696f61e1e6d8aaf0d0bb8.tar.gz
gentoo-2-bd62a69d55c9a6ce086696f61e1e6d8aaf0d0bb8.tar.bz2
gentoo-2-bd62a69d55c9a6ce086696f61e1e6d8aaf0d0bb8.zip
fix python eclass use, bug #207667
(Portage version: 2.1.4.4)
Diffstat (limited to 'gnome-extra/avant-window-navigator')
-rw-r--r--gnome-extra/avant-window-navigator/ChangeLog8
-rw-r--r--gnome-extra/avant-window-navigator/avant-window-navigator-0.2.1-r1.ebuild27
2 files changed, 30 insertions, 5 deletions
diff --git a/gnome-extra/avant-window-navigator/ChangeLog b/gnome-extra/avant-window-navigator/ChangeLog
index acc33ebeb376..fe66c6d404ec 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-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/gnome-extra/avant-window-navigator/ChangeLog,v 1.2 2007/11/10 16:27:27 wltjr Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/avant-window-navigator/ChangeLog,v 1.3 2008/02/17 23:35:40 eva Exp $
+
+ 17 Feb 2008; Gilles Dartiguelongue <eva@gentoo.org>
+ avant-window-navigator-0.2.1-r1.ebuild:
+ fix python eclass use, bug #207667
*avant-window-navigator-0.2.1-r1 (10 Nov 2007)
diff --git a/gnome-extra/avant-window-navigator/avant-window-navigator-0.2.1-r1.ebuild b/gnome-extra/avant-window-navigator/avant-window-navigator-0.2.1-r1.ebuild
index 14b0ad8ed670..ad5b4eabe6e5 100644
--- a/gnome-extra/avant-window-navigator/avant-window-navigator-0.2.1-r1.ebuild
+++ b/gnome-extra/avant-window-navigator/avant-window-navigator-0.2.1-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 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.2.1-r1.ebuild,v 1.1 2007/11/10 16:27:27 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/avant-window-navigator/avant-window-navigator-0.2.1-r1.ebuild,v 1.2 2008/02/17 23:35:40 eva Exp $
-inherit gnome2
+inherit gnome2 python
DESCRIPTION="Fully customisable dock-like window navigator for GNOME."
HOMEPAGE="http://launchpad.net/awn"
@@ -18,3 +18,24 @@ DEPEND=">=dev-libs/glib-2.8
gnome-extra/gconf-editor
x11-libs/libwnck"
RDEPEND="${DEPEND}"
+
+src_unpack() {
+ gnome2_src_unpack
+
+ # disable pyc compiling
+ mv py-compile py-compile.orig
+ ln -s $(type -P true) py-compile
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ python_version
+ python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/awn
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+ python_version
+ python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/awn
+}
+