From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 EB84A158086 for ; Tue, 14 Dec 2021 20:20:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07731E0858; Tue, 14 Dec 2021 20:20:30 +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 0DDD2E0858 for ; Tue, 14 Dec 2021 20:20:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 2A7C13437D9 for ; Tue, 14 Dec 2021 20:20:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 756B623E for ; Tue, 14 Dec 2021 20:20:25 +0000 (UTC) From: "Ionen Wolkens" 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" Message-ID: <1639512900.4d2aca5863213bc6cc823863f0370a3eaec492cf.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/ruffle/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/ruffle/ruffle-9999.ebuild X-VCS-Directories: app-emulation/ruffle/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 4d2aca5863213bc6cc823863f0370a3eaec492cf X-VCS-Branch: master Date: Tue, 14 Dec 2021 20:20:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 18255108-c5e3-4b24-82eb-f6de14816c8b X-Archives-Hash: d7e20dd56f17387932520260e120aa8f commit: 4d2aca5863213bc6cc823863f0370a3eaec492cf Author: Ionen Wolkens gentoo org> AuthorDate: Wed Dec 8 05:05:30 2021 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Tue Dec 14 20:15:00 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d2aca58 app-emulation/ruffle: add live ebuild This is lower maintenance than the releases given don't need to worry about crate snapshots. Signed-off-by: Ionen Wolkens gentoo.org> app-emulation/ruffle/ruffle-9999.ebuild | 68 +++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/app-emulation/ruffle/ruffle-9999.ebuild b/app-emulation/ruffle/ruffle-9999.ebuild new file mode 100644 index 000000000000..085d64c07400 --- /dev/null +++ b/app-emulation/ruffle/ruffle-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# python is needed by xcb-0.8.2 until update to >=0.10 +PYTHON_COMPAT=( python3_{8..10} ) +inherit cargo desktop flag-o-matic git-r3 python-any-r1 xdg + +DESCRIPTION="Flash Player emulator written in Rust" +HOMEPAGE="https://ruffle.rs/" +EGIT_REPO_URI="https://github.com/ruffle-rs/ruffle.git" + +LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0 ZLIB curl zlib-acknowledgement" +SLOT="0" +IUSE="gui" + +DEPEND=" + dev-libs/openssl:= + media-libs/alsa-lib + sys-libs/zlib:= + x11-libs/libxcb:=" +RDEPEND=" + ${DEPEND} + gui? ( + || ( + gnome-extra/zenity + kde-apps/kdialog + ) + )" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig + >=virtual/rust-1.56" + +QA_FLAGS_IGNORED=" + usr/bin/${PN} + usr/bin/${PN}_exporter + usr/bin/${PN}_scanner" + +src_unpack() { + git-r3_src_unpack + cargo_live_src_unpack +} + +src_compile() { + filter-flags '-flto*' # undefined references with tinyfiledialogs and more + + cargo_src_compile --bins # note: configure --bins would skip tests +} + +src_install() { + dodoc README.md + + # does not have a real GUI yet, flag is used to ensure there is a + # way for messages and file picker to be displayed with .desktop + if use gui; then + 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;" + fi + + cd target/$(usex debug{,} release) || die + + newbin ${PN}_desktop ${PN} + newbin exporter ${PN}_exporter + dobin ${PN}_scanner +}