The patch for gnome-python-common.eclass adds support for installation for multiple Python ABIs, adds support for EAPI >=2 (all ebuilds in gentoo-x86 using this eclass currently use EAPI 0 or 1) and removes deprecation warnings.
Created attachment 223185 [details, diff] gnome-python-common.eclass.patch
Created attachment 223419 [details, diff] Updated gnome-python-common.eclass.patch
(In reply to comment #2) > Created an attachment (id=223419) [details] > Updated gnome-python-common.eclass.patch > Committed to GNOME overlay.
*** Bug 319117 has been marked as a duplicate of this bug. ***
*** Bug 319079 has been marked as a duplicate of this bug. ***
*** Bug 319081 has been marked as a duplicate of this bug. ***
*** Bug 320453 has been marked as a duplicate of this bug. ***
*** Bug 320451 has been marked as a duplicate of this bug. ***
*** Bug 320455 has been marked as a duplicate of this bug. ***
*** Bug 320883 has been marked as a duplicate of this bug. ***
*** Bug 321305 has been marked as a duplicate of this bug. ***
Created attachment 233119 [details, diff] Updated gnome-python-common.eclass.patch wrt. #309041 Here is an updated patch according to your comments in #309041.
Please export pkg_postinst() and pkg_postrm() also in EAPI >=2. They are currently exported in all EAPIs, but this patch causes exporting of them only in EAPI <2. I suggest to call python_pkg_setup() in gnome-python-common_pkg_setup() for compatibility with planned changes in python.eclass in EAPI >=4.
Created attachment 233133 [details, diff] Updated eclass per comment #13 > Please export pkg_postinst() and pkg_postrm() also in EAPI >=2. They are > currently exported in all EAPIs, but this patch causes exporting of them only > in EAPI <2. oops, fixed > I suggest to call python_pkg_setup() in gnome-python-common_pkg_setup() for > compatibility with planned changes in python.eclass in EAPI >=4. done
To improve readability, I suggest to pass phase names to EXPORT_FUNCTIONS() in the order, in which given phases are executed, i.e. src_prepare before src_configure :) . All other changes look good.
Ok, I'll do this with the copyright/inherit changes you did in your patch before commiting.
Changes to the eclass have been commited. Please reopen if anything is still wrong. Thanks for your contributions.
*** Bug 326873 has been marked as a duplicate of this bug. ***