commit:     bf37a6b3a99fe77cb0bcbc9318b88cd10131223e
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  7 02:27:55 2026 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Feb  7 03:00:26 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf37a6b3

media-libs/subrandr: add 1.2.0

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-libs/subrandr/Manifest              |  2 ++
 media-libs/subrandr/subrandr-1.2.0.ebuild | 47 +++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/media-libs/subrandr/Manifest b/media-libs/subrandr/Manifest
index 91ff7d8a21a7..6ed5631b15d6 100644
--- a/media-libs/subrandr/Manifest
+++ b/media-libs/subrandr/Manifest
@@ -1,2 +1,4 @@
 DIST subrandr-1.1.0-vendor.tar.xz 9442964 BLAKE2B 
fe6f690fe0432bf9981605cd916064ed3fca0d10cec324b8c9b0353363450b2badc463822870f56a574a55fd3199c1d07185904867dfe58cbf174240ef392978
 SHA512 
523305ba9082ae3808f8498e3aec9a8303d67318376ba978464ddb9d3da7608d2d071de93225c5937ea9981748b05922590bc06f5d06164948fa241defecdfdb
 DIST subrandr-1.1.0.tar.gz 351668 BLAKE2B 
9db4d4f40832e5319bbcdf64b5b8fe3fc1360817d2ff7d517d606ae81a0d7db265dcd6e0a8b43a6a1950c962cbb591d98db6fbe85ecf352f86405441afad8ef7
 SHA512 
c4f4558cabff21911a013337c62c13b97695b41a3dd3407200125ff5318aed6a1c75c683888a92e8cfa34d3ad3d3ab6270ecb50d60ea25d744f9d50d54fb9aa3
+DIST subrandr-1.2.0-vendor.tar.xz 9439668 BLAKE2B 
c3598a7d9e6ba9d584e4a8a6b99f09078d43991508557bde81e06d9bb18f181a1bf74a631dfcb4d247fad5992f80528b2e84e7231613ba757d6f310dce4dc5b8
 SHA512 
eefbc02661f7ad1e2b001143ab567765e521d0bdb8718fc6c7202eea02cc9d6753b10249c14436fff3589180c278f111406aa82e3f65ce2f0d255964de0594bc
+DIST subrandr-1.2.0.tar.gz 366556 BLAKE2B 
d7e9b6874bd5f2898f03bbf56e6bf3ecfbb378bfb12b78f21e4e3ef98b9a4f9a105a5540e98aea7ef702d3a89e06bcfd042503b3c5ed964cb32146804120509c
 SHA512 
b96aea4452d283ef343a8dda3e780e2cc742a6f3bbeb6eeb526293cf0af62f76f66dce042775fdb889ac5358686aa917e8c6a6a4ca1cf9ba7e151a396c50fdef

diff --git a/media-libs/subrandr/subrandr-1.2.0.ebuild 
b/media-libs/subrandr/subrandr-1.2.0.ebuild
new file mode 100644
index 000000000000..d14855bbcd0e
--- /dev/null
+++ b/media-libs/subrandr/subrandr-1.2.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER=1.85.0
+inherit cargo edo
+
+DESCRIPTION="Subtitle rendering library for rendering non-ASS subtitles"
+HOMEPAGE="https://github.com/afishhh/subrandr/";
+SRC_URI="
+       https://github.com/afishhh/subrandr/archive/refs/tags/v${PV}.tar.gz
+               -> ${P}.tar.gz
+       https://dev.gentoo.org/~ionen/distfiles/${P}-vendor.tar.xz
+"
+
+LICENSE="MPL-2.0"
+LICENSE+=" MIT Unicode-3.0 Unicode-DFS-2016 ZLIB" # crates
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+
+RDEPEND="
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/harfbuzz:=
+"
+DEPEND="${RDEPEND}"
+
+QA_FLAGS_IGNORED="usr/lib.*/lib${PN}.*"
+
+src_compile() {
+       # xtask is a bundled builder aliased in .cargo/config.toml, note that
+       # it lacks its own test handler causing `cargo test` to rebuild as-is
+       edo cargo xtask build --verbose
+}
+
+src_install() {
+       local xtaskargs=(
+               # destdir currently expects the prefix to be included
+               --destdir="${ED}"/usr
+               --prefix="${EPREFIX}"/usr
+               --libdir="$(get_libdir)"
+               --verbose
+       )
+
+       edo cargo xtask install "${xtaskargs[@]}"
+}

Reply via email to