commit:     7a12017c5bd245de75cd1e1c2493d48a68bdf696
Author:     Thomas Schneider <qsx <AT> chaotikum <DOT> eu>
AuthorDate: Mon Feb 10 15:58:39 2025 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 21:09:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a12017c

app-emulation/86Box: Add support for virtual networking through net-misc/vde

The strange `-DHAS_VDE=...` CMake argument is because upstream searches
for vde headers and libraries on its own, instead of using pkg-config.

Closes: https://bugs.gentoo.org/949556
Signed-off-by: Thomas Schneider <qsx <AT> chaotikum.eu>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-emulation/86Box/{86Box-4.2.1.ebuild => 86Box-4.2.1-r1.ebuild} | 6 ++++--
 app-emulation/86Box/metadata.xml                                  | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/app-emulation/86Box/86Box-4.2.1.ebuild 
b/app-emulation/86Box/86Box-4.2.1-r1.ebuild
similarity index 90%
rename from app-emulation/86Box/86Box-4.2.1.ebuild
rename to app-emulation/86Box/86Box-4.2.1-r1.ebuild
index 1be46ab052ba..d31e28f23805 100644
--- a/app-emulation/86Box/86Box-4.2.1.ebuild
+++ b/app-emulation/86Box/86Box-4.2.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -12,7 +12,7 @@ 
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="experimental +fluidsynth +munt new-dynarec +openal +qt6 +threads"
+IUSE="experimental +fluidsynth +munt new-dynarec +openal +qt6 +threads vde"
 
 DEPEND="
        app-emulation/faudio
@@ -25,6 +25,7 @@ DEPEND="
        net-libs/libslirp
        sys-libs/zlib
        qt6? ( x11-libs/libXi )
+       vde? ( net-misc/vde )
 "
 
 RDEPEND="
@@ -62,6 +63,7 @@ src_configure() {
                -DQT="$(usex qt6)"
                -DRELEASE="ON"
                $(usex qt6 '-DUSE_QT6=ON' '')
+               -DHAS_VDE="$(usex vde 
"${EPREFIX}/usr/$(get_libdir)/libvdeplug.so" "HAS_VDE-NOTFOUND")"
        )
 
        cmake_src_configure

diff --git a/app-emulation/86Box/metadata.xml b/app-emulation/86Box/metadata.xml
index 7988953f183d..34264c7eee87 100644
--- a/app-emulation/86Box/metadata.xml
+++ b/app-emulation/86Box/metadata.xml
@@ -15,6 +15,7 @@
                <flag name="fluidsynth">Enable MIDI support through 
<pkg>media-sound/fluidsynth</pkg>.</flag>
                <flag name="munt">Enable MIDI MT-32 support through 
<pkg>media-libs/munt-mt32emu</pkg>.</flag>
                <flag name="new-dynarec">Enable new dynamic recompiler from 
PCem 15, which should provide an even better emulation speed.</flag>
+               <flag name="vde">Enable virtual networking through 
<pkg>net-misc/vde</pkg>.</flag>
        </use>
        <upstream>
                <bugs-to>https://github.com/86Box/86Box/issues</bugs-to>

Reply via email to