aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Zander <negril.nx+gentoo@gmail.com>2024-11-21 17:18:56 +0100
committerPaul Zander <negril.nx+gentoo@gmail.com>2024-11-21 17:18:56 +0100
commitb532a02aa103744c35952c952200791b61e76798 (patch)
tree3de006717dbf16f42e0ebe255062db6f6e1926c3 /x11-drivers
parent*/*: drop inactive maintainer (diff)
downloadguru-b532a02aa103744c35952c952200791b61e76798.tar.gz
guru-b532a02aa103744c35952c952200791b61e76798.tar.bz2
guru-b532a02aa103744c35952c952200791b61e76798.zip
x11-driver/evdi: add 1.14.17-r1 fix tests
Fails with installed dev-python/pkgcraft and sys-libs/pkgcraft. Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/evdi/evdi-1.14.7-r1.ebuild83
1 files changed, 83 insertions, 0 deletions
diff --git a/x11-drivers/evdi/evdi-1.14.7-r1.ebuild b/x11-drivers/evdi/evdi-1.14.7-r1.ebuild
new file mode 100644
index 000000000..6df4558dc
--- /dev/null
+++ b/x11-drivers/evdi/evdi-1.14.7-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit linux-mod-r1 python-single-r1 flag-o-matic
+
+DESCRIPTION="Extensible Virtual Display Interface"
+HOMEPAGE="https://github.com/DisplayLink/evdi"
+SRC_URI="https://github.com/DisplayLink/evdi/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0/$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+IUSE="python test"
+
+RDEPEND="${PYTHON_DEPS}
+ x11-libs/libdrm
+ python? (
+ $(python_gen_cond_dep '
+ dev-python/pybind11[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ )
+ ')
+ )
+"
+
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers
+"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RESTRICT="!test? ( test )"
+
+# module/Kconfig
+CONFIG_CHECK="~FB_VIRTUAL ~I2C ~DRM ~USB_SUPPORT ~USB_ARCH_HAS_HCD MODULES"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.14.4-format-truncation.patch"
+)
+
+pkg_setup() {
+ linux-mod-r1_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_compile() {
+ 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
+}