diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-25 06:47:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-25 06:47:12 +0000 |
commit | 4dec849539ecb0ceab14d66af84960f01b9a284c (patch) | |
tree | 70e3b3443839fd480586c6a3bc5f95ac0087603d /app-emulation/ruffle | |
parent | f1e6490ffadd8d677960342b348f2b08492dd5f6 (diff) |
gentoo auto-resync : 25:01:2025 - 06:47:11
Diffstat (limited to 'app-emulation/ruffle')
-rw-r--r-- | app-emulation/ruffle/Manifest | 3 | ||||
-rw-r--r-- | app-emulation/ruffle/ruffle-0_p20250124.ebuild | 104 |
2 files changed, 107 insertions, 0 deletions
diff --git a/app-emulation/ruffle/Manifest b/app-emulation/ruffle/Manifest index de62fa5cb9ce..529003ef346f 100644 --- a/app-emulation/ruffle/Manifest +++ b/app-emulation/ruffle/Manifest @@ -1,5 +1,8 @@ AUX ruffle-0_p20231216-skip-render-tests.patch 662 BLAKE2B 1715c6e5c80c0e4e2a53a70bab319bb78e493a8e48ad01c8ade5ddfdd76e7590506e46f2c2fafb9ac4e732ebefd04fd563e8a2f0c2f5d60bd29d0bf8eb7fbacf SHA512 7d42b5c7f1a11bc7666739fd76e341ff57e2dda25b95e883897d705e0bc37ab0beffa842d34902601b24ced1b0134855c85813067c83a2ea36c73ff7daf7c697 DIST ruffle-nightly-2024-11-29-vendor.tar.xz 67239116 BLAKE2B d2eaaf7c7528207a1fabc67cd52bab37442e4c09a740842840f3e44a0d79c826f17b1014e30fcbb07b9e6346c48d4a92439c209b7f54ddc1897cb4166546a295 SHA512 fbf8589d2c9b21b1cb6e93963e8350fad77854e351538ac8155f16bbc16f0ecb1680f7ac7066d14e7fffefa5ead217acc8b8a9319ded891abdeffd5890797776 DIST ruffle-nightly-2024-11-29.tar.gz 94965476 BLAKE2B 9440808ebc0f2db33df06f45eaf6b089b56b6ce604537c522ba57bb2e7e6ada4f334fa4e483547af9b203c4047566d88d88dbca93c6ab2dd8d1a5ced20bc6cdb SHA512 380da319ee84bddc9f12d472516471a18177f748b4072d1853e3aa9d6311226230cf5e38ac4b30041507f836ff620c04aa69e6e45407571d752baf77ac7ea42a +DIST ruffle-nightly-2025-01-24-vendor.tar.xz 67182584 BLAKE2B 0927c7d181f86bb152ef1224efdebc88152b2966a24d11e7434a6b3aff472c8ea47164c9f61f3554561de78bb9a7a9c60648c994fc9feeb03903a72ccd3f8620 SHA512 9cbb5edb8bd7ba8d2a6dccbce20dd8026b3f6f7d47131292e7f55cc3fee7154189b9749b2142d32eaa879b18461c698317dd9b36f808482f656acb9f1dd8253f +DIST ruffle-nightly-2025-01-24.tar.gz 95156736 BLAKE2B 7d66931308ab93c0e5cb95727297fbbf03406840c4b793033d277ebfa0c5f8a28e627439736fed4bdc537b3363b691da8efc4b1b3f653a9aa31b741dc0746f56 SHA512 b958e9b685ae529a33253a536fb67030ff0cc1bd78967bbefc5146eced710650f277c32ad37d1f4cd6ce1c43b9be6ad28f51b46ce14afe0644137065a7ef0215 EBUILD ruffle-0_p20241129.ebuild 2625 BLAKE2B 8e1893bbf56737d1d57accdf6da04ca8cff425674b222607fd9b2cb20db1340f0db27d08328e8d61b60bfbe1de13c0f6f3da71e6220755f9baa6b3702a677e83 SHA512 0908e9a179d75cc509315b6c609a17ecd528b7685267a9684e5cdd16a98c913d10a16883d5c4e2605f7404c1c98689d5ae561bdb0a5941ec5390567fd6ccdb8c +EBUILD ruffle-0_p20250124.ebuild 2609 BLAKE2B 859f27f36e93e4fc5f1d6eb17a368ee57141ece4358feae0592f9b87d03c02b3b29a1876a6c6bf2845ae1cfd8a416378c93d6449b76ba87a5b91ef93d69df2b6 SHA512 e941b3913a3b3912b807628e6921ebb3feca907e002e5865f74d06a27a38a1e0df9c93cf7d57ef49384322076bc4121cb9bb00c86f8ad91a13eb700d68e240bb MISC metadata.xml 327 BLAKE2B aad7b4089000263fccd1bf6af04e88ac138658121db322215ce0dcc85380b12afa01cdcd2be232c5d2c773698b38903759ecaea6f4854d8c90c420c0a43f33b1 SHA512 bb5e665acc6d02ae3e6a22fbb483c293142104e538d386a9b93884f097629dcbb8ca7b614aa20e0358bf22ae36487c7d86cc1467103987845a70ebacc9c4a5d2 diff --git a/app-emulation/ruffle/ruffle-0_p20250124.ebuild b/app-emulation/ruffle/ruffle-0_p20250124.ebuild new file mode 100644 index 000000000000..1889e442e4e9 --- /dev/null +++ b/app-emulation/ruffle/ruffle-0_p20250124.ebuild @@ -0,0 +1,104 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +RUST_MIN_VER=1.82.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 BSD-2 Boost-1.0 CC0-1.0 ISC MIT MPL-2.0 OFL-1.1 + UbuntuFontLicense-1.0 Unicode-3.0 ZLIB openssl +" # crates +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +# dlopen: libX* (see winit+x11-dl crates -- TODO: need to recheck +# if still correct and for the potential to be optional on wayland) +RDEPEND=" + media-libs/alsa-lib + virtual/libudev:= + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXrandr + x11-libs/libXrender +" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" +BDEPEND=" + virtual/jre:* + virtual/pkgconfig +" + +QA_FLAGS_IGNORED="usr/bin/${PN}.*" + +PATCHES=( + "${FILESDIR}"/${PN}-0_p20231216-skip-render-tests.patch +) + +src_configure() { + local workspaces=( + ruffle_{desktop,scanner} + exporter + $(usev test tests) + ) + + cargo_src_configure "${workspaces[@]/#/--package=}" +} + +src_test() { + local skip=( + # may need more investigation, strangely "pass" (xfail) when + # RUSTFLAGS is unset, skip for now (bug #915726) + --skip from_avmplus/as3/Types/Int/wraparound + ) + + cargo_src_test -- "${skip[@]}" +} + +src_install() { + dodoc README.md + + newicon web/packages/extension/assets/images/icon180.png ${PN}.png + make_desktop_entry ${PN} ${PN^} ${PN} "AudioVideo;Player;Emulator;" \ + "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 months if no known major regressions (feel free to" + elog "report if you feel a newer nightly is needed ahead of time)." + 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 +} |