src_prepare() {
default
+ # make sure lib search dir points to the main `S` dir and not to python copies
+ sed -i "s|-L[^ ]*/src/\.libs|-L${S}/src/.libs|" \
+ -- 'bindings/python/link_flags.in' || die
+
# needed or else eautoreconf fails
mkdir build-aux && cp {m4,build-aux}/config.rpath || die
default
python_compile() {
- cd "${BUILD_DIR}/../bindings/python" || return 1
+ cd "${BUILD_DIR}/../bindings/python" || die
distutils-r1_python_compile
}
use python && distutils-r1_src_compile
default
python_install() {
- cd "${BUILD_DIR}/../bindings/python" || return 1
+ cd "${BUILD_DIR}/../bindings/python" || die
distutils-r1_python_install
}
use python && distutils-r1_src_install