dev-libs/btparser: Use eclass functions to obtain build variables
authorJustin Lecher <jlec@gentoo.org>
Thu, 12 Nov 2015 07:55:51 +0000 (08:55 +0100)
committerJustin Lecher <jlec@gentoo.org>
Thu, 12 Nov 2015 08:56:45 +0000 (09:56 +0100)
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-libs/btparser/btparser-0.24.ebuild
dev-libs/btparser/btparser-0.25.ebuild

index 2a1092cfdaafb71a97f278e5fcc897ca56be3271..3530f12e2c2f40f14dad29e453423804fa6c5547 100644 (file)
@@ -24,10 +24,8 @@ DEPEND="${RDEPEND}
        app-arch/xz-utils"
 
 src_configure() {
-       # Configure checks for python.pc; our python-2.7 installs python-2.7.pc,
-       # while python-2.6 does not install any pkgconfig file.
-       export PYTHON_CFLAGS=$(python-config --includes)
-       export PYTHON_LIBS=$(python-config --libs)
+       export PYTHON_CFLAGS=$(python_get_CFLAGS)
+       export PYTHON_LIBS=$(python_get_LIBS)
 
        econf \
                $(use_enable static-libs static) \
index dfa18666437121504a0791b445534ec605f07639..3a2cbf7f1d45a84a6850f0e682801a5efefc3165 100644 (file)
@@ -34,10 +34,8 @@ src_prepare() {
 }
 
 src_configure() {
-       # Configure checks for python.pc; our python-2.7 installs python-2.7.pc,
-       # while python-2.6 does not install any pkgconfig file.
-       export PYTHON_CFLAGS=$(python-config --includes)
-       export PYTHON_LIBS=$(python-config --libs)
+       export PYTHON_CFLAGS=$(python_get_CFLAGS)
+       export PYTHON_LIBS=$(python_get_LIBS)
 
        gnome2_src_configure \
                $(use_enable static-libs static)