1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_6,3_7} )
8 inherit multilib-minimal python-any-r1
10 DESCRIPTION="Handler library for evdev events"
11 HOMEPAGE="https://www.freedesktop.org/wiki/Software/libevdev/ https://gitlab.freedesktop.org/libevdev/libevdev"
13 if [[ ${PV} == 9999* ]] ; then
14 EGIT_REPO_URI="https://gitlab.freedesktop.org/libevdev/libevdev.git"
15 inherit autotools git-r3
17 SRC_URI="https://www.freedesktop.org/software/libevdev/${P}.tar.xz"
18 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86"
23 IUSE="doc static-libs"
27 doc? ( app-doc/doxygen )
30 RESTRICT="test" # Tests need to run as root.
34 [[ ${PV} == 9999* ]] && eautoreconf
37 multilib_src_configure() {
38 ECONF_SOURCE="${S}" econf $(use_enable static-libs static)
41 multilib_src_install() {
43 find "${D}" -name '*.la' -delete || die
45 local HTML_DOCS=( doc/html/. )