--- /dev/null
+--- a/setup.py
++++ b/setup.py
+@@ -50,7 +50,8 @@
+ '*Visual*', 'VC', 'include')
+ err = glob.glob(globmask)
+ else:
+- pid = subprocess.Popen(['cpp', '-Wp,-v', '-'],
++ pid = subprocess.Popen(os.environ.get('CPP', 'cpp').split() +
++ ['-Wp,-v', '-'],
+ stdin=open(os.devnull, 'r'),
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
libressl? ( dev-libs/libressl:0= )
virtual/python-typing[${PYTHON_USEDEP}]
"
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
>=dev-lang/swig-2.0.9
dev-python/setuptools[${PYTHON_USEDEP}]
"
PATCHES=(
"${FILESDIR}/${PN}-libressl-${PV}.patch"
+ "${FILESDIR}/${PN}-crossdev-${PV}.patch"
)
python_compile() {
# setup.py looks at platform.machine() to determine swig options.
# For exotic ABIs, we need to give swig a hint.
# https://bugs.gentoo.org/617946
- # TODO: Fix cross-compiles
local -x SWIG_FEATURES=
case ${ABI} in
x32) SWIG_FEATURES="-D__ILP32__" ;;
esac
- distutils-r1_python_compile --openssl="${EPREFIX}"/usr
+ distutils-r1_python_compile --openssl="${ESYSROOT}"/usr
}
python_test() {