x11-drivers/evdi: add 1.14.13, update LICENSE to LGPL v2.1-or-later

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander
2026-01-27 17:18:13 +01:00
parent 62e27f6c9d
commit 7ffd1c70f6
3 changed files with 100 additions and 1 deletions

View File

@@ -1 +1,2 @@
DIST evdi-1.14.12.tar.gz 97369 BLAKE2B 096220d88306c17e29f5d65593e3c291d577fd0318df4b8a8c0f0461c2e5c44609ba0baf4f4ce7d7de9b5232072ff7ef25b2e46e266727dc9a69b4c40d94bda3 SHA512 7d4b078e22bc2d31f8db8f5fc71218d17c72d12359a208ef1d7afbe4356d41e4ef7abbfbd774501f66c92a0a6a6139ad57e96c10a0c6d8ec83f2a0ebd9bacf5d
DIST evdi-1.14.13.tar.gz 97875 BLAKE2B e80eacd284355d96d28b99e928d22b6bb36ff3d49963dd4736ce56ff1e97d949fbb3b04bde6d3e0c5750fbab54c4985c85c74da183a385768821343f3aa7ee60 SHA512 13990b72114703a29fac61e4f8164f372f85d8ef3d32a0c5326121bb0e51ab4cbc8860c03807ac4704b9ddcf1bb381bd05783de288537e9c8eb61a18bbc29b2e

View File

@@ -0,0 +1,98 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
inherit linux-mod-r1 python-single-r1 flag-o-matic
DESCRIPTION="Extensible Virtual Display Interface"
HOMEPAGE="https://github.com/DisplayLink/evdi"
if [[ "${PV}" = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/DisplayLink/evdi.git"
else
if [[ "${PV}" = *_p* ]] ; then
EVDI_COMMIT="5d708d117baab842d6960f0ec61808a1541bda57"
SRC_URI="https://github.com/DisplayLink/evdi/archive/${EVDI_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${EVDI_COMMIT}"
else
SRC_URI="https://github.com/DisplayLink/evdi/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
fi
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
LICENSE="GPL-2 LGPL-2.1+"
SLOT="0/$(ver_cut 1)"
IUSE="python test"
RDEPEND="${PYTHON_DEPS}
python? (
$(python_gen_cond_dep '
dev-python/pybind11[${PYTHON_USEDEP}]
test? (
dev-python/pytest-mock[${PYTHON_USEDEP}]
)
')
)
"
DEPEND="${RDEPEND}
x11-libs/libdrm
sys-kernel/linux-headers
"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/${PN}-1.14.4-format-truncation.patch"
)
pkg_setup() {
# module/Kconfig
local CONFIG_CHECK="~FB_VIRTUAL ~I2C ~DRM ~USB_SUPPORT ~USB_ARCH_HAS_HCD MODULES"
linux-mod-r1_pkg_setup
use python && python-single-r1_pkg_setup
}
src_compile() {
# TODO ERROR: modpost: missing MODULE_LICENSE() in evdi.o
filter-lto
local modlist=(
"evdi=video:module"
)
local modargs=(
CONFIG_DRM_EVDI="m" # https://github.com/DisplayLink/evdi/issues/476
KVER="${KV_FULL}"
KDIR="${KV_OUT_DIR}"
)
linux-mod-r1_src_compile
emake -C library
use python && emake -C pyevdi
}
src_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
use python && emake -C pyevdi tests
}
src_install() {
linux-mod-r1_src_install
local -x DESTDIR="${ED}" PREFIX="${EPREFIX}"
LIBDIR="/usr/$(get_libdir)" emake -C library install
use python && emake -C pyevdi install
}

View File

@@ -24,7 +24,7 @@ else
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
LICENSE="GPL-2 LGPL-2.1"
LICENSE="GPL-2 LGPL-2.1+"
SLOT="0/$(ver_cut 1)"
IUSE="python test"