dev-python/python-evdev: specify header locations, EAPI 7
authorBrian Norris <briannorris@chromium.org>
Wed, 26 Sep 2018 22:59:20 +0000 (15:59 -0700)
committerMichał Górny <mgorny@gentoo.org>
Wed, 3 Oct 2018 10:00:46 +0000 (12:00 +0200)
commit898c59b8f44218f5d42ed8c696fe424fcb424988
tree4a22ce8813348ae9d4bee2d179ced3af9e91e595
parentbfcbb1335686e9fc08547d217c4e5e642da0150c
dev-python/python-evdev: specify header locations, EAPI 7

setup.py hardcodes /usr/include/linux/... paths. This doesn't work if
cross-compiling or otherwise using a different $ROOT with a different
set of headers, as the setup stage might pick up one set of headers,
while the compilation might pick up another.

Fortunately, setup.py supports an --evdev-headers arg so we can fix
this. Let's use it.

At the same time, bump to EAPI 7 to support ${SYSROOT}.

Tested with pytest -- 1 existing test_uinput.py (test_abs_values())
failed before and after this change.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/9978
dev-python/python-evdev/python-evdev-0.7.0-r1.ebuild [moved from dev-python/python-evdev/python-evdev-0.7.0.ebuild with 71% similarity]