dev-libs/libxml2: Ensure using correct Python sitedir
authorMichał Górny <mgorny@gentoo.org>
Sat, 7 Dec 2019 19:52:39 +0000 (20:52 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 7 Dec 2019 20:31:29 +0000 (21:31 +0100)
Closes: https://bugs.gentoo.org/702016
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-libs/libxml2/libxml2-2.9.9-r2.ebuild [moved from dev-libs/libxml2/libxml2-2.9.9-r1.ebuild with 97% similarity]

similarity index 97%
rename from dev-libs/libxml2/libxml2-2.9.9-r1.ebuild
rename to dev-libs/libxml2/libxml2-2.9.9-r2.ebuild
index 64d73e237ca9f1ae342718208bc60384893cf090..3ddadc82e9e2496d02350dce6fc8d4ac7104e766 100644 (file)
@@ -134,7 +134,10 @@ multilib_src_configure() {
 
        libxml2_py_configure() {
                mkdir -p "${BUILD_DIR}" || die # ensure python build dirs exist
-               run_in_build_dir libxml2_configure "--with-python=${ROOT%/}${PYTHON}" # odd build system, also see bug #582130
+               run_in_build_dir libxml2_configure \
+                       "--with-python=${EPYTHON}" \
+                       "--with-python-install-dir=$(python_get_sitedir)"
+                       # odd build system, also see bug #582130
        }
 
        libxml2_configure --without-python # build python bindings separately