commit:     b6432bb97be1fbfa888f5a9a3ddd6be80e6f97b0
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  9 22:12:46 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Feb  9 22:41:16 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6432bb9

app-emulation/ruffle: sync live (fwiw)

cargo vendor is currently broken, may just drop the live ebuild if
this continues as would rather not have to implement hacks in live,
aka getting:

  Found duplicate version of package `dasp_sample v0.11.0` vendored
  from two sources:
    source 1: registry `crates-io`
    source 2: https://github.com/RustAudio/dasp?rev=<snip>

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

 app-emulation/ruffle/ruffle-9999.ebuild | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/app-emulation/ruffle/ruffle-9999.ebuild 
b/app-emulation/ruffle/ruffle-9999.ebuild
index 2e43a88f8190..5abbe4507eac 100644
--- a/app-emulation/ruffle/ruffle-9999.ebuild
+++ b/app-emulation/ruffle/ruffle-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2021-2022 Gentoo Authors
+# Copyright 2021-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit cargo desktop flag-o-matic git-r3 xdg
+inherit cargo desktop flag-o-matic git-r3 virtualx xdg
 
 DESCRIPTION="Flash Player emulator written in Rust"
 HOMEPAGE="https://ruffle.rs/";
@@ -31,7 +31,11 @@ DEPEND="
 BDEPEND="
        virtual/jre:*
        virtual/pkgconfig
-       >=virtual/rust-1.64"
+       >=virtual/rust-1.64
+       test? (
+               media-libs/mesa[llvm]
+               x11-base/xorg-server[-minimal]
+       )"
 
 QA_FLAGS_IGNORED="usr/bin/${PN}.*"
 
@@ -46,6 +50,10 @@ src_compile() {
        cargo_src_compile --bins # note: configure --bins would skip tests
 }
 
+src_test() {
+       virtx cargo_src_test
+}
+
 src_install() {
        dodoc README.md
 

Reply via email to