mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
x11-drivers/evdi: add 1.14.15
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST evdi-1.14.12.tar.gz 97369 BLAKE2B 096220d88306c17e29f5d65593e3c291d577fd0318df4b8a8c0f0461c2e5c44609ba0baf4f4ce7d7de9b5232072ff7ef25b2e46e266727dc9a69b4c40d94bda3 SHA512 7d4b078e22bc2d31f8db8f5fc71218d17c72d12359a208ef1d7afbe4356d41e4ef7abbfbd774501f66c92a0a6a6139ad57e96c10a0c6d8ec83f2a0ebd9bacf5d
|
||||
DIST evdi-1.14.13.tar.gz 97875 BLAKE2B e80eacd284355d96d28b99e928d22b6bb36ff3d49963dd4736ce56ff1e97d949fbb3b04bde6d3e0c5750fbab54c4985c85c74da183a385768821343f3aa7ee60 SHA512 13990b72114703a29fac61e4f8164f372f85d8ef3d32a0c5326121bb0e51ab4cbc8860c03807ac4704b9ddcf1bb381bd05783de288537e9c8eb61a18bbc29b2e
|
||||
DIST evdi-1.14.14.tar.gz 98722 BLAKE2B 9b14e9a01378617b581d82bbe8ce07a5b61932f9a27b5e8e92cb824b9dfd20625bc9cf95ffbd966033f052b2e89633126daa7fd85cf04dc408faa24f4948f660 SHA512 9acdb41f2dbc1bc8222490e10caa903beb12fc8d3532b45b8ec86a59fcde89aa0e2eb779b503aadcffc4b1e6c22b82f4e6bea56a100a653beca60f0d37e6392e
|
||||
DIST evdi-1.14.15.tar.gz 96427 BLAKE2B a788c070833b855b7cc2356d0f0b4d1dd1029c60ffc4c34192bea28a0f05b308f9a681878ef088e9ecb4264921f3b037d2d8220bf4a5cc49ca609e5c5ab63b8e SHA512 0306819e8a0a02de7f90128049c21fd2cc51c3e5fab7c7491de1f7b2cd9435acc09f6c2c543a547bb68e880881cdbefc7a415ee6fd2204ba580795e7e1a49e56
|
||||
|
||||
98
x11-drivers/evdi/evdi-1.14.15.ebuild
Normal file
98
x11-drivers/evdi/evdi-1.14.15.ebuild
Normal 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_{12..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
|
||||
}
|
||||
Reference in New Issue
Block a user