mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
games-emulation/duckstation: treeclean
Closes: https://bugs.gentoo.org/912996 Closes: https://bugs.gentoo.org/916321 Closes: https://bugs.gentoo.org/926268 Closes: https://bugs.gentoo.org/932124 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
@@ -1,94 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit xdg cmake desktop git-r3
|
||||
|
||||
DESCRIPTION="Fast Sony PlayStation (PSX) emulator"
|
||||
HOMEPAGE="https://github.com/stenzek/duckstation"
|
||||
EGIT_REPO_URI="https://github.com/stenzek/duckstation.git"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
|
||||
EGIT_SUBMODULES=()
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="CC-BY-NC-ND-4.0"
|
||||
SLOT="0"
|
||||
IUSE="+dbus discord +egl +evdev fbdev +gamepad gbm +nogui qt6 retroachievements wayland X"
|
||||
|
||||
# Either or both frontends must be built
|
||||
REQUIRED_USE="
|
||||
?? ( fbdev gbm )
|
||||
gbm? ( egl )
|
||||
wayland? ( egl )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
wayland? ( kde-frameworks/extra-cmake-modules )
|
||||
"
|
||||
DEPEND="
|
||||
media-libs/cubeb
|
||||
evdev? ( dev-libs/libevdev )
|
||||
dbus? ( sys-apps/dbus )
|
||||
gamepad? ( >=media-libs/libsdl2-2.28.5 )
|
||||
gbm? ( x11-libs/libdrm )
|
||||
qt6? (
|
||||
dev-qt/qtbase:6[gui,network,widgets]
|
||||
dev-qt/qttools:6[linguist]
|
||||
)
|
||||
retroachievements? ( net-misc/curl[curl_ssl_gnutls] )
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrandr
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_CUBEB=ON
|
||||
-DBUILD_NOGUI_FRONTEND=$(usex nogui)
|
||||
-DBUILD_QT_FRONTEND=$(usex qt6)
|
||||
-DENABLE_CHEEVOS=$(usex retroachievements)
|
||||
-DENABLE_DISCORD_PRESENCE=$(usex discord)
|
||||
-DUSE_DBUS=$(usex dbus)
|
||||
-DUSE_DRMKMS=$(usex gbm)
|
||||
-DUSE_EGL=$(usex egl)
|
||||
-DUSE_EVDEV=$(usex evdev)
|
||||
-DUSE_FBDEV=$(usex fbdev)
|
||||
-DUSE_SDL2=$(usex gamepad)
|
||||
-DUSE_WAYLAND=$(usex wayland)
|
||||
-DUSE_X11=$(usex X)
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.md
|
||||
|
||||
# Binary and resources files must be in same directory – installing in /opt
|
||||
insinto /opt/${PN}
|
||||
doins -r "${BUILD_DIR}"/bin/resources/
|
||||
|
||||
if use nogui; then
|
||||
newicon "${BUILD_DIR}"/bin/resources/images/duck.png duckstation-nogui.png
|
||||
make_desktop_entry "${PN}-nogui %f" "DuckStation NoGUI" "${PN}-nogui" "Game"
|
||||
|
||||
doins "${BUILD_DIR}"/bin/duckstation-nogui
|
||||
dosym ../../opt/${PN}/duckstation-nogui usr/bin/duckstation-nogui
|
||||
fperms +x /opt/${PN}/duckstation-nogui
|
||||
fi
|
||||
|
||||
if use qt6; then
|
||||
newicon "${BUILD_DIR}"/bin/resources/images/duck.png duckstation-qt.png
|
||||
make_desktop_entry "${PN}-qt %f" "DuckStation Qt" "${PN}-qt" "Game"
|
||||
|
||||
doins -r "${BUILD_DIR}"/bin/translations/
|
||||
doins "${BUILD_DIR}"/bin/duckstation-qt
|
||||
dosym ../../opt/${PN}/duckstation-qt usr/bin/duckstation-qt
|
||||
fperms +x /opt/${PN}/duckstation-qt
|
||||
fi
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<upstream>
|
||||
<remote-id type="github">stenzek/duckstation</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
DuckStation is a fast emulator of the Sony PlayStation (PSX),
|
||||
focused on playability, speed, and long-term maintainability.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="discord">Enable Discord Rich Presence to show the current game on Discord</flag>
|
||||
<flag name="egl">Enable EGL support</flag>
|
||||
<flag name="evdev">Support EVDev controller interface</flag>
|
||||
<flag name="fbdev">Support FBDev OpenGL contexts</flag>
|
||||
<flag name="gamepad">Link with SDL2 for controller support</flag>
|
||||
<flag name="gbm">Support DRM/KMS OpenGL contexts</flag>
|
||||
<flag name="nogui">Build the NoGUI frontend</flag>
|
||||
<flag name="qt6">Build the QT frontend</flag>
|
||||
<flag name="retroachievements">Build with RetroAchievements supports</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user