$ portageq metadata / ebuild sys-process/criu-1.8 DEPEND RDEPEND dev-libs/protobuf-c setproctitle? ( dev-libs/libbsd ) app-text/asciidoc app-text/xmlto dev-libs/protobuf-c setproctitle? ( dev-libs/libbsd ) $ equery files criu | grep python /usr/lib64/python2.7 /usr/lib64/python2.7/site-packages /usr/lib64/python2.7/site-packages/crit-0.0.1-py2.7.egg-info /usr/lib64/python2.7/site-packages/pycriu /usr/lib64/python2.7/site-packages/pycriu/__init__.py /usr/lib64/python2.7/site-packages/pycriu/criu.py /usr/lib64/python2.7/site-packages/pycriu/images etc. not sure how to properly add python support ebuild-wise for this one, so CC'ing python herd
The makefile under lib shouldn't install the python stuff (lib-py target) and the python_domodule() should be used to install the module instead. As dep you need PYTHON_DEPS. Perhaps everything should be covert by USE=python.
commit 5fcb6dedbe1b7a139ff1951f9964baaebb2ba3ef Author: Alexis Ballier <aballier@gentoo.org> Date: Tue Mar 15 16:01:08 2016 +0100 sys-process/criu: Add python useflag and fix build with LDFLAGS not matching default. Adapt makefile patch to use RAW_LDFLAGS for ld which we feed from ebuild. Patch makefile to allow disabling python and make it optional with proper deps, bug #576716. not exactly what you said but should convey the same idea, thanks!