From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1674883-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 5635015808B
	for <garchives@archives.gentoo.org>; Sun, 29 Sep 2024 22:48:38 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 29EDB2BC014;
	Sun, 29 Sep 2024 22:48:37 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 14EF42BC014
	for <gentoo-commits@lists.gentoo.org>; Sun, 29 Sep 2024 22:48:37 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 405CD3431EA
	for <gentoo-commits@lists.gentoo.org>; Sun, 29 Sep 2024 22:48:36 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 74F661F43
	for <gentoo-commits@lists.gentoo.org>; Sun, 29 Sep 2024 22:48:34 +0000 (UTC)
From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" <ionen@gentoo.org>
Message-ID: <1727649974.e7f68ce62871c4c6bc18f9f0d29e16cc75fc425f.ionen@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/ruffle/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-emulation/ruffle/Manifest app-emulation/ruffle/ruffle-0_p20240929.ebuild
X-VCS-Directories: app-emulation/ruffle/
X-VCS-Committer: ionen
X-VCS-Committer-Name: Ionen Wolkens
X-VCS-Revision: e7f68ce62871c4c6bc18f9f0d29e16cc75fc425f
X-VCS-Branch: master
Date: Sun, 29 Sep 2024 22:48:34 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 0d6a376b-3c81-4b3d-b736-8c23c7db0cf4
X-Archives-Hash: 498e7cf9e08b096b9229a98bc8243cb5

commit:     e7f68ce62871c4c6bc18f9f0d29e16cc75fc425f
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 29 22:34:35 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 22:46:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7f68ce6

app-emulation/ruffle: add 0_p20240929

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

 app-emulation/ruffle/Manifest                  |   2 +
 app-emulation/ruffle/ruffle-0_p20240929.ebuild | 117 +++++++++++++++++++++++++
 2 files changed, 119 insertions(+)

diff --git a/app-emulation/ruffle/Manifest b/app-emulation/ruffle/Manifest
index 237b7e4ff61d..90905a132864 100644
--- a/app-emulation/ruffle/Manifest
+++ b/app-emulation/ruffle/Manifest
@@ -403,6 +403,8 @@ DIST rfd-42dcc7d61fc5e278b4ed76bb9720ba4d89266f01.gh.tar.gz 65500 BLAKE2B 2cc5bc
 DIST ring-0.17.8.crate 4188554 BLAKE2B f531b15cc5cf88f2ef00b1708473a7e98a42dbbd026027ef2c42f2d8bdba0eb1665621fc98db618252f6a131bd54b1493987a0285bf2b9a22eba4c9409ee1cab SHA512 e4966409a4078ee43bfc9cc659d08ad28419effe2a729c8c275361a7fe0620a3c727009bcfb1d0bab265af2bc107b50c19d868a4e80da7a8bb55f97e8b214358
 DIST roxmltree-0.20.0.crate 54594 BLAKE2B 9605ca407af248c71e0d2bc24d213aa6ff08a14eb548b85de16de7e172a617cdf12c2e4c686f6dd1c80455448a313f6e7d760885f189ae726934efbe06fb5603 SHA512 f8a934d3809e417c43bca53478cef0a7a18d908620175c84cfa2cdb8c85775b52cc641fb7eb12c80c483e0c17eb500dd3358ace858aceaa810d3ddbdef902d91
 DIST ruffle-nightly-2024-09-02.tar.gz 93417248 BLAKE2B 6ff7e15bfed5cae43b92d709db4da8af3f212f2dd040f3d9c24268e1c11e154887e44a762101501029c5f59039a432eaf5062ef2011581b0660b94571cb65080 SHA512 ec5dfe5092f8c14d3b6fc8fff53bd7f445bfe2b9f05162f3f1189b1864f35e2e86caa6ca7869d1f75be4a4d89c207d8a75ec53d3eaa027faa7686b527b8f8c94
+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 rust-flash-lso-f9e3de59a86df1c954fecba6b4b752df61cad73a.gh.tar.gz 686089 BLAKE2B 7cc3dffbb9e57b39611649bfd034bb23dee8a6bd113bd871017966e81c4ddab876c89bf7f129e90b7e7dbd58190e71e72a602fa5d43dffb4f55b3ff2d53a7e88 SHA512 8f60c3c68f40d1138c0342819515ce29f8d2d9171b1aa19ce26b2233be97e336bf2743f55bf72f0284e2635b1fa42f7de9a940b11e50a06970224ddc9d730705
 DIST rustc-demangle-0.1.24.crate 29047 BLAKE2B 8248b014eedb26cdc0b748544ba91b9aae9c992a6f93b4d3ac256b78f691d572f8885a3575492ea556698a241d2759743968293079ca02bb6a5f318b0ed66dd4 SHA512 eb897c35300b87766e6105917a907fca1c5b1f7691fc03c6c1aaf38075ac883a73d1eb54a245d13ba59c7b0f0333d6543e23fc1b1c542fbbd5c750a84660b9e8
 DIST rustc-hash-1.1.0.crate 9331 BLAKE2B 16ac56622897f47a06b661fb59a196b08d48e782ab87549c8bd5c6fe92f374c9bfd44dcb36588512bd9b6125c2fd79a12d648aaa308fd9694bcca3a7c1b49ac9 SHA512 84e673ea9b046f7b989d47f2c4505557fbd5de991e6fc9f56a03605d40e0b4ba5427cd566954890153cc033ccbec6c984306634571935bfe0d4cdfbe56f39544

diff --git a/app-emulation/ruffle/ruffle-0_p20240929.ebuild b/app-emulation/ruffle/ruffle-0_p20240929.ebuild
new file mode 100644
index 000000000000..fbb6ac59d57f
--- /dev/null
+++ b/app-emulation/ruffle/ruffle-0_p20240929.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
+}