Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 634864
Collapse All | Expand All

(-)file_not_specified_in_diff (-21 / +22 lines)
Line  Link Here
0
-- libinput-1.8.3.ebuild
0
++ libinput-1.9.0.ebuild
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=6
4
EAPI=6
5
inherit udev
5
inherit meson udev
6
6
7
DESCRIPTION="Library to handle input devices in Wayland"
7
DESCRIPTION="Library to handle input devices in Wayland"
8
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/"
8
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/"
Lines 11-17 Link Here
11
LICENSE="MIT"
11
LICENSE="MIT"
12
SLOT="0/10"
12
SLOT="0/10"
13
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
13
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
14
IUSE="input_devices_wacom test"
14
IUSE="doc input_devices_wacom test"
15
# Tests require write access to udev rules directory which is a no-no for live system.
15
# Tests require write access to udev rules directory which is a no-no for live system.
16
# Other tests are just about logs, exported symbols and autotest of the test library.
16
# Other tests are just about logs, exported symbols and autotest of the test library.
17
RESTRICT="test"
17
RESTRICT="test"
Lines 23-55 Link Here
23
	virtual/libudev
23
	virtual/libudev
24
"
24
"
25
DEPEND="${RDEPEND}
25
DEPEND="${RDEPEND}
26
	virtual/pkgconfig"
26
	virtual/pkgconfig
27
	doc? (
28
		>=app-doc/doxygen-1.8.3
29
		>=media-gfx/graphviz-2.38.0
30
	)
31
"
27
#	test? (
32
#	test? (
28
#		>=dev-libs/check-0.9.10
33
#		>=dev-libs/check-0.9.10
29
#		dev-util/valgrind
34
#		dev-util/valgrind
30
#		sys-libs/libunwind )
35
#		sys-libs/libunwind )
31
36
32
src_prepare() {
33
	default
34
	# Doc handling in kinda strange but everything
35
	# is available in the tarball already.
36
	sed -e 's/^\(SUBDIRS =.*\)doc\(.*\)$/\1\2/' \
37
		-i Makefile.am Makefile.in || die
38
}
39
40
src_configure() {
37
src_configure() {
41
	# gui can be built but will not be installed
38
	# gui can be built but will not be installed
42
	# building documentation silently fails with graphviz syntax errors
39
	local emesonargs=(
43
	econf \
40
		-Ddebug-gui=false
44
		--disable-debug-gui \
41
		-Ddocumentation="$(usex doc true false)"
45
		--disable-documentation \
42
		-Dlibwacom="$(usex input_devices_wacom true false)"
46
		$(use_enable input_devices_wacom libwacom) \
43
		-Dtests="$(usex test true false)"
47
		$(use_enable test tests) \
44
		-Dudev-dir="$(get_udevdir)"
48
		--with-udev-dir="$(get_udevdir)"
45
	)
46
	meson_src_configure
49
}
47
}
50
48
51
src_install() {
49
src_install() {
52
	emake install DESTDIR="${D}"
50
	meson_src_install
53
	dodoc -r doc/html
51
	if use doc ; then
52
		docinto html
53
		dodoc -r ${BUILD_DIR}/html/.
54
	fi
54
	find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
55
	find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
55
}
56
}

Return to bug 634864