diff options
author | 2024-11-14 07:32:31 -0500 | |
---|---|---|
committer | 2024-11-14 07:41:20 -0500 | |
commit | ba11bae7d482c056ae2e5cf365e9a6f320b269ed (patch) | |
tree | 49e52cba6a317ac236b51925827d6cabe0ec0fc8 /app-emulation | |
parent | dev-db/mariadb: enforce system libfmt (diff) | |
download | gentoo-ba11bae7d482c056ae2e5cf365e9a6f320b269ed.tar.gz gentoo-ba11bae7d482c056ae2e5cf365e9a6f320b269ed.tar.bz2 gentoo-ba11bae7d482c056ae2e5cf365e9a6f320b269ed.zip |
app-emulation/ruffle: drop 9999
Re previous commit, on 2nd thought... let's go ahead and drop it.
9999 been broken often, needed hacks before, and it just increase
the workload to keep it in sync. Also doesn't add that much when
nightly release is updated somewhat regularly every months.
If someone needs a newer nightly ahead of the monthly-release time,
please file a bug then can do it early and everyone can benefit.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/ruffle/ruffle-0_p20241027-r1.ebuild | 35 | ||||
-rw-r--r-- | app-emulation/ruffle/ruffle-9999.ebuild | 118 |
2 files changed, 10 insertions, 143 deletions
diff --git a/app-emulation/ruffle/ruffle-0_p20241027-r1.ebuild b/app-emulation/ruffle/ruffle-0_p20241027-r1.ebuild index fca1eafc517a..f01425116f94 100644 --- a/app-emulation/ruffle/ruffle-0_p20241027-r1.ebuild +++ b/app-emulation/ruffle/ruffle-0_p20241027-r1.ebuild @@ -3,27 +3,20 @@ EAPI=8 -RUST_MIN_VER="1.81.0" - +RUST_MIN_VER=1.81.0 inherit cargo desktop optfeature xdg -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI="https://github.com/ruffle-rs/ruffle.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 +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+=" @@ -31,6 +24,7 @@ LICENSE+=" MPL-2.0 OFL-1.1 openssl Unicode-3.0 Unicode-DFS-2016 ZLIB " # crates SLOT="0" +KEYWORDS="~amd64" IUSE="test" RESTRICT="!test? ( test )" @@ -58,15 +52,6 @@ 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} diff --git a/app-emulation/ruffle/ruffle-9999.ebuild b/app-emulation/ruffle/ruffle-9999.ebuild deleted file mode 100644 index d31d183926d7..000000000000 --- a/app-emulation/ruffle/ruffle-9999.ebuild +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright 2021-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -RUST_MIN_VERSION="1.81.0" - -inherit cargo desktop optfeature xdg - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI="https://github.com/ruffle-rs/ruffle.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 -" - -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 -} |