summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-12-08 00:05:30 -0500
committerIonen Wolkens <ionen@gentoo.org>2021-12-14 15:15:00 -0500
commit4d2aca5863213bc6cc823863f0370a3eaec492cf (patch)
treec4c4a54ba8d9889706197be7b27958e83560daf3 /app-emulation
parentapp-emulation/ruffle: initial import, nightly-2021-12-14 (diff)
downloadgentoo-4d2aca5863213bc6cc823863f0370a3eaec492cf.tar.gz
gentoo-4d2aca5863213bc6cc823863f0370a3eaec492cf.tar.bz2
gentoo-4d2aca5863213bc6cc823863f0370a3eaec492cf.zip
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 <ionen@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/ruffle/ruffle-9999.ebuild68
1 files changed, 68 insertions, 0 deletions
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
+}