Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 226781 Details for
Bug 309041
Packages using gnome-python-common.eclass: Support installation for multiple Python ABIs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gnome-python-common.eclass.patch
gnome-python-common.eclass.patch (text/plain), 2.95 KB, created by
Gilles Dartiguelongue (RETIRED)
on 2010-04-06 22:27:41 UTC
(
hide
)
Description:
gnome-python-common.eclass.patch
Filename:
MIME Type:
Creator:
Gilles Dartiguelongue (RETIRED)
Created:
2010-04-06 22:27:41 UTC
Size:
2.95 KB
patch
obsolete
>Index: gnome-python-common.eclass >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/eclass/gnome-python-common.eclass,v >retrieving revision 1.9 >diff -u -B -r1.9 gnome-python-common.eclass >--- gnome-python-common.eclass 9 Feb 2010 10:06:36 -0000 1.9 >+++ gnome-python-common.eclass 6 Apr 2010 22:23:30 -0000 >@@ -25,8 +25,21 @@ > # So, for example, with the bonobo bindings, the original package is libbonobo > # and the packages is named dev-python/libbonobo-python > >+SUPPORT_PYTHON_ABIS="1" >+PYTHON_DEPEND="2" >+RESTRICT_PYTHON_ABIS="3.*" >+ > inherit versionator python autotools gnome2 > >+case "${EAPI:-0}" in >+ 0|1) >+ EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst pkg_postrm >+ ;; >+ *) >+ EXPORT_FUNCTIONS pkg_setup src_unpack src_configure src_prepare src_compile src_install >+ ;; >+esac >+ > G_PY_PN=${G_PY_PN:-gnome-python} > G_PY_BINDINGS=${G_PY_BINDINGS:-${PN%-python}} > >@@ -65,11 +78,36 @@ > gnome-python-common_src_unpack() { > gnome2_src_unpack > >+ has ${EAPI:-0} 0 1 && gnome-python-common_src_prepare >+} >+ >+gnome-python-common_src_prepare() { >+ gnome2_src_prepare >+ > # disable pyc compiling > if [[ -f py-compile ]]; then > rm py-compile > ln -s $(type -P true) py-compile > fi >+ >+ # The .pc file is installed by respective gnome-python*-base package >+ sed -i '/^pkgconfig_DATA/d' Makefile.in || die "sed failed" >+ sed -i '/^pkgconfigdir/d' Makefile.in || die "sed failed" >+ >+ python_copy_sources >+} >+ >+gnome-python-common_src_configure() { >+ python_execute_function -s gnome2_src_configure "$@" >+} >+ >+gnome-python-common_src_compile() { >+ has ${EAPI:-0} 0 1 && gnome-python-common_src_configure "$@" >+ python_src_compile "$@" >+} >+ >+gnome-python-common_src_test() { >+ python_src_test "$@" > } > > # Do a regular gnome2 src_install and then install examples if required. >@@ -77,11 +115,8 @@ > # (to install a directory recursively, specify it with a trailing '/' - for > # example, foo/bar/) > gnome-python-common_src_install() { >- # The .pc file is installed by respective gnome-python*-base package >- sed -i '/^pkgconfig_DATA/d' Makefile || die "sed failed" >- sed -i '/^pkgconfigdir/d' Makefile || die "sed failed" >- >- gnome2_src_install >+ python_execute_function -s gnome2_src_install "$@" >+ python_clean_sitedirs > > if hasq examples ${IUSE} && use examples; then > insinto /usr/share/doc/${PF}/examples >@@ -96,9 +131,8 @@ > fi > > # Python does not need these, bug #299243 >- find "${D%/}${EPREFIX}$(python_get_sitedir)" -name "*.la" -delete \ >+ find "${D%/}${EPREFIX}" -name "*.la" -delete \ > || die "failed to remove la files" >- > } > > gnome-python-common_pkg_postinst() { >@@ -102,13 +136,9 @@ > } > > gnome-python-common_pkg_postinst() { >- python_version >- python_need_rebuild >- python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0 >+ python_mod_optimize gtk-2.0 > } > > gnome-python-common_pkg_postrm() { > python_mod_cleanup > } >- >-EXPORT_FUNCTIONS pkg_setup src_unpack src_install pkg_postinst pkg_postrm
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 309041
:
223187
|
223189
| 226781