media-libs/glycin-loaders: Bump to 2.0_beta2

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-08-02 09:25:26 +02:00
parent 4aac3a6542
commit ad8a5269a1
2 changed files with 112 additions and 0 deletions

View File

@@ -1,2 +1,5 @@
DIST glycin-1.2.2.tar.xz 37165060 BLAKE2B e710af8e09c224ef119f09f9ae2702add688c65c78ab06b7b8daebaaef5b40b5e55fa3c1bfbf8bd5446b70250a315c3bb415c301f5183264141c789f254336d0 SHA512 f6a358d0809679c3000ff7720e450f19550c44c5c044964e7fe235524f8fafb061fe929fad4dfd1c9d067d1984d44fdb10717add7ace15df53d5a2039a3b6adb
DIST glycin-1.2.3.tar.xz 37162464 BLAKE2B b850cdf099b1a5d8e42f0ac0877b2e790bcfb66dbe156be7a7bcdc3a17b40e1a9c0f55ee26716a0485708686f558f005759673a2fa6c564c8de5c6534f748fa2 SHA512 5d2c81c2cad2d7c54e628c0cddd80aa463ed017bb8e117d713b92cf224975ffe4377fb7bf8c28e68dfbbdc5834638d8ea7fa744d8877ed45b7d07215d11c4761
DIST glycin-2.0.beta.2-crates.tar.xz 26382008 BLAKE2B 552e7ffbb38c1f5163b64332f528dbe022523b153cd2427c7b4a57f8735a1ab6be4e448bfd076d7d6d3db44d54e66f87a38881748b50402c40f214b26fa9d40c SHA512 6a79c47affb386f35a265b1526ff53448fda392ab0bdcd28e3596e8a0e2a3a400d30f5b370ec50a6781006e71cd1090bd12832b5d5ac8a3aa753289b42f4bc34
DIST glycin-2.0.beta.2.tar.bz2 135604 BLAKE2B 544715d7427e793edc2f1ad93372d4bd9c42b2a3d63f6e4b13b957a0f573982ae354cdadcaadba708c1a5f33b046b43747a1d576b7dbf1156adb68a85ff1beb2 SHA512 9e2f5e337392c82ffc810b2f871b52903914f0dc996e6bf0c492099d66eb852f3e2c63c54dca3b9105f16df8730705e110c019c52374334774e2ce82265a8f53
DIST glycin-test-images-704f16f7d8bf10c39c182dc0ca9ee9973d68f3b2.tar.bz2 8236129 BLAKE2B 5e98d7b78a5c8467b2b876a678bcca8e34033c1d12eedaaae19fe0879dade8ac4980ad2cc6b1974da729d710379485973857888e9d73458392b72a704f346b95 SHA512 2f42cb023639bb50d9ef072f8a996ddd650905b1631d4bb7d0e6e7c6fe8003272bc658c9dced8389d4b6b95a68eba9da4c9e5cf98daeb18398266788a26c95ed

View File

@@ -0,0 +1,109 @@
# 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_PV=${PV/_beta/.beta.}
MY_P=glycin-${MY_PV}
TEST_IMAGE_COMMIT=704f16f7d8bf10c39c182dc0ca9ee9973d68f3b2
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 GPL-3+ ISC LGPL-3+
MIT Unicode-3.0
|| ( LGPL-2.1+ MPL-2.0 )
"
SLOT="0"
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.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 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
}