commit:     918ecf81ca1459fcc61eea5a33de3d729137b141
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Sep  6 14:16:26 2024 +0000
Commit:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Fri Sep  6 14:22:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=918ecf81

x11-drivers/evdi: add 1.14.6, add filter-lto

Fixes:
        ERROR: modpost: missing MODULE_LICENSE()

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>

 x11-drivers/evdi/Manifest           |  1 +
 x11-drivers/evdi/evdi-1.14.6.ebuild | 81 +++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/x11-drivers/evdi/Manifest b/x11-drivers/evdi/Manifest
index 35153bb9e..1ff924738 100644
--- a/x11-drivers/evdi/Manifest
+++ b/x11-drivers/evdi/Manifest
@@ -1 +1,2 @@
 DIST evdi-1.14.5.tar.gz 90775 BLAKE2B 
ccee5c1fa1644bef98ddbc2d06eff990c56d2f5a58042f5ee1557816f25da850bd5c5cc5bd60ca48cc341fe167359ab513425e5ef5d3b248426c1e81a5e5cd10
 SHA512 
6374c88a4433da0142fc1e9ae7fa48791253747694deb86b4897a2f503783ba45c46f5e5f53718dc73ce47cb4a03479b989300ca57c4d847a912915b36a72142
+DIST evdi-1.14.6.tar.gz 91220 BLAKE2B 
7b500096d45f0ac8329059d6ba092b3536039fa2647e39c40a863efd01756cae03dbc06076513e9ba68344e3997838727512003fb75c69c70a277a9276ee945c
 SHA512 
8fc77d1b4a78395f05541ac3f9babb69c3fa59d89383d95b5a429a61d8941cddbc5087348f02125296eeec1c656135580f5a34d61430f4bce4b25c4ca685f735

diff --git a/x11-drivers/evdi/evdi-1.14.6.ebuild 
b/x11-drivers/evdi/evdi-1.14.6.ebuild
new file mode 100644
index 000000000..f6edbd98f
--- /dev/null
+++ b/x11-drivers/evdi/evdi-1.14.6.ebuild
@@ -0,0 +1,81 @@
+# 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() {
+       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
+}

Reply via email to