commit:     a98598635ec1ab709c6e2bb661c9873f0c4e4842
Author:     Octiabrina Terrien-Puig <octiabrina <AT> myrvogna <DOT> net>
AuthorDate: Mon May 24 20:02:58 2021 +0000
Commit:     Octiabrina Terrien-Puig <octiabrina <AT> myrvogna <DOT> net>
CommitDate: Mon May 24 20:03:37 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a9859863

games-emulation/duckstation: improve live

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Octiabrina Terrien-Puig <octiabrina <AT> myrvogna.net>

 games-emulation/duckstation/duckstation-9999.ebuild         | 9 +++------
 games-emulation/duckstation/files/duckstation-nogui.desktop | 9 ---------
 games-emulation/duckstation/files/duckstation-qt.desktop    | 9 ---------
 3 files changed, 3 insertions(+), 24 deletions(-)

diff --git a/games-emulation/duckstation/duckstation-9999.ebuild 
b/games-emulation/duckstation/duckstation-9999.ebuild
index a528dff2f..502d782dd 100644
--- a/games-emulation/duckstation/duckstation-9999.ebuild
+++ b/games-emulation/duckstation/duckstation-9999.ebuild
@@ -13,7 +13,7 @@ EGIT_SUBMODULES=()
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="discord egl evdev fbdev +gamepad gbm +nogui qt5 retroachievements 
wayland X"
+IUSE="discord +egl +evdev fbdev +gamepad gbm +nogui qt5 retroachievements 
wayland X"
 
 # Either or both frontends must be built
 REQUIRED_USE="
@@ -43,7 +43,6 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
-# Set working directory to checkout directory
 S="${WORKDIR}/${PN}"
 
 src_configure() {
@@ -59,10 +58,8 @@ src_configure() {
                -DUSE_SDL2=$(usex gamepad)
                -DUSE_WAYLAND=$(usex wayland)
                -DUSE_X11=$(usex X)
-
                -DBUILD_SHARED_LIBS=OFF
        )
-
        cmake_src_configure
 }
 
@@ -80,8 +77,8 @@ src_install() {
                newicon -s 64 dist/icon-64px.png duckstation-nogui
                newicon -s 128 dist/icon-128px.png duckstation-nogui
                newicon -s 256 dist/icon-256px.png duckstation-nogui
-               domenu "${FILESDIR}"/duckstation-nogui.desktop
                doins "${BUILD_DIR}"/bin/duckstation-nogui
+               dosym ../../opt/${PN}/duckstation-qt usr/bin/duckstation-qt
                fperms +x /opt/${PN}/duckstation-nogui
        fi
 
@@ -92,8 +89,8 @@ src_install() {
                newicon -s 64 dist/icon-64px.png duckstation-qt
                newicon -s 128 dist/icon-128px.png duckstation-qt
                newicon -s 256 dist/icon-256px.png duckstation-qt
-               domenu "${FILESDIR}"/duckstation-qt.desktop
                doins "${BUILD_DIR}"/bin/duckstation-qt
+               dosym ../../opt/${PN}/duckstation-qt usr/bin/duckstation-qt
                fperms +x /opt/${PN}/duckstation-qt
        fi
 }

diff --git a/games-emulation/duckstation/files/duckstation-nogui.desktop 
b/games-emulation/duckstation/files/duckstation-nogui.desktop
deleted file mode 100644
index cade45f8d..000000000
--- a/games-emulation/duckstation/files/duckstation-nogui.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=DuckStation NoGUI
-GenericName=PlayStation 1 Emulator
-Comment=Fast-ish PlayStation 1 emulator
-Icon=duckstation-nogui
-TryExec=/opt/duckstation/duckstation-nogui
-Exec=/opt/duckstation/duckstation-nogui %f
-Categories=Game;Emulator;

diff --git a/games-emulation/duckstation/files/duckstation-qt.desktop 
b/games-emulation/duckstation/files/duckstation-qt.desktop
deleted file mode 100644
index 42aee875c..000000000
--- a/games-emulation/duckstation/files/duckstation-qt.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=DuckStation Qt
-GenericName=PlayStation 1 Emulator
-Comment=Fast-ish PlayStation 1 emulator
-Icon=duckstation-qt
-TryExec=/opt/duckstation/duckstation-qt
-Exec=/opt/duckstation/duckstation-qt %f
-Categories=Game;Emulator;Qt;

Reply via email to