dev-libs/libpeas: Obtain correct python-config path
authorMichał Górny <mgorny@gentoo.org>
Sun, 8 Nov 2015 08:44:45 +0000 (09:44 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 11 Nov 2015 10:21:51 +0000 (11:21 +0100)
Use new python_get_PYTHON_CONFIG API to obtain the correct path to
python-config executable. This forward-fixes compatibility with
ABIFLAGS-enabled Python 3.* versions, and improves readability.

dev-libs/libpeas/libpeas-1.12.1-r1.ebuild
dev-libs/libpeas/libpeas-1.14.0-r1.ebuild
dev-libs/libpeas/libpeas-1.14.0.ebuild

index 0ed2fe513b8c72d494f1b5efd9a9d67f0ff21ff3..96946d1fa85018aa8035f4c3bae9e9dd2d5e85b9 100644 (file)
@@ -55,7 +55,7 @@ src_configure() {
                        "--enable-python${v}"
                        # it is just 'PYTHON' for py3 in the build system
                        "PYTHON${v#3}=${PYTHON}"
-                       "PYTHON${v}_CONFIG=${PYTHON}-config"
+                       "PYTHON${v}_CONFIG=$(python_get_PYTHON_CONFIG)"
                )
        }
        use python && python_foreach_impl python_configure
index 3a1d0adbf0945a42776ac94b1a85760397f12155..35d29807398e186b98203de792cc65017f027c5a 100644 (file)
@@ -77,7 +77,7 @@ src_configure() {
                        "--enable-python${v}"
                        # it is just 'PYTHON' for py3 in the build system
                        "PYTHON${v#3}=${PYTHON}"
-                       "PYTHON${v}_CONFIG=${PYTHON}-config"
+                       "PYTHON${v}_CONFIG=$(python_get_PYTHON_CONFIG)"
                )
        }
        use python && python_foreach_impl python_configure
index fb6958dc91a03ad8a455a459486dce439b194078..57c26f7caa50b898c8239377e84b5c15269e8b10 100644 (file)
@@ -65,7 +65,7 @@ src_configure() {
                        "--enable-python${v}"
                        # it is just 'PYTHON' for py3 in the build system
                        "PYTHON${v#3}=${PYTHON}"
-                       "PYTHON${v}_CONFIG=${PYTHON}-config"
+                       "PYTHON${v}_CONFIG=$(python_get_PYTHON_CONFIG)"
                )
        }
        use python && python_foreach_impl python_configure