x11-driver/evdi: add 1.14.11_p20251211, 9999 fixes 6.18 build

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander
2025-12-15 11:17:35 +01:00
parent e9b212d221
commit b402bec5a0
3 changed files with 197 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST evdi-1.14.10.tar.gz 97166 BLAKE2B 67e489a3287d773262997cb16337293979fbbfe01b7e32de0dbdf1ab95bcfc25e08707d5fdb44a735a561579b2888d7578761051e78ec34dc76429eb261519ff SHA512 3937af9a2cc377f505c45de4ad0c28c778ef91ee7157341dfe411c8c1dde6c665cede26963678b7492688338059dd57f7fe296666e439240eb0f4d478bafbc28
DIST evdi-1.14.11.tar.gz 97424 BLAKE2B ffdb7071cc69b9788b1980273428122954dcff276bd13f693598d54a15ea796390e3b57827f8003be0a5c1157aab0fdf75a71f28b0cb7bc46fd199715b8997b7 SHA512 30d21a1b5ba2ecad827a98d7e826da8e3320919baf51b92410048d9d0fdc8f236c24fa20fafd18d946bb72c0b809c98ba1fd7fa3da5058c1b35959ecb04b5ea6
DIST evdi-1.14.11_p20251211.tar.gz 97353 BLAKE2B 7119f09421c11554d063e19de97f9eabe980473352c6e8030ecc65199a0fce7fc22070fb8fe73fa811b8cce30fda8fb01f24432a0ad8b124bb80d358b2e2ca29 SHA512 e99c85548cbe7e6f8615b182fdf8bd8cf3c9d828aee6221e91deac13d7883f0077991681496944033cabf1b31a3108689b5e25f3baf0bb090bbbc6e957dbf6c7

View File

@@ -0,0 +1,98 @@
# Copyright 1999-2025 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

@@ -0,0 +1,98 @@
# Copyright 1999-2025 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
}