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: pgp6V2Hb97pu1.pgp
Description: PGP signature

Reply via email to