dev-libs/libwacom-surface - 2.20.0 (gentoo-linux-surface-overlay)

Search

Install

Install this version:

emerge -a =dev-libs/libwacom-surface-2.20.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/libwacom-surface-2.20.0

Or alternatively:

emerge --autounmask-write -a =dev-libs/libwacom-surface-2.20.0

Package Information

Description:
Wacom tablet library with linux-surface patches for Microsoft Surface
Homepage:
https://github.com/linux-surface/libwacom-surface https://github.com/linuxwacom/libwacom
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2.20.0 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )
inherit meson python-any-r1 udev

# linux-surface patch-set revision applied on top of upstream libwacom
SURFACE_REV="1"
SURFACE_P="libwacom-surface-${PV}-${SURFACE_REV}"

DESCRIPTION="Wacom tablet library with linux-surface patches for Microsoft Surface"
HOMEPAGE="
	https://github.com/linux-surface/libwacom-surface
	https://github.com/linuxwacom/libwacom
"
SRC_URI="
	https://github.com/linuxwacom/libwacom/releases/download/libwacom-${PV}/libwacom-${PV}.tar.xz
	https://github.com/linux-surface/libwacom-surface/archive/refs/tags/v${PV}-${SURFACE_REV}.tar.gz -> ${SURFACE_P}.tar.gz
"
S="${WORKDIR}/libwacom-${PV}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc test"
RESTRICT="!test? ( test )"

RDEPEND="
	>=dev-libs/glib-2.68:2
	dev-libs/libevdev
	dev-libs/libgudev:=
	!dev-libs/libwacom
"
DEPEND="${RDEPEND}"
BDEPEND="
	${PYTHON_DEPS}
	virtual/pkgconfig
	doc? ( app-text/doxygen )
	test? (
		$(python_gen_any_dep '
			dev-python/libevdev[${PYTHON_USEDEP}]
			dev-python/pyudev[${PYTHON_USEDEP}]
			dev-python/pytest[${PYTHON_USEDEP}]
		')
	)
"

python_check_deps() {
	use test || return 0
	python_has_version \
		"dev-python/libevdev[${PYTHON_USEDEP}]" \
		"dev-python/pyudev[${PYTHON_USEDEP}]" \
		"dev-python/pytest[${PYTHON_USEDEP}]"
}

src_prepare() {
	local patch
	for patch in "${WORKDIR}/${SURFACE_P}"/patches/v2/*.patch; do
		eapply "${patch}"
	done
	default
}

src_configure() {
	local emesonargs=(
		$(meson_feature doc documentation)
		$(meson_feature test tests)
		-Dudev-dir="$(get_udevdir)"
	)
	meson_src_configure
}

pkg_postinst() {
	udev_reload
}

pkg_postrm() {
	udev_reload
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/libwacom-surface | euse -E <flag> -p dev-libs/libwacom-surface | euse -D <flag> -p dev-libs/libwacom-surface

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

	>=dev-libs/glib-2.68:2
	dev-libs/libevdev
	dev-libs/libgudev:=
	!dev-libs/libwacom

RDEPEND

	>=dev-libs/glib-2.68:2
	dev-libs/libevdev
	dev-libs/libgudev:=
	!dev-libs/libwacom

BDEPEND

	${PYTHON_DEPS}
	virtual/pkgconfig
	doc? ( app-text/doxygen )
	test? (
		$(python_gen_any_dep '
			dev-python/libevdev[${PYTHON_USEDEP}]
			dev-python/pyudev[${PYTHON_USEDEP}]
			dev-python/pytest[${PYTHON_USEDEP}]
		')
	)

Manifest for 2.20.0

Type File Size Source URLs
DIST libwacom-2.20.0.tar.xz 186424 bytes https://github.com/linuxwacom/libwacom/releases/download/libwacom-2.20.0/libwacom-2.20.0.tar.xz
DIST libwacom-surface-2.20.0-1.tar.gz 16673 bytes https://github.com/linux-surface/libwacom-surface/archive/refs/tags/v2.20.0-1.tar.gz