summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRepository mirror & CI <repomirrorci@gentoo.org>2024-08-18 19:18:49 +0000
committerRepository mirror & CI <repomirrorci@gentoo.org>2024-08-18 19:18:49 +0000
commit4ada0bd0ae8cf5134c72a0b2f5054627fec8b984 (patch)
tree5f630472b49a0ccac5c896650bd35789af96e6af
parent2024-08-18 18:23:24 UTC (diff)
parentmedia-libs/glycin-loaders: Enable testing (diff)
downloadgentoo-4ada0bd0ae8cf5134c72a0b2f5054627fec8b984.tar.gz
gentoo-4ada0bd0ae8cf5134c72a0b2f5054627fec8b984.tar.bz2
gentoo-4ada0bd0ae8cf5134c72a0b2f5054627fec8b984.zip
Merge updates from master
-rw-r--r--media-libs/glycin-loaders/glycin-loaders-1.1_beta.ebuild19
1 files changed, 16 insertions, 3 deletions
diff --git a/media-libs/glycin-loaders/glycin-loaders-1.1_beta.ebuild b/media-libs/glycin-loaders/glycin-loaders-1.1_beta.ebuild
index ed37a9ca5e08..349d971f98c1 100644
--- a/media-libs/glycin-loaders/glycin-loaders-1.1_beta.ebuild
+++ b/media-libs/glycin-loaders/glycin-loaders-1.1_beta.ebuild
@@ -23,8 +23,7 @@ LICENSE+="
SLOT="0"
KEYWORDS="~amd64"
IUSE="heif jpegxl svg test"
-# TODO: figure out how to make tests work from inside the ebuild
-RESTRICT="test"
+RESTRICT="!test? ( test )"
RDEPEND="
>=dev-libs/glib-2.60:2
@@ -32,7 +31,7 @@ RDEPEND="
heif? ( >=media-libs/libheif-1.17.0:= )
jpegxl? ( >=media-libs/libjxl-0.10.0:= )
svg? (
- >=gnome-base/librsvg-2.52.0
+ >=gnome-base/librsvg-2.52.0:2
>=x11-libs/cairo-1.17.0
)
"
@@ -48,6 +47,13 @@ ECARGO_VENDOR=${S}/vendor
QA_FLAGS_IGNORED="usr/libexec/glycin-loaders/.*"
+src_prepare() {
+ default
+
+ # https://gitlab.gnome.org/sophie-h/glycin/-/issues/81
+ sed -i -e '\|/fonts|d' tests/tests.rs || die
+}
+
src_configure() {
local formats=(
$(usev heif glycin-heif)
@@ -67,3 +73,10 @@ src_configure() {
meson_src_configure
ln -s "${CARGO_HOME}" "${BUILD_DIR}/cargo-home" || die
}
+
+src_test() {
+ # tests write to /proc/*/uid_map
+ # apparently, "addpredict /" in Portage breaks it
+ local -x SANDBOX_ON=0
+ meson_src_test
+}