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
This commit is contained in:
Mike Gilbert
2017-05-27 00:11:12 -04:00
parent 3b4443662f
commit 852b01ce41

View File

@@ -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}
}