commit: 852b01ce41d232c574425bf45421249eac91ea69
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat May 27 04:11:12 2017 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat May 27 04:11:12 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=852b01ce
dev-python/pycairo: replace "lib" with correct libdir
This path is used to install the pkgconfig file(s). If the files are
installed in the wrong libdir, pkg-config in pygobject will fail to
find them.
Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69
.../pycairo/{pycairo-1.13.1.ebuild => pycairo-1.13.1-r1.ebuild} | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dev-python/pycairo/pycairo-1.13.1.ebuild
b/dev-python/pycairo/pycairo-1.13.1-r1.ebuild
similarity index 86%
rename from dev-python/pycairo/pycairo-1.13.1.ebuild
rename to dev-python/pycairo/pycairo-1.13.1-r1.ebuild
index 3686caad877..30b7fc97e0c 100644
--- a/dev-python/pycairo/pycairo-1.13.1.ebuild
+++ b/dev-python/pycairo/pycairo-1.13.1-r1.ebuild
@@ -27,9 +27,15 @@ DEPEND="${RDEPEND}
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
"
+python_prepare_all() {
+ # Fix pkgconfig path
+ sed -i -e "/libdir =/s:\"lib\":\"$(get_libdir)\":" setup.py || die
+ distutils-r1_python_prepare_all
+}
+
python_compile() {
local enable_xpyb
- [[ ${EPYTHON} == python2* ]] && enable_xpyb=$(usex xcb "--enable-xpyb"
"")
+ python_is_python3 || enable_xpyb=$(usex xcb "--enable-xpyb" "")
esetup.py build ${enable_xpyb}
}