diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-28 03:04:40 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-28 03:04:40 +0000 |
commit | 5d4291ee2ba8b85e8515b5f47b814a5c872eed04 (patch) | |
tree | 154246a13fd11756f110f04fee093e44a6cdea82 /app-emulation/ruffle | |
parent | 83d9fce566bb89f6976f36f5314bfc88b6d261fa (diff) |
gentoo auto-resync : 28:10:2024 - 03:04:40
Diffstat (limited to 'app-emulation/ruffle')
-rw-r--r-- | app-emulation/ruffle/Manifest | 3 | ||||
-rw-r--r-- | app-emulation/ruffle/ruffle-0_p20241027.ebuild | 117 |
2 files changed, 120 insertions, 0 deletions
diff --git a/app-emulation/ruffle/Manifest b/app-emulation/ruffle/Manifest index e32bd121d73c..9bc55c04592e 100644 --- a/app-emulation/ruffle/Manifest +++ b/app-emulation/ruffle/Manifest @@ -1,6 +1,9 @@ AUX ruffle-0_p20231216-skip-render-tests.patch 662 BLAKE2B 1715c6e5c80c0e4e2a53a70bab319bb78e493a8e48ad01c8ade5ddfdd76e7590506e46f2c2fafb9ac4e732ebefd04fd563e8a2f0c2f5d60bd29d0bf8eb7fbacf SHA512 7d42b5c7f1a11bc7666739fd76e341ff57e2dda25b95e883897d705e0bc37ab0beffa842d34902601b24ced1b0134855c85813067c83a2ea36c73ff7daf7c697 DIST ruffle-nightly-2024-09-29-vendor.tar.xz 68100452 BLAKE2B 31644cd0015e54ac784be531587c2d44412dcf68dbefd391df44268b31925262bf6ea676ab0a5cbf15d81494109db328b4519742bff61558608a3baf795ff8bc SHA512 1ee34f2fdecb5cc2bf5fdf7d728185a74ca72caf2295096842e557a321e54bc9ae4812c46f18ef42c2033703e26ef4edb124fc0a2a7ad8a9dfb2671473082a31 DIST ruffle-nightly-2024-09-29.tar.gz 93467899 BLAKE2B 9a9c10686e161ce913892279378bca6c4aea67397bad6fb500e18d5362ee9c6303fcb20238dd8e1fbdb3cbeaa2eaa623eb3b5f2b8c7c9f2ca061c1edb5cc239b SHA512 1a835c5fcb7e6420cea5680af6d14e0bf8d889823b5f2617373aeec88511a31300441c869b53e01e32900e8cb1b2a9e69d52434dc4586354d266a8b6a99af2bb +DIST ruffle-nightly-2024-10-27-vendor.tar.xz 68393412 BLAKE2B 16a3cb7a16900d21c91e900d0dc8b1036120abd2168fea2482473bb9c2170de4e1d5619fad15dd8b9df44228b93167f1b722311f7f54a5dff1a9c78682fdf04a SHA512 d085af00d4417e961bf7e05b7af1c70f222ac1277c701d67ce99084f85648eba521273269732d74ddc281fb71c8762646cd15c6f1f1a05da788f04ea302696b0 +DIST ruffle-nightly-2024-10-27.tar.gz 93507412 BLAKE2B fcbcd5639bffa8fd1157e1f19765e7ea6721073fc9af6579562a5412d1d07086f53de7d099001ab4eb1b4d497077f09dd1a6da6eaf92c71f12cd1c61633d6f78 SHA512 19790a6641c61ef7e2c1ec94039452c06ea95273de2868198a307d21da955d4196ae33e0807c8f8c74e3f996dc8e26bebdd59ad8bdfa40c9fe6a8afcc745e91f EBUILD ruffle-0_p20240929.ebuild 2784 BLAKE2B 5efcb00b6655d05dfa7e34c3b4ec39962f913f90931126db1062ba17c46b17e70110e85aef3fe6543009642b27d75751597a72eee892855beb6183a5eed8f18f SHA512 0ac3b561e521deb8dcf3bae3d5b68370aec16a341fcb798892aace709306507d54ae3e6b84ef58e49492a63d3e6f133a59235a33e9a8d11587b31150a172bad2 +EBUILD ruffle-0_p20241027.ebuild 2785 BLAKE2B 5466655dc03439ed2c2f73faac1f848a889d4d16ae0199c9419240209d49bc0bfd603409afde97dea17057dc91f8947d5f0b4fdb072df1570a8cc50ae9d44536 SHA512 d1b14813799d9867ac99a4702b178805315832d088b8094340d0c0ba446cf340194262026e8f7eb6f73dc5d1a86547cd1ab56731873e9577fb05661ceb78dd58 EBUILD ruffle-9999.ebuild 2785 BLAKE2B 5466655dc03439ed2c2f73faac1f848a889d4d16ae0199c9419240209d49bc0bfd603409afde97dea17057dc91f8947d5f0b4fdb072df1570a8cc50ae9d44536 SHA512 d1b14813799d9867ac99a4702b178805315832d088b8094340d0c0ba446cf340194262026e8f7eb6f73dc5d1a86547cd1ab56731873e9577fb05661ceb78dd58 MISC metadata.xml 327 BLAKE2B aad7b4089000263fccd1bf6af04e88ac138658121db322215ce0dcc85380b12afa01cdcd2be232c5d2c773698b38903759ecaea6f4854d8c90c420c0a43f33b1 SHA512 bb5e665acc6d02ae3e6a22fbb483c293142104e538d386a9b93884f097629dcbb8ca7b614aa20e0358bf22ae36487c7d86cc1467103987845a70ebacc9c4a5d2 diff --git a/app-emulation/ruffle/ruffle-0_p20241027.ebuild b/app-emulation/ruffle/ruffle-0_p20241027.ebuild new file mode 100644 index 000000000000..fbb6ac59d57f --- /dev/null +++ b/app-emulation/ruffle/ruffle-0_p20241027.ebuild @@ -0,0 +1,117 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cargo desktop optfeature xdg + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://code.videolan.org/videolan/libplacebo.git" + inherit git-r3 +else + MY_PV=nightly-${PV:3:4}-${PV:7:2}-${PV:9:2} + MY_P=${PN}-${MY_PV} + 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} + KEYWORDS="~amd64" +fi + +DESCRIPTION="Flash Player emulator written in Rust" +HOMEPAGE="https://ruffle.rs/" + +LICENSE="|| ( Apache-2.0 MIT )" +LICENSE+=" + Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 ISC UbuntuFontLicense-1.0 MIT + MPL-2.0 OFL-1.1 openssl Unicode-3.0 Unicode-DFS-2016 ZLIB +" # crates +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +# dlopen: libX* (see winit+x11-dl crates) +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 + >=virtual/rust-1.81 +" + +QA_FLAGS_IGNORED="usr/bin/${PN}.*" + +PATCHES=( + "${FILESDIR}"/${PN}-0_p20231216-skip-render-tests.patch +) + +src_unpack() { + if [[ ${PV} == 9999 ]]; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + +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 +} |