Merge updates from master

This commit is contained in:
Repository mirror & CI
2024-08-12 16:33:53 +00:00
7 changed files with 300 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
DIST libei-1.2.1.tar.bz2 174636 BLAKE2B b718d2287e83adb43a8dee9ae06499d780b2a50231e9ce452b6e7bfa9e89e9599058628614fb4325d0cef842d6b29ca68eb38b3e547790cd5a7a0ac14728f250 SHA512 ac8e32a381b9555a6b9becab9217a323d79aeba4b3f11e1dbba9f876d566f232f41d0f299f8cb8e5de6707d0dd91e93872edd81532c971e35d1cf33f9f9063b4
DIST libei-1.3.0.tar.bz2 175492 BLAKE2B cc5b0ae228a7282e0b5890280cab15cbb4c9179aa40140d6d01dc0d650bc1a646efd3d07dc6db0b501c3d203480d2df2bf3107e8b07e13b49eef8dcea59dd011 SHA512 a63b52c7251660404b307dba82ee24e31b64aaff7140acb174a33aeb60a07e59391522e2a5c56cd7bbdc45ab5e4a0e6111e214f2f1b79834b152e6ebc3e5e0c1
DIST munit-fbbdf1467eb0d04a6ee465def2e529e4c87f2118.tar.gz 27724 BLAKE2B 9670c9b7a0b5d9ee6ec8df2dea9e241b043964ecf1fa3f6060ad1d16c40ab6afe47f53c6d4a791003e101a0b363263b858e6e4e445f868292753dd1ee7f7e3ce SHA512 26b5599fd12be627a692823ebf496fa446be7ed04a1233fb42e0667c05109b0f804f76646e289ac660fc815baf45f77ec8caf0ff2ea7fb0b4f87f0038a2b971c
@@ -0,0 +1,21 @@
Test times out, even after fixing it once.
https://bugs.gentoo.org/930476
https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/286
diff --git a/test/meson.build b/test/meson.build
index 1a2f70b..87c3f3a 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -161,11 +161,6 @@ if enable_pytest
output: '@PLAINNAME@',
configuration: protocol_test_config)
- test('protocol-test', pytest,
- args: pytest_args + ['-k', 'TestEiProtocol'],
- suite: 'python',
- workdir: meson.project_build_root(),
- )
if valgrind.found()
env = environment()
env.set('LIBEI_USE_VALGRIND', '1')
+102
View File
@@ -0,0 +1,102 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit meson python-any-r1
DESCRIPTION="Library for Emulated Input, primarily aimed at the Wayland stack"
HOMEPAGE="https://gitlab.freedesktop.org/libinput/libei"
SRC_URI="https://gitlab.freedesktop.org/libinput/${PN}/-/archive/${PV}/${P}.tar.bz2"
MUNIT_COMMIT="fbbdf1467eb0d04a6ee465def2e529e4c87f2118"
SRC_URI+=" https://github.com/nemequ/munit/archive/${MUNIT_COMMIT}.tar.gz -> munit-${MUNIT_COMMIT}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="elogind systemd test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-libs/libevdev-1.9.902
|| (
systemd? ( >=sys-apps/systemd-237 )
elogind? ( >=sys-auth/elogind-237 )
sys-libs/basu
)
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
$(python_gen_any_dep '
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
')
test? (
$(python_gen_any_dep '
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/python-dbusmock[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/structlog[${PYTHON_USEDEP}]
')
)
"
PATCHES=(
"${FILESDIR}"/1.3.0-skip-protocol-test.patch
)
python_check_deps() {
if use test; then
python_has_version \
"dev-python/pytest[${PYTHON_USEDEP}]" \
"dev-python/python-dbusmock[${PYTHON_USEDEP}]" \
"dev-python/pyyaml[${PYTHON_USEDEP}]" \
"dev-python/structlog[${PYTHON_USEDEP}]" \
|| return 1
fi
python_has_version \
"dev-python/attrs[${PYTHON_USEDEP}]" \
"dev-python/jinja[${PYTHON_USEDEP}]" \
|| return 1
}
src_unpack() {
if [[ -n ${A} ]]; then
unpack ${A}
mv "${WORKDIR}"/munit-${MUNIT_COMMIT} "${WORKDIR}"/${P}/subprojects/munit || die
rm "${WORKDIR}"/${P}/subprojects/munit.wrap || die
fi
}
src_prepare() {
default
sed -i -e 's:^valgrind = .*:valgrind = disabler():g' test/meson.build || die
}
src_configure() {
local emesonargs=(
-Ddocumentation=""
-Dliboeffis=enabled
$(meson_feature test tests)
)
if use systemd; then
emesonargs+=(-Dsd-bus-provider=libsystemd)
elif use elogind; then
emesonargs+=(-Dsd-bus-provider=libelogind)
else
emesonargs+=(-Dsd-bus-provider=basu)
fi
meson_src_configure
}
src_install() {
meson_src_install
# munit subproject is installed but not wanted
if use test; then
rm "${ED}"/usr/lib*/libmunit.so || die
fi
}
+1
View File
@@ -1,2 +1,3 @@
DIST intel-gmmlib-22.3.19.tar.gz 846342 BLAKE2B ce3c25740d9c3f556db31f880b47fba8358dd7d7d53d80bc9923bec8c67fdeee3ae4efa5465390c229bfdc2f6c64fa0a7963516f83d12061d34bf51102cb3a64 SHA512 804e4995983884832dbb6d08a4e3c8ca8d60e7ef2c5a0de12d0facfac1fdce619ad229ad1a6b62fdf0ba74a968caf3bb884e283af8cf38babacff350fc9728b9
DIST intel-gmmlib-22.4.1.tar.gz 867162 BLAKE2B cc3dea9441f1b21b95595d5674046afec5ae673c6244b94572ba11d3451ddb9dae8adce9fe4310a5a0de3c723a3b7aef1031b9ca53f54b63fbefe43fadb7c2d1 SHA512 b44bd2f18ed97446c2e4f5ca7119cfde63f249fe8b5f23f0a531a2ec724aa51fe70014320d8f6dee85246df8ce220d5938654483d276eda60027162e304a3b64
DIST intel-gmmlib-22.5.0.tar.gz 867541 BLAKE2B 89ac0fdac7212ea1122140357f04ffe67a27d4d743615b4d97121931370f44568cdcccfbeb681d8fe564b269f4fe1c0f47b50c9e7cc2ce44863d03ec47a75bdb SHA512 f4f33197cf635a71c02d1027f96268b0ebac66ba765b1b6d4d827b9cd7a044197a9a042371c5bf6550110b9d5b127bcf63627124a338cc9e8ee1e8bc1d90dbc2
+41
View File
@@ -0,0 +1,41 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake-multilib
if [[ ${PV} == *9999 ]] ; then
: ${EGIT_REPO_URI:="https://github.com/intel/gmmlib"}
if [[ ${PV%9999} != "" ]] ; then
: ${EGIT_BRANCH:="release/${PV%.9999}"}
fi
inherit git-r3
else
KEYWORDS="~amd64"
SRC_URI="https://github.com/intel/gmmlib/archive/intel-${P}.tar.gz"
S="${WORKDIR}/${PN}-intel-${P}"
fi
DESCRIPTION="Intel Graphics Memory Management Library"
HOMEPAGE="https://github.com/intel/gmmlib"
LICENSE="MIT"
SLOT="0/12.3"
IUSE="+custom-cflags test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-20.2.2_conditional_testing.patch
"${FILESDIR}"/${PN}-20.3.2_cmake_project.patch
"${FILESDIR}"/${PN}-22.1.1_custom_cflags.patch
)
multilib_src_configure() {
local mycmakeargs=(
-DBUILD_TESTING="$(usex test)"
-DOVERRIDE_COMPILER_FLAGS="$(usex !custom-cflags)"
)
cmake_src_configure
}
+1
View File
@@ -1,3 +1,4 @@
DIST xwayland-23.2.6.tar.xz 1300092 BLAKE2B 5b10984a2c2fba87ce1101b70c26070100e743239dc705716c4b7e1318e192ad1da5e4933516f87ab0405b98eb1cc093081d4a1e4754f5dc8947a546a6f89072 SHA512 9e3c2253af335a559d0f890fa8f9bc381beca6531e0842d739ac15cbca008b3d07c0eefafd03611b04917c626861a7871a83657afa2a298994f4b162f714fc49
DIST xwayland-24.1.0.tar.xz 1301180 BLAKE2B d20f91fa6c1d404cafb69a7e1cf843458be084a5e0d4feb5266e6bc78a6ee0445aeb178e97c569eb17d13a8a3cc566ac664afcec02e1b56c92f9ea0b95be85b5 SHA512 7592609ad112652cb870761f938f280802d7d3b4bbc82acc7bf741a763d862aa97bbbd7f78250c63a961d76be73fb55555832045514092d89e406839564f0003
DIST xwayland-24.1.1.tar.xz 1301652 BLAKE2B 0b25776d7b6910b5a122d5ab917506ce933c87b6f0abf908649461f013463001161d1fa5fcaa499c56cfce57f035ad95fd49e28bb3e84ce159eaaad74b5b2799 SHA512 e44f47adab3830846360fd05fdc06d9016832133c662f2e4b0763b98de0c9b48dbfce7d757ffea5538b5fabb68170e5d1057acc1b9a086e396b147deaa750998
DIST xwayland-24.1.2.tar.xz 1302068 BLAKE2B 761cc7da4e73da8120d5006ba085808e2c383fa991e29d3948c610671a11fee16295584d59409417ebb216fc8ae23de26d69eda7e453725067229672911ae85e SHA512 2788f6954c999c29be54d5b1e6e2c81327de9fbefae140f7cd322c1ff21f76fdd17cb74cf8243035ea850bfa4573d2013ab895426790b7959cceb7120ba9531c
+133
View File
@@ -0,0 +1,133 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://gitlab.freedesktop.org/xorg/xserver.git"
inherit git-r3
else
SRC_URI="https://xorg.freedesktop.org/archive/individual/xserver/${P}.tar.xz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
fi
DESCRIPTION="Standalone X server running under Wayland"
HOMEPAGE="https://wayland.freedesktop.org/xserver.html"
LICENSE="MIT"
SLOT="0"
IUSE="libei selinux systemd test unwind xcsecurity"
RESTRICT="!test? ( test )"
COMMON_DEPEND="
dev-libs/libbsd
dev-libs/openssl:=
>=dev-libs/wayland-1.21.0
>=dev-libs/wayland-protocols-1.34
media-fonts/font-util
>=media-libs/libepoxy-1.5.4[X,egl(+)]
media-libs/libglvnd[X]
>=media-libs/mesa-21.1[X(+),egl(+),gbm(+)]
>=x11-libs/libdrm-2.4.116
>=x11-libs/libXau-1.0.4
x11-libs/libxcvt
>=x11-libs/libXdmcp-1.0.2
>=x11-libs/libXfont2-2.0.1
x11-libs/libxkbfile
>=x11-libs/libxshmfence-1.1
>=x11-libs/pixman-0.27.2
>=x11-misc/xkeyboard-config-2.4.1-r3
libei? ( dev-libs/libei )
systemd? ( sys-apps/systemd )
unwind? ( sys-libs/libunwind )
"
DEPEND="
${COMMON_DEPEND}
>=x11-base/xorg-proto-2024.1
>=x11-libs/xtrans-1.3.5
test? (
x11-misc/rendercheck
x11-libs/libX11
)
"
RDEPEND="
${COMMON_DEPEND}
x11-apps/xkbcomp
libei? ( >=sys-apps/xdg-desktop-portal-1.18.0 )
selinux? ( sec-policy/selinux-xserver )
"
BDEPEND="
app-alternatives/lex
dev-util/wayland-scanner
"
src_prepare() {
default
if ! use test; then
sed -i -e "s/dependency('x11')/disabler()/" meson.build || die
fi
}
src_configure() {
local emesonargs=(
$(meson_use selinux xselinux)
$(meson_use systemd systemd_notify)
$(meson_use unwind libunwind)
$(meson_use xcsecurity)
-Ddpms=true
-Ddri3=true
-Ddrm=true
-Ddtrace=false
-Dglamor=true
-Dglx=true
-Dipv6=true
-Dsecure-rpc=false
-Dscreensaver=true
-Dsha1=libcrypto
-Dxace=true
-Dxdmcp=true
-Dxinerama=true
-Dxvfb=true
-Dxv=true
-Dxwayland-path="${EPREFIX}"/usr/bin
-Dlibdecor=false
-Ddocs=false
-Ddevel-docs=false
-Ddocs-pdf=false
)
if [[ ${PV} == "9999" ]]; then
emesonargs+=(
-Dxorg=false
-Dxnest=false
-Dxvfb=false
-Dxwayland=true
)
fi
if use libei; then
emesonargs+=( -Dxwayland_ei=portal )
else
emesonargs+=( -Dxwayland_ei=false )
fi
meson_src_configure
}
src_install() {
dosym ../bin/Xwayland /usr/libexec/Xwayland
meson_src_install
# Remove files installed by x11-base/xorg-xserver
rm \
"${ED}"/usr/share/man/man1/Xserver.1 \
"${ED}"/usr/$(get_libdir)/xorg/protocol.txt \
|| die
}