diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-01-12 13:52:51 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-01-12 13:59:55 +0100 |
commit | 17393d422c1324d7c7c0364ea0205a3b4c6b322b (patch) | |
tree | 9e8108c83c947022f94eb9d8f485503725572be4 /games-emulation/pcsxr/pcsxr-1.9.94_p20190306.ebuild | |
parent | media-radio/fldigi: Version bump (diff) | |
download | gentoo-17393d422c1324d7c7c0364ea0205a3b4c6b322b.tar.gz gentoo-17393d422c1324d7c7c0364ea0205a3b4c6b322b.tar.bz2 gentoo-17393d422c1324d7c7c0364ea0205a3b4c6b322b.zip |
games-emulation/pcsxr: Bump to 1.9.94_p20190306 snapshot
Closes: https://bugs.gentoo.org/647336
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'games-emulation/pcsxr/pcsxr-1.9.94_p20190306.ebuild')
-rw-r--r-- | games-emulation/pcsxr/pcsxr-1.9.94_p20190306.ebuild | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/games-emulation/pcsxr/pcsxr-1.9.94_p20190306.ebuild b/games-emulation/pcsxr/pcsxr-1.9.94_p20190306.ebuild new file mode 100644 index 000000000000..d51b0296beab --- /dev/null +++ b/games-emulation/pcsxr/pcsxr-1.9.94_p20190306.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake-utils xdg-utils + +EGIT_COMMIT="62467b86871aee3d70c7445f3cb79f0858ec566e" +MY_P=${PN}-${EGIT_COMMIT} +DESCRIPTION="PCSX-Reloaded: a fork of PCSX, the discontinued Playstation emulator" +HOMEPAGE="https://github.com/iCatButler/pcsxr" +SRC_URI="https://github.com/iCatButler/pcsxr/archive/${EGIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2 public-domain" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="alsa archive ccdda cdio libav openal oss pulseaudio +sdl" +REQUIRED_USE="?? ( alsa openal oss pulseaudio sdl )" + +RDEPEND=" + dev-libs/glib:2 + media-libs/libsdl2[joystick] + sys-libs/zlib:= + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXtst + x11-libs/libXv + x11-libs/libXxf86vm + virtual/libintl + virtual/opengl + archive? ( app-arch/libarchive:= ) + alsa? ( media-libs/alsa-lib:= ) + cdio? ( dev-libs/libcdio:= ) + ccdda? ( + !libav? ( >=media-video/ffmpeg-3:= ) + libav? ( media-video/libav:= ) + ) + openal? ( media-libs/openal:= ) + pulseaudio? ( media-sound/pulseaudio:= ) + sdl? ( media-libs/libsdl2:=[sound] ) +" +DEPEND="${RDEPEND} + x11-base/xorg-proto" +BDEPEND=" + app-arch/unzip + dev-util/intltool + sys-devel/gettext:0 +" + +src_configure() { + local sound_backend + + if use pulseaudio; then + sound_backend=pulse + elif use sdl; then + sound_backend=sdl + elif use openal; then + sound_backend=openal + elif use alsa; then + sound_backend=alsa + elif use oss; then + sound_backend=oss + else + sound_backend=null + fi + + local mycmakeargs=( + -DENABLE_CCDDA=$(usex ccdda) + -DUSE_LIBARCHIVE=$(usex archive) + -DUSE_LIBCDIO=$(usex cdio) + -DSND_BACKEND=${sound_backend} + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + mv "${ED}"/usr/share/doc/pcsxr/* "${ED}/usr/share/doc/${PF}/" || die + rmdir "${ED}"/usr/share/doc/pcsxr || die +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} |