Works around broken build system.
Bug: https://bugs.gentoo.org/567370
Package-Manager: portage-2.2.27_p49
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
BUILD_DIR="${S}_build"
-src_prepare() {
- sed -i -e 's/AC_PYTHON_DEVEL/AX_PYTHON_DEVEL/' "${S}"/m4/cython_python.m4
- eautoreconf
-}
-
src_configure() {
local ECONF_SOURCE=${S}
local myeconfargs=( $(use_enable static-libs static) )
popd >/dev/null || die
}
+ do_configure_python() {
+ PYTHON_LDFLAGS="$(python_get_LIBS)" do_configure "$@"
+ }
+
do_configure --without-cython
- use python && python_foreach_impl do_configure
+ use python && python_foreach_impl do_configure_python
}
src_compile() {
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
BUILD_DIR="${S}_build"
-src_prepare() {
- sed -i -e 's/AC_PYTHON_DEVEL/AX_PYTHON_DEVEL/' "${S}"/m4/cython_python.m4
- eautoreconf
-}
-
src_configure() {
local ECONF_SOURCE=${S}
local myeconfargs=( $(use_enable static-libs static) )
popd >/dev/null || die
}
+ do_configure_python() {
+ PYTHON_LDFLAGS="$(python_get_LIBS)" do_configure "$@"
+ }
+
do_configure --without-cython
- use python && python_foreach_impl do_configure
+ use python && python_foreach_impl do_configure_python
}
src_compile() {