commit:     eceea47c04d6a284195301f3468749849e414451
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 12 05:28:16 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb 12 05:47:00 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eceea47c

media-libs/glycin-loaders: Bump to 2.0.8

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 media-libs/glycin-loaders/Manifest                 |   2 +
 .../glycin-loaders/glycin-loaders-2.0.8.ebuild     | 111 +++++++++++++++++++++
 2 files changed, 113 insertions(+)

diff --git a/media-libs/glycin-loaders/Manifest 
b/media-libs/glycin-loaders/Manifest
index 379cc815fdba..84a3d58904a0 100644
--- a/media-libs/glycin-loaders/Manifest
+++ b/media-libs/glycin-loaders/Manifest
@@ -1,6 +1,8 @@
 DIST glycin-1.2.4.tar.xz 37181828 BLAKE2B 
8bd901e09d3f9902582662154d62d180e1d6c3aaee472d81d7c32c611ba2b101074a8c70511ef5f1ad3cff67c6cd8e154282a855e21379f0067ab07e8dd4eecf
 SHA512 
3215e7ec6f5cb04a4871ab34b1e0b67c11984ae8762c460248ebe5241d01cfa57b571d32c629f2fecfa926c961f876b3e8e6be3a8f89d12f4bc09b0aa329a56f
 DIST glycin-2.0.7-crates.tar.xz 27561200 BLAKE2B 
6a333ef0d046972682acc3dc3211687894112d621d98cda67eab7b5dd6b370282abe0c8b30d37f1c21afc59d3c43ebc1b02405aeac0286870c323573dc16631c
 SHA512 
9ac910493bd9359ea98fbecf37964c810073cecabc0e2c33b98d79eb4ef3186305c7fb94d054196cf697d4717836625a39dcd0e8bd6f4f0a3752439c64d9e030
 DIST glycin-2.0.7.tar.bz2 151441 BLAKE2B 
b195f1a2745011b007295f5cc3fd7d667742857ec7ec608b3cc049ea634ba9197d716ab87d21ff43de4f3f3fb0202edcfefff26f66d9a8d099254280cf061f9c
 SHA512 
81963a4d2ce858b43e2f9a9021304be7c7bf4befd6754d2a52f5cde77008ec1000db03d56de9fe7b8ebc6c7053a03ebf83843b3f0a9aa6051e63a5517bc20baf
+DIST glycin-2.0.8-crates.tar.xz 27567700 BLAKE2B 
05e1d3eed1b74a2fa94179590d56d6e98bddc75e7ace1d8d97cfadc05199f935c4a1a5de1689719cd2e5fad10db8db763bada2378b9bbeec1f90358dfd38f16f
 SHA512 
5deaebd1857aff4a9afc335c63b486849efd75272ffee209b525fc9e74e13834528a93439d7a49cbd90ac4e53aca28be03ba6497db2f6e004b3be5a01c255c01
+DIST glycin-2.0.8.tar.bz2 152054 BLAKE2B 
ca67bc3bbafa3851044ef25b6ff0fc56142d4e6cb701921975b1114e8140b1a51229d080e2ebfdf811a0d22654df75af589334e8a385eee02860465c775f46aa
 SHA512 
cca4b2766384ebd5dc5f41886c429bc219e1396c9b1a0cc77966921edc451d2ff38c84bbe9b03557bf623e915804f8299771d2c154faebd6a90522be30fd1e8c
 DIST glycin-2.1.alpha-crates.tar.xz 23410060 BLAKE2B 
ab7fdd9dbf3402fad8a9a27ef69f7b54ea63d7ce8cb66dd9cb81340b22861b2530ba96ed9b445c21f57557fe104b19415aa2678713147965a03b9c0133203bcf
 SHA512 
308057bd818b247faf96e61e319e4e6e1da18c12d4ad775f861f79d2cb2ce16da3138aec0c8d6d3cc255db1b6b7f0e8c2361d0cd62fda2bace8ad5b308fa3f2c
 DIST glycin-2.1.alpha.tar.bz2 175510 BLAKE2B 
9fcdb9879a3a86fa06561e3171a2be2dfdd8f73382143e475076f574ffb0fe82f8a259b39f3e1d52dd3f1a4f71ea1049666abea5416403c6ae7b67d6c5b708d1
 SHA512 
8899972301e2da632d595a6f55614fba8868ee341027cfcaf15a2ac32d4085d0a5626ece66e1aa1a3ed56af492a886490ac39b1268df286d80903aec0807bb49
 DIST glycin-test-images-85c6cdb47229162dcd8c8f599f9c2a7f42d75a1d.tar.bz2 
8384126 BLAKE2B 
fde4c0f302b2e2088dd64c2dfeb7c0f77055946caa0ae7576534a2afe943d32789e322f9032dc64c7bce7487248023bfd5ebbf0a951bb0341bd04c112ff055d1
 SHA512 
65950f6086da95a2914700de3de6cc289624265f7c7bf03de78b3670655ac576be3ead0d8d11355e701db22aaf972004045ed5b4e462a25809a48d34270e5130

diff --git a/media-libs/glycin-loaders/glycin-loaders-2.0.8.ebuild 
b/media-libs/glycin-loaders/glycin-loaders-2.0.8.ebuild
new file mode 100644
index 000000000000..2dc9050fe970
--- /dev/null
+++ b/media-libs/glycin-loaders/glycin-loaders-2.0.8.ebuild
@@ -0,0 +1,111 @@
+# Copyright 2024-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+RUST_MIN_VER=1.85.0
+
+inherit cargo meson
+
+MY_PV=${PV/_/.}
+MY_P=glycin-${MY_PV}
+TEST_IMAGE_COMMIT=b148bcf70847d6f126a8e83e27e1c59d2e474adf
+
+DESCRIPTION="Loaders for glycin clients (glycin crate or libglycin)"
+HOMEPAGE="https://gitlab.gnome.org/GNOME/glycin/";
+# upstream release tarballs are useless, as upstream is deliberately
+# stripping glycin crate from them
+SRC_URI="
+       https://gitlab.gnome.org/GNOME/glycin/-/archive/${MY_PV}/${MY_P}.tar.bz2
+       
https://github.com/gentoo-crate-dist/glycin/releases/download/${MY_PV}/${MY_P}-crates.tar.xz
+       test? (
+               
https://gitlab.gnome.org/sophie-h/test-images/-/archive/${TEST_IMAGE_COMMIT}/test-images-${TEST_IMAGE_COMMIT}.tar.bz2
+                       -> glycin-test-images-${TEST_IMAGE_COMMIT}.tar.bz2
+       )
+"
+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-2 BSD GPL-3+ IJG ISC
+       LGPL-3+ MIT Unicode-3.0
+       || ( LGPL-2.1+ MPL-2.0 )
+"
+SLOT="2"
+KEYWORDS="~amd64 ~arm64"
+IUSE="heif jpeg2k jpegxl svg test"
+REQUIRED_USE="test? ( heif jpegxl )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       !>=media-libs/glycin-loaders-2:0
+       >=dev-libs/glib-2.68.0:2
+       >=sys-libs/libseccomp-2.5.0
+       heif? ( >=media-libs/libheif-1.17.0:= )
+       jpegxl? ( >=media-libs/libjxl-0.11.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
+       )
+"
+
+QA_FLAGS_IGNORED="usr/libexec/glycin-loaders/.*"
+
+src_unpack() {
+       cargo_src_unpack
+
+       if use test; then
+               mv "test-images-${TEST_IMAGE_COMMIT}"/* \
+                       "${S}/tests/test-images/" || die
+       fi
+}
+
+src_configure() {
+       local formats=(
+               $(usev heif glycin-heif)
+               $(usev jpeg2k glycin-jpeg2000)
+               $(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
+               -Dlibglycin-gtk4=false
+               -Dglycin-thumbnailer=false
+
+               # TODO: figure out why it fails
+               # https://gitlab.gnome.org/GNOME/glycin/-/issues/167
+               -Dtest_skip_ext=heic
+       )
+
+       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
+}

Reply via email to