1 |
commit: 57b4a9d03988ca21db72dab9b524aec96f18504a |
2 |
Author: Yuri Konotopov <ykonotopov <AT> gnome <DOT> org> |
3 |
AuthorDate: Tue Aug 27 11:03:52 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 28 15:54:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57b4a9d0 |
7 |
|
8 |
games-emulation/pcsx2: ebuild enhancements. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/692208 |
11 |
|
12 |
Signed-off-by: Yuri Konotopov <ykonotopov <AT> gnome.org> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/12798 |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
.../{pcsx2-9999.ebuild => pcsx2-1.4.0-r2.ebuild} | 45 +++++++++------------- |
17 |
games-emulation/pcsx2/pcsx2-9999.ebuild | 22 +++++------ |
18 |
2 files changed, 29 insertions(+), 38 deletions(-) |
19 |
|
20 |
diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-1.4.0-r2.ebuild |
21 |
similarity index 64% |
22 |
copy from games-emulation/pcsx2/pcsx2-9999.ebuild |
23 |
copy to games-emulation/pcsx2/pcsx2-1.4.0-r2.ebuild |
24 |
index f79952eccb6..d31cad3370a 100644 |
25 |
--- a/games-emulation/pcsx2/pcsx2-9999.ebuild |
26 |
+++ b/games-emulation/pcsx2/pcsx2-1.4.0-r2.ebuild |
27 |
@@ -1,55 +1,47 @@ |
28 |
# Copyright 1999-2019 Gentoo Authors |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
-EAPI=6 |
32 |
+EAPI=7 |
33 |
+MY_PV="${PV/_/-}" |
34 |
|
35 |
-inherit cmake-utils git-r3 multilib toolchain-funcs wxwidgets |
36 |
+inherit cmake-utils multilib wxwidgets |
37 |
|
38 |
DESCRIPTION="A PlayStation 2 emulator" |
39 |
HOMEPAGE="https://www.pcsx2.net" |
40 |
-EGIT_REPO_URI="https://github.com/PCSX2/${PN}.git" |
41 |
+SRC_URI="https://github.com/PCSX2/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
42 |
|
43 |
LICENSE="GPL-3" |
44 |
SLOT="0" |
45 |
-KEYWORDS="" |
46 |
-IUSE="" |
47 |
+KEYWORDS="-* ~amd64 ~x86" |
48 |
|
49 |
RDEPEND=" |
50 |
app-arch/bzip2[abi_x86_32(-)] |
51 |
app-arch/xz-utils[abi_x86_32(-)] |
52 |
dev-libs/libaio[abi_x86_32(-)] |
53 |
- dev-libs/libxml2:2[abi_x86_32(-)] |
54 |
media-libs/alsa-lib[abi_x86_32(-)] |
55 |
media-libs/libpng:=[abi_x86_32(-)] |
56 |
- media-libs/libsdl2[abi_x86_32(-),haptic,joystick,sound] |
57 |
+ media-libs/libsdl[abi_x86_32(-),joystick,sound] |
58 |
media-libs/libsoundtouch[abi_x86_32(-)] |
59 |
media-libs/portaudio[abi_x86_32(-)] |
60 |
- net-libs/libpcap[abi_x86_32(-)] |
61 |
- >=sys-libs/zlib-1.2.4[abi_x86_32(-)] |
62 |
- virtual/libudev[abi_x86_32(-)] |
63 |
+ sys-libs/zlib[abi_x86_32(-)] |
64 |
virtual/opengl[abi_x86_32(-)] |
65 |
x11-libs/gtk+:2[abi_x86_32(-)] |
66 |
x11-libs/libICE[abi_x86_32(-)] |
67 |
x11-libs/libX11[abi_x86_32(-)] |
68 |
x11-libs/libXext[abi_x86_32(-)] |
69 |
- x11-libs/wxGTK:3.0[abi_x86_32(-),-sdl,X] |
70 |
+ x11-libs/wxGTK:3.0[abi_x86_32(-),X] |
71 |
" |
72 |
-# Ensure no incompatible headers from eselect-opengl are installed, bug #510730 |
73 |
DEPEND="${RDEPEND} |
74 |
- >=app-eselect/eselect-opengl-1.3.1 |
75 |
dev-cpp/pngpp |
76 |
- >=dev-cpp/sparsehash-1.5 |
77 |
+ dev-cpp/sparsehash |
78 |
" |
79 |
|
80 |
-pkg_setup() { |
81 |
- if [[ ${MERGE_TYPE} != binary && $(tc-getCC) == *gcc* ]]; then |
82 |
- # -mxsave flag is needed when GCC >= 8.2 is used |
83 |
- # https://bugs.gentoo.org/685156 |
84 |
- if [[ $(gcc-major-version) -gt 8 || $(gcc-major-version) == 8 && $(gcc-minor-version) -ge 2 ]]; then |
85 |
- append-flags -mxsave |
86 |
- fi |
87 |
- fi |
88 |
-} |
89 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
90 |
+ |
91 |
+PATCHES=( |
92 |
+ "${FILESDIR}"/${P}-gcc5.patch |
93 |
+ "${FILESDIR}"/${P}-xgetbv.patch |
94 |
+) |
95 |
|
96 |
src_configure() { |
97 |
multilib_toolchain_setup x86 |
98 |
@@ -80,17 +72,16 @@ src_configure() { |
99 |
-DGTK3_API=FALSE |
100 |
-DPLUGIN_DIR="/usr/$(get_libdir)/${PN}" |
101 |
# wxGTK must be built against same sdl version |
102 |
- -DSDL2_API=TRUE |
103 |
+ -DSDL2_API=FALSE |
104 |
-DWX28_API=FALSE |
105 |
) |
106 |
|
107 |
- WX_GTK_VER="3.0" need-wxwidgets unicode |
108 |
+ WX_GTK_VER="3.0" setup-wxwidgets |
109 |
cmake-utils_src_configure |
110 |
} |
111 |
|
112 |
src_install() { |
113 |
# Upstream issue: https://github.com/PCSX2/pcsx2/issues/417 |
114 |
- QA_TEXTRELS="usr/$(get_libdir)/pcsx2/*" |
115 |
- |
116 |
+ QA_TEXTRELS="usr/$(get_libdir)/pcsx2/* usr/bin/PCSX2" |
117 |
cmake-utils_src_install |
118 |
} |
119 |
|
120 |
diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-9999.ebuild |
121 |
index f79952eccb6..9e646daf585 100644 |
122 |
--- a/games-emulation/pcsx2/pcsx2-9999.ebuild |
123 |
+++ b/games-emulation/pcsx2/pcsx2-9999.ebuild |
124 |
@@ -1,7 +1,7 @@ |
125 |
# Copyright 1999-2019 Gentoo Authors |
126 |
# Distributed under the terms of the GNU General Public License v2 |
127 |
|
128 |
-EAPI=6 |
129 |
+EAPI=7 |
130 |
|
131 |
inherit cmake-utils git-r3 multilib toolchain-funcs wxwidgets |
132 |
|
133 |
@@ -25,20 +25,19 @@ RDEPEND=" |
134 |
media-libs/libsoundtouch[abi_x86_32(-)] |
135 |
media-libs/portaudio[abi_x86_32(-)] |
136 |
net-libs/libpcap[abi_x86_32(-)] |
137 |
- >=sys-libs/zlib-1.2.4[abi_x86_32(-)] |
138 |
+ sys-libs/zlib[abi_x86_32(-)] |
139 |
virtual/libudev[abi_x86_32(-)] |
140 |
virtual/opengl[abi_x86_32(-)] |
141 |
x11-libs/gtk+:2[abi_x86_32(-)] |
142 |
x11-libs/libICE[abi_x86_32(-)] |
143 |
x11-libs/libX11[abi_x86_32(-)] |
144 |
x11-libs/libXext[abi_x86_32(-)] |
145 |
- x11-libs/wxGTK:3.0[abi_x86_32(-),-sdl,X] |
146 |
+ x11-libs/wxGTK:3.0-gtk3[abi_x86_32(-),-sdl,X] |
147 |
" |
148 |
# Ensure no incompatible headers from eselect-opengl are installed, bug #510730 |
149 |
DEPEND="${RDEPEND} |
150 |
- >=app-eselect/eselect-opengl-1.3.1 |
151 |
dev-cpp/pngpp |
152 |
- >=dev-cpp/sparsehash-1.5 |
153 |
+ dev-cpp/sparsehash |
154 |
" |
155 |
|
156 |
pkg_setup() { |
157 |
@@ -77,20 +76,21 @@ src_configure() { |
158 |
-DCMAKE_LIBRARY_PATH="/usr/$(get_libdir)/${PN}" |
159 |
-DDOC_DIR=/usr/share/doc/"${PF}" |
160 |
-DEGL_API=FALSE |
161 |
- -DGTK3_API=FALSE |
162 |
+ -DGTK3_API=TRUE |
163 |
-DPLUGIN_DIR="/usr/$(get_libdir)/${PN}" |
164 |
# wxGTK must be built against same sdl version |
165 |
-DSDL2_API=TRUE |
166 |
- -DWX28_API=FALSE |
167 |
) |
168 |
|
169 |
- WX_GTK_VER="3.0" need-wxwidgets unicode |
170 |
+ WX_GTK_VER="3.0-gtk3" setup-wxwidgets |
171 |
cmake-utils_src_configure |
172 |
} |
173 |
|
174 |
src_install() { |
175 |
- # Upstream issue: https://github.com/PCSX2/pcsx2/issues/417 |
176 |
- QA_TEXTRELS="usr/$(get_libdir)/pcsx2/*" |
177 |
- |
178 |
+ # Upstream issues: |
179 |
+ # https://github.com/PCSX2/pcsx2/issues/417 |
180 |
+ # https://github.com/PCSX2/pcsx2/issues/3077 |
181 |
+ QA_EXECSTACK="usr/bin/PCSX2" |
182 |
+ QA_TEXTRELS="usr/$(get_libdir)/pcsx2/* usr/bin/PCSX2" |
183 |
cmake-utils_src_install |
184 |
} |