Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ali Polatel <hawking@g.o>
Subject: Re: [RFC] Eclass for gnome-python* split
Date: Sat, 24 May 2008 10:18:05 +0300
Arun Raghavan yazmış:
> Greetings All,

Hey there

> I've been working on an ancient bug [1] requesting a split of the
> gnome-python, gnome-python-extras, and gnome-python-desktop ebuilds.

Good for you :P

*snip*
> 
> Feedback and comments (and even brickbats ;)) on the eclass are invited.
> 

Attached is a patch for two minor issues with the eclass. First try to
remove py-compile only if it exists. Second, python_mod_optimize is
ROOT aware (since recently).

> Cheers!
> -- 
> Arun Raghavan
> (http://nemesis.accosted.net)
> v2sw5Chw4+5ln4pr6$OFck2ma4+9u8w3+1!m?l7+9GSCKi056
> e6+9i4b8/9HTAen4+5g4/8APa2Xs8r1/2p5-8 hackerkey.com

-- 
Regards,
Ali Polatel
diff --git a/eclass/gnome-python-common.eclass b/eclass/gnome-python-common.eclass
index f938f98..9169496 100644
--- a/eclass/gnome-python-common.eclass
+++ b/eclass/gnome-python-common.eclass
@@ -85,8 +85,10 @@ gnome-python-common_src_unpack() {
 	done
 
 	# disable pyc compiling
-	rm py-compile
-	ln -s $(type -P true) py-compile
+	if [[ -f py-compile ]]; then
+		rm py-compile
+		ln -s $(type -P true) py-compile
+	fi
 
 	[[ ${do_eautoreconf} -eq 1 ]] && eautoreconf
 }
@@ -121,7 +123,7 @@ gnome-python-common_src_install() {
 
 gnome-python-common_pkg_postinst() {
 	python_version
-	python_mod_optimize "${ROOT}/usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0"
+	python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0
 }
 
 gnome-python-common_pkg_postrm() {
Attachment:
pgpyTNV9FsEm9.pgp (PGP signature)
Replies:
Re: Re: [RFC] Eclass for gnome-python* split
-- Mart Raudsepp
Re: Re: [RFC] Eclass for gnome-python* split
-- Arun Raghavan
References:
[RFC] Eclass for gnome-python* split
-- Arun Raghavan
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[RFC] Eclass for gnome-python* split
Next by thread:
Re: Re: [RFC] Eclass for gnome-python* split
Previous by date:
[RFC] Eclass for gnome-python* split
Next by date:
Re: Re: [RFC] Eclass for gnome-python* split


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.