commit:     6902587923eeb5b7afc97a3fbc67d28cd1704acb
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 13 05:16:42 2026 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Feb 13 05:47:41 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69025879

app-emulation/ruffle: add 0_p20260213

Tentatively drop the skip-render-tests patch, the upstream
code has been shifted around a lot and unclear if it is still
a problem -- in theory it should auto-detect and disable these
(not something I ever had issues with myself, but tinderboxes
did -- will see).

Note that the previous version tests started failing, possibly
due to using newer rust -- but this one seems fine. Sorry for
long delay before a new snapshot, kept putting it off. Will
likely switch to a bump per 3 months rather than 1-2 though
unless upstream starts doing proper releases.

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

 app-emulation/ruffle/Manifest                  |  2 +
 app-emulation/ruffle/ruffle-0_p20260213.ebuild | 83 ++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

diff --git a/app-emulation/ruffle/Manifest b/app-emulation/ruffle/Manifest
index 63bc4f475fcf..04e0087dfa74 100644
--- a/app-emulation/ruffle/Manifest
+++ b/app-emulation/ruffle/Manifest
@@ -1,2 +1,4 @@
 DIST ruffle-nightly-2025-08-02-vendor.tar.xz 25374080 BLAKE2B 
ee501db85809daf8076f079d05399b3f76da09c2d37c2499433c1c7c04d4b13440fff099142d5d0a3b5a9269bece06ebe07cdd7b599d0ad78430b01bd0c05ff7
 SHA512 
3278ca8cfe99b5f3fcdf0aaf0cff5bf45a1fe8ca92de5815388f1fee448790a3a5f9a33f40405b44c3119cfebff8828b800bcd3627ddcf78c98795909b106071
 DIST ruffle-nightly-2025-08-02.tar.gz 99265559 BLAKE2B 
bf5f18d394d3bcba298bb87d59df4cb0c2f45b2eea60c49721b8018466dc943fe043f42f17a52fdb7af7b5fe829d8233685a4c2d6974baa959f2a0b98ceb3132
 SHA512 
3d5220fe5670151643e4837c491359bd65dd5b46e59bf847a1063873a139f233e32505c506397f354a69e244e83c6e85bcd055a3a784add9d306128ec52f075a
+DIST ruffle-nightly-2026-02-13-vendor.tar.xz 26927192 BLAKE2B 
66244948ffaa3a8517a520ee8b45af6f43d1251df7e154d31fd925fe1cfc041389825b5873d25353341a899918a93356b2c094d17f52bd1d45fe41565570bdca
 SHA512 
e9a8b27e940479d66ef9a503b3acab3822b5b84235c6134e7214e772a930b2734853956a9fdce0cd8ae791aecc1477f037668a09873fd2f56b17ef2f4ffbfd80
+DIST ruffle-nightly-2026-02-13.tar.gz 106785038 BLAKE2B 
49d4ca11a67e3c4e0c8503bac2e1356fc3a0953ebff61891e6749cada142b9aa680c739e3e9822a523775a636676df9fc9309cc2834712ac8676e66fd4162932
 SHA512 
e5dda58028961b2c31b3c028f47ea390393b4f0d15f9270ad863ad5d7f02908d99cce1fca903d0581ac4a537b1f9952debb97a69c1c5b963f1dc2cb902a2c256

diff --git a/app-emulation/ruffle/ruffle-0_p20260213.ebuild 
b/app-emulation/ruffle/ruffle-0_p20260213.ebuild
new file mode 100644
index 000000000000..3f446d27ac9a
--- /dev/null
+++ b/app-emulation/ruffle/ruffle-0_p20260213.ebuild
@@ -0,0 +1,83 @@
+# Copyright 2021-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER=1.88.0
+inherit cargo desktop optfeature xdg
+
+MY_PV=nightly-${PV:3:4}-${PV:7:2}-${PV:9:2}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Flash Player emulator written in Rust"
+HOMEPAGE="https://ruffle.rs/";
+SRC_URI="
+       https://github.com/ruffle-rs/ruffle/archive/refs/tags/${MY_PV}.tar.gz
+               -> ${MY_P}.tar.gz
+       https://dev.gentoo.org/~ionen/distfiles/${MY_P}-vendor.tar.xz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="|| ( Apache-2.0 MIT )"
+LICENSE+="
+       Apache-2.0 BSD-2 BSD CC0-1.0 ISC MIT MPL-2.0 OFL-1.1 openssl
+       UbuntuFontLicense-1.0 Unicode-3.0 ZLIB BZIP2
+" # crates
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+# X/wayland libraries are dlopen'ed and are unneeded to build, assume
+# users will have whichever they need rather than do USE or optfeatures
+RDEPEND="
+       media-libs/alsa-lib
+       virtual/libudev:=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/jre:*
+       virtual/pkgconfig
+"
+
+QA_FLAGS_IGNORED="usr/bin/${PN}.*"
+
+src_configure() {
+       local workspaces=(
+               ruffle_{desktop,scanner}
+               exporter
+               $(usev test tests)
+       )
+
+       cargo_src_configure "${workspaces[@]/#/--package=}"
+}
+
+src_install() {
+       dodoc README.md
+
+       newicon web/packages/extension/assets/images/icon180.png ${PN}.png
+       make_desktop_entry --eapi9 ${PN} -n ${PN^} -c 
"AudioVideo;Player;Emulator;" \
+               -e 
"MimeType=application/x-shockwave-flash;application/vnd.adobe.flash.movie;"
+
+       cd "$(cargo_target_dir)" || die
+       newbin ${PN}_desktop ${PN}
+       newbin exporter ${PN}_exporter
+       dobin ${PN}_scanner
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if [[ ! ${REPLACING_VERSIONS} ]]; then
+               elog "${PN} is experimental software that is still under heavy 
development"
+               elog "and only receiving nightly releases. Plans in Gentoo is 
to update"
+               elog "roughly every 3+ months if no known major regressions 
(feel free"
+               elog "to report if you feel a newer nightly right away)."
+               elog
+               elog "There is currently no plans to support wasm builds / 
browser"
+               elog "extensions, this provides the desktop viewer and other 
tools."
+       fi
+
+       optfeature "h264 video decoding" media-libs/openh264
+       optfeature "the in-application file picker" sys-apps/xdg-desktop-portal
+}

Reply via email to