From 367e3523ed4fc5c3101b1c919d3d89d755c3188f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 18 Apr 2025 05:28:05 +0200 Subject: [PATCH] media-libs/glycin-loaders: Bump to 1.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- media-libs/glycin-loaders/Manifest | 1 + .../glycin-loaders-1.2.1.ebuild | 95 +++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 media-libs/glycin-loaders/glycin-loaders-1.2.1.ebuild diff --git a/media-libs/glycin-loaders/Manifest b/media-libs/glycin-loaders/Manifest index b5d2b8319a3b1..1e3f450f854c8 100644 --- a/media-libs/glycin-loaders/Manifest +++ b/media-libs/glycin-loaders/Manifest @@ -1,4 +1,5 @@ DIST glycin-1.1.5.tar.xz 28348220 BLAKE2B 79ddbe2d68246200f0026ff418abeaadd8779091925c83a8e253f2598aacce48e6ed3ddd557444a2f6ad3bb27e50fef3d5365ebd03ce2a38b2df3f1af8a0a69b SHA512 fcc2856eeaf10708ebd876186405330544ca83a262d1fccfe8d338e565657579142a8b496d993233755a21b82e96eab7b73457eacaca756ef3f8795b1cbd254f DIST glycin-1.1.6.tar.xz 28420376 BLAKE2B 78ab434d27d1688723d061adae9ecd17500167b71c223e665fd74f5ed170d9793d5d404e753047ee7ed9061225f3da8f10ecee163dc112a170a74447b4f88efd SHA512 a6f913c776160a78870209e90f365c0321e65ae73e1903b92051c2439b4ba50e7e6645600ff050927a2f81447f08e2bed749364db8ded03d21b961046460c4b5 +DIST glycin-1.2.1.tar.xz 37164676 BLAKE2B b2dc127a174b71fb4e4bb3070bf7dded3a6011aa4c1bcb11bad831ff6cf866b14ce7f20dbc8b5190d476dbfdf2c742d9505ab3c40c22b03336ba133159a9d49a SHA512 dd69e123f517ded3686b98a833451e58a26a6dde8976e582520de04c8fb075039c676a426b39c41639273a15b7c32012e0288664d8a854ba44eeb65f35827e06 DIST glycin-1.2.beta.1.tar.xz 36989732 BLAKE2B 47e9d07f5487767fa0625fda352e6cb686227474addc38d2bc8acde1cb81689d62bd834949a82302153bdbe6dc3a08bb42f7fd1ba85ea67c61f62a7ba08d1b2a SHA512 2479f8044745e9203e2733359248d78e01cf1407eda770478936101dc7cbf32218c6c6cb21583b6e2444eecb8645c81cb8b9c73c6986593908cf6b11e4a5a25d DIST glycin-1.2.rc.tar.xz 37187208 BLAKE2B 5bee34bd2aab5cf1a4527c625e9b12a28d0d00d26f70d040a059c60f85f3a54a397265c5447d15ccc0e29c4c21af59dfa9ddf227ed0057a6f24fd33522d62076 SHA512 36bf11a26c0d788ed1f6e81bcbf94fe194c57fb3ded197ea75bd4f64a8d9132ff745b371a3ce40e229b09f2ac3bac840cdad2ea096e212a9ceba92410bdff198 diff --git a/media-libs/glycin-loaders/glycin-loaders-1.2.1.ebuild b/media-libs/glycin-loaders/glycin-loaders-1.2.1.ebuild new file mode 100644 index 0000000000000..b45cea4adb066 --- /dev/null +++ b/media-libs/glycin-loaders/glycin-loaders-1.2.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# crates vendored upstream +CRATES=" +" + +RUST_MIN_VERSION=1.80.0 + +inherit cargo meson + +MY_P=glycin-${PV/_/.} +DESCRIPTION="Loaders for glycin clients (glycin crate or libglycin)" +HOMEPAGE="https://gitlab.gnome.org/GNOME/glycin/" +SRC_URI=" + https://download.gnome.org/sources/glycin/$(ver_cut 1-2)/${MY_P}.tar.xz +" +S=${WORKDIR}/${MY_P} + +LICENSE="|| ( LGPL-2.1+ MPL-2.0 )" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD GPL-3+ ISC LGPL-3+ + MIT Unicode-3.0 + || ( LGPL-2.1+ MPL-2.0 ) +" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="heif jpegxl svg test" +REQUIRED_USE="test? ( heif jpegxl )" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/glib-2.60:2 + >=sys-libs/libseccomp-2.5.0 + heif? ( >=media-libs/libheif-1.17.0:= ) + jpegxl? ( >=media-libs/libjxl-0.10.0:= ) + svg? ( + >=gnome-base/librsvg-2.52.0:2 + >=x11-libs/cairo-1.17.0 + ) +" +DEPEND=" + ${RDEPEND} + test? ( + >=gui-libs/gtk-4.16.0:4 + >=media-libs/lcms-2.14:2 + ) +" +BDEPEND=" + test? ( + sys-apps/bubblewrap + sys-apps/dbus + ) +" + +ECARGO_VENDOR=${S}/vendor + +QA_FLAGS_IGNORED="usr/libexec/glycin-loaders/.*" + +src_prepare() { + default + + # https://gitlab.gnome.org/GNOME/glycin/-/issues/81 + sed -i -e '\|/fonts|d' tests/tests.rs || die +} + +src_configure() { + local formats=( + $(usev heif glycin-heif) + $(usev jpegxl glycin-jxl) + $(usev svg glycin-svg) + glycin-image-rs + ) + local formats_s=${formats[*]} + local emesonargs=( + -Dprofile=$(usex debug dev release) + -Dglycin-loaders=true + -Dloaders="${formats_s// /,}" + -Dtests=$(usex test true false) + -Dlibglycin=false + ) + + 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 +}