1 # Copyright 2014-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
7 inherit meson python-any-r1 udev
9 DESCRIPTION="Library to handle input devices in Wayland"
10 HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/ https://gitlab.freedesktop.org/libinput/libinput"
11 SRC_URI="https://www.freedesktop.org/software/${PN}/${P}.tar.xz"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16 IUSE="doc input_devices_wacom"
17 # Tests require write access to udev rules directory which is a no-no for live system.
18 # Other tests are just about logs, exported symbols and autotest of the test library.
24 $(python_gen_any_dep '
25 dev-python/commonmark[${PYTHON_USEDEP}]
26 dev-python/recommonmark[${PYTHON_USEDEP}]
27 dev-python/sphinx[${PYTHON_USEDEP}]
28 >=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]
30 >=app-doc/doxygen-1.8.3
31 >=media-gfx/graphviz-2.38.0
34 # test? ( dev-util/valgrind )
36 input_devices_wacom? ( >=dev-libs/libwacom-0.20 )
37 >=dev-libs/libevdev-1.3
43 # test? ( >=dev-libs/check-0.9.10 )
46 has_version "dev-python/commonmark[${PYTHON_USEDEP}]" && \
47 has_version "dev-python/recommonmark[${PYTHON_USEDEP}]" && \
48 has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \
49 has_version ">=dev-python/sphinx_rtd_theme-0.2.4[${PYTHON_USEDEP}]"
53 use doc && python-any-r1_pkg_setup
57 # gui can be built but will not be installed
60 $(meson_use doc documentation)
61 $(meson_use input_devices_wacom libwacom)
62 -Dtests=false # tests are restricted
63 -Dudev-dir="$(get_udevdir)"
72 dodoc -r "${BUILD_DIR}"/Documentation/.
77 udevadm hwdb --update --root="${ROOT%/}"