diff options
author | Mike Gilbert <floppym@gentoo.org> | 2017-05-27 00:11:12 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2017-05-27 00:11:12 -0400 |
commit | 852b01ce41d232c574425bf45421249eac91ea69 (patch) | |
tree | 0966f9a476cf6c87d6ec52bbe851e657f00a6821 /dev-python/pycairo | |
parent | media-libs/libwebp: remove old (diff) | |
download | gentoo-852b01ce41d232c574425bf45421249eac91ea69.tar.gz gentoo-852b01ce41d232c574425bf45421249eac91ea69.tar.bz2 gentoo-852b01ce41d232c574425bf45421249eac91ea69.zip |
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
Diffstat (limited to 'dev-python/pycairo')
-rw-r--r-- | dev-python/pycairo/pycairo-1.13.1-r1.ebuild (renamed from dev-python/pycairo/pycairo-1.13.1.ebuild) | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-python/pycairo/pycairo-1.13.1.ebuild b/dev-python/pycairo/pycairo-1.13.1-r1.ebuild index 3686caad8774..30b7fc97e0c4 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} } |