mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 10:38:07 -07:00
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:
@@ -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}
|
||||
}
|
||||
Reference in New Issue
Block a user