commit:     75eccf4fae9e5bb74eda5d3b4baf539e780d38f8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  5 03:03:00 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov  5 03:03:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75eccf4f

media-libs/glycin-loaders: Bump to 2.0.5

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

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

diff --git a/media-libs/glycin-loaders/Manifest 
b/media-libs/glycin-loaders/Manifest
index 4c527441c96b..b17613087c7a 100644
--- a/media-libs/glycin-loaders/Manifest
+++ b/media-libs/glycin-loaders/Manifest
@@ -5,5 +5,7 @@ DIST glycin-2.0.3-crates.tar.xz 27560948 BLAKE2B 
d8e6a482f9cb4f644c8b3a84fee4e06
 DIST glycin-2.0.3.tar.bz2 150232 BLAKE2B 
3cb5f53942374b3e6180d5bfee525fb9c5ebe126f1fcbeb3fbc819273f6fdbf0c75ca510fbdb85936a745dbc3a5158411eb44cc13ec496355078a7b17440d466
 SHA512 
30eb819520531851ace784f8ea82221b18e0df22906c039bc156c9220f503c5eb3bc1634990f838a87151145e1b41af89debd02f743ebf4eb2e7d26e22eb235e
 DIST glycin-2.0.4-crates.tar.xz 27560948 BLAKE2B 
d8e6a482f9cb4f644c8b3a84fee4e06010c3ad65f7fa5e8da0d8f6313d6478801274d1c322f103ec0ecadb428382db3173af1deeb0394f6cf41052b143a25d27
 SHA512 
5465c90456841b212a783be1fa9d206f7002df9ae787cf7a30c3e8e43a0bd8306b50c6823d61dedc8aa08f13319b200ca4b6b2ca804087a1b2fe38f08502003c
 DIST glycin-2.0.4.tar.bz2 150642 BLAKE2B 
27c40f30d52fa9a7dd6580547816a70e9453e164bd78721ae8f4bdc9c2e49c49813f4204679d87591d5f6a2ed4c6d79cfc577e3b41fffcc49f3fa1ca643f68e8
 SHA512 
4a47e3d4a3d1401373572fc0068af91a1720da88f7f12571f7f3c891c976b29b314138ef840c233270c7b2abcbd007ee59b76e5cbc8a1373d95df7e57cd902b5
+DIST glycin-2.0.5-crates.tar.xz 27561200 BLAKE2B 
6a333ef0d046972682acc3dc3211687894112d621d98cda67eab7b5dd6b370282abe0c8b30d37f1c21afc59d3c43ebc1b02405aeac0286870c323573dc16631c
 SHA512 
9ac910493bd9359ea98fbecf37964c810073cecabc0e2c33b98d79eb4ef3186305c7fb94d054196cf697d4717836625a39dcd0e8bd6f4f0a3752439c64d9e030
+DIST glycin-2.0.5.tar.bz2 151345 BLAKE2B 
2a534907a460f6b1c9622135d92879d73b5549d6e1dde0daa98635f9c7561216f4d610e743ada1de4364117e26dc84bae7ee94697108cb7af391ad6de81a3dfe
 SHA512 
9a049e5a48eb8c5a3a9d76c706e3521f1e1c5cf6cdc650eef0e4e9a12134d9dee0aecf368b24dac278352c590376fb077f10fc64fa78d9beed2c910c7b082ec0
 DIST glycin-test-images-7e1d59dc5f8ce18d75769d591f9af32fb26e47b6.tar.bz2 
8246039 BLAKE2B 
e53cbb56910b274e737810a7129b88191a8bc34ece0c8e6ffd888b59794aec2098ec42d1deafb112fa00183d6dd4bdcda7d1efb3f4feb062aeda1728191beeb4
 SHA512 
0b937910fd946ac69888756b6ee135536d8667eea6d9f66acd9dac105ab74a6e81f4f9f9c254b4f6d895a26bafb44a01c65c9ec384de6047352a2c7a0976e134
 DIST glycin-test-images-b148bcf70847d6f126a8e83e27e1c59d2e474adf.tar.bz2 
8260055 BLAKE2B 
5e1f802283e4b7212b7498ef9093bd5ad7a2bb66f8585aacff0a73d9a15b9fe7467bc06508cc0c910285d8a158287ed0c62fe793d78e8355613dd50f0e2e00c3
 SHA512 
0839108bcc60927b83f7cc821a6834781712d4e0489af30a3a0b1578da48c35b371e312cf11d39aefd9e3a2e051f005ee6eabda1beaa718d4ff77960def4aa71

diff --git a/media-libs/glycin-loaders/glycin-loaders-2.0.5.ebuild 
b/media-libs/glycin-loaders/glycin-loaders-2.0.5.ebuild
new file mode 100644
index 000000000000..1e775dabc229
--- /dev/null
+++ b/media-libs/glycin-loaders/glycin-loaders-2.0.5.ebuild
@@ -0,0 +1,111 @@
+# Copyright 2024-2025 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