1 |
commit: d54af530b136a21f35e3355495919bbcdae7b915 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 8 13:57:43 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 8 13:58:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d54af530 |
7 |
|
8 |
games-emulation/pcsxr: Add the missing ebuild file |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
games-emulation/pcsxr/pcsxr-9999.ebuild | 88 +++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 88 insertions(+) |
14 |
|
15 |
diff --git a/games-emulation/pcsxr/pcsxr-9999.ebuild b/games-emulation/pcsxr/pcsxr-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..765aaa96848 |
18 |
--- /dev/null |
19 |
+++ b/games-emulation/pcsxr/pcsxr-9999.ebuild |
20 |
@@ -0,0 +1,88 @@ |
21 |
+# Copyright 1999-2020 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+inherit cmake-utils git-r3 xdg-utils |
26 |
+ |
27 |
+DESCRIPTION="PCSX-Reloaded: a fork of PCSX, the discontinued Playstation emulator" |
28 |
+HOMEPAGE="https://github.com/iCatButler/pcsxr" |
29 |
+EGIT_REPO_URI="https://github.com/iCatButler/pcsxr" |
30 |
+ |
31 |
+LICENSE="GPL-2 public-domain" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="" |
34 |
+ |
35 |
+IUSE="alsa archive ccdda cdio libav openal oss pulseaudio +sdl" |
36 |
+REQUIRED_USE="?? ( alsa openal oss pulseaudio sdl )" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ dev-libs/glib:2 |
40 |
+ media-libs/libsdl2[joystick] |
41 |
+ sys-libs/zlib:= |
42 |
+ x11-libs/gtk+:3 |
43 |
+ x11-libs/libX11 |
44 |
+ x11-libs/libXext |
45 |
+ x11-libs/libXtst |
46 |
+ x11-libs/libXv |
47 |
+ x11-libs/libXxf86vm |
48 |
+ virtual/libintl |
49 |
+ virtual/opengl |
50 |
+ archive? ( app-arch/libarchive:= ) |
51 |
+ alsa? ( media-libs/alsa-lib:= ) |
52 |
+ cdio? ( dev-libs/libcdio:= ) |
53 |
+ ccdda? ( |
54 |
+ !libav? ( >=media-video/ffmpeg-3:= ) |
55 |
+ libav? ( media-video/libav:= ) |
56 |
+ ) |
57 |
+ openal? ( media-libs/openal:= ) |
58 |
+ pulseaudio? ( media-sound/pulseaudio:= ) |
59 |
+ sdl? ( media-libs/libsdl2:=[sound] ) |
60 |
+" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ x11-base/xorg-proto" |
63 |
+BDEPEND=" |
64 |
+ app-arch/unzip |
65 |
+ dev-util/intltool |
66 |
+ sys-devel/gettext:0 |
67 |
+" |
68 |
+ |
69 |
+src_configure() { |
70 |
+ local sound_backend |
71 |
+ |
72 |
+ if use pulseaudio; then |
73 |
+ sound_backend=pulse |
74 |
+ elif use sdl; then |
75 |
+ sound_backend=sdl |
76 |
+ elif use openal; then |
77 |
+ sound_backend=openal |
78 |
+ elif use alsa; then |
79 |
+ sound_backend=alsa |
80 |
+ elif use oss; then |
81 |
+ sound_backend=oss |
82 |
+ else |
83 |
+ sound_backend=null |
84 |
+ fi |
85 |
+ |
86 |
+ local mycmakeargs=( |
87 |
+ -DENABLE_CCDDA=$(usex ccdda) |
88 |
+ -DUSE_LIBARCHIVE=$(usex archive) |
89 |
+ -DUSE_LIBCDIO=$(usex cdio) |
90 |
+ -DSND_BACKEND=${sound_backend} |
91 |
+ ) |
92 |
+ |
93 |
+ cmake-utils_src_configure |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ cmake-utils_src_install |
98 |
+ mv "${ED}"/usr/share/doc/pcsxr/* "${ED}/usr/share/doc/${PF}/" || die |
99 |
+ rmdir "${ED}"/usr/share/doc/pcsxr || die |
100 |
+} |
101 |
+ |
102 |
+pkg_postinst() { |
103 |
+ xdg_icon_cache_update |
104 |
+} |
105 |
+ |
106 |
+pkg_postrm() { |
107 |
+ xdg_icon_cache_update |
108 |
+} |