Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/pcsx2/
Date: Mon, 01 Mar 2021 08:26:15
Message-Id: 1614587155.33307a72972b7e5a0191ef291f72eb7490c7fa47.juippis@gentoo
1 commit: 33307a72972b7e5a0191ef291f72eb7490c7fa47
2 Author: Yuri Konotopov <ykonotopov <AT> gnome <DOT> org>
3 AuthorDate: Thu Feb 25 14:38:04 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 1 08:25:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33307a72
7
8 games-emulation/pcsx2: drop unused dependencies
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Yuri Konotopov <ykonotopov <AT> gnome.org>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 .../{pcsx2-9999.ebuild => pcsx2-1.6.0-r2.ebuild} | 79 ++++++++++++----------
15 games-emulation/pcsx2/pcsx2-9999.ebuild | 5 +-
16 2 files changed, 45 insertions(+), 39 deletions(-)
17
18 diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-1.6.0-r2.ebuild
19 similarity index 50%
20 copy from games-emulation/pcsx2/pcsx2-9999.ebuild
21 copy to games-emulation/pcsx2/pcsx2-1.6.0-r2.ebuild
22 index b1c9556114d..39f1ff3ec9e 100644
23 --- a/games-emulation/pcsx2/pcsx2-9999.ebuild
24 +++ b/games-emulation/pcsx2/pcsx2-1.6.0-r2.ebuild
25 @@ -2,54 +2,50 @@
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=7
29 +MY_PV="${PV/_/-}"
30
31 -inherit cmake fcaps flag-o-matic git-r3 toolchain-funcs wxwidgets
32 +inherit cmake fcaps flag-o-matic multilib toolchain-funcs wxwidgets
33
34 DESCRIPTION="A PlayStation 2 emulator"
35 HOMEPAGE="https://pcsx2.net/"
36 -EGIT_REPO_URI="https://github.com/PCSX2/${PN}.git"
37 -EGIT_SUBMODULES=()
38 +SRC_URI="https://github.com/PCSX2/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
39
40 LICENSE="GPL-3"
41 SLOT="0"
42 -KEYWORDS=""
43 -IUSE="test"
44 -
45 -RESTRICT="!test? ( test )"
46 +KEYWORDS="-* ~amd64 ~x86"
47
48 RDEPEND="
49 - app-arch/bzip2
50 - app-arch/xz-utils
51 - dev-cpp/yaml-cpp:=
52 - dev-libs/libaio
53 - dev-libs/libfmt:=
54 - dev-libs/libxml2:2
55 - media-libs/alsa-lib
56 - media-libs/libpng:=
57 - media-libs/libsamplerate
58 - media-libs/libsdl2[haptic,joystick,sound]
59 - media-libs/libsoundtouch
60 - media-libs/portaudio
61 - net-libs/libpcap
62 - sys-libs/zlib
63 - virtual/libudev
64 - virtual/opengl
65 - x11-libs/gtk+:3
66 - x11-libs/libICE
67 - x11-libs/libX11
68 - x11-libs/libXext
69 - x11-libs/wxGTK:3.0-gtk3[X]
70 -"
71 -DEPEND="${RDEPEND}
72 - dev-cpp/pngpp
73 - dev-cpp/sparsehash
74 + app-arch/bzip2[abi_x86_32(-)]
75 + app-arch/xz-utils[abi_x86_32(-)]
76 + dev-libs/libaio[abi_x86_32(-)]
77 + dev-libs/libxml2:2[abi_x86_32(-)]
78 + media-libs/alsa-lib[abi_x86_32(-)]
79 + media-libs/libpng:=[abi_x86_32(-)]
80 + media-libs/libsdl2[abi_x86_32(-),haptic,joystick,sound]
81 + media-libs/libsoundtouch[abi_x86_32(-)]
82 + media-libs/portaudio[abi_x86_32(-)]
83 + net-libs/libpcap[abi_x86_32(-)]
84 + sys-libs/zlib[abi_x86_32(-)]
85 + virtual/libudev[abi_x86_32(-)]
86 + virtual/opengl[abi_x86_32(-)]
87 + x11-libs/gtk+:3[abi_x86_32(-)]
88 + x11-libs/libICE[abi_x86_32(-)]
89 + x11-libs/libX11[abi_x86_32(-)]
90 + x11-libs/libXext[abi_x86_32(-)]
91 + >=x11-libs/wxGTK-3.0.4-r301:3.0-gtk3[abi_x86_32(-),X]
92 "
93 -BDEPEND="test? ( dev-cpp/gtest )"
94 +DEPEND="${RDEPEND}"
95 +
96 +S="${WORKDIR}/${PN}-${MY_PV}"
97
98 FILECAPS=(
99 "CAP_NET_RAW+eip CAP_NET_ADMIN+eip" usr/bin/PCSX2
100 )
101
102 +PATCHES=(
103 + "${FILESDIR}/${P}-disable-setcap.patch"
104 +)
105 +
106 pkg_setup() {
107 if [[ ${MERGE_TYPE} != binary && $(tc-getCC) == *gcc* ]]; then
108 # -mxsave flag is needed when GCC >= 8.2 is used
109 @@ -61,6 +57,7 @@ pkg_setup() {
110 }
111
112 src_configure() {
113 + multilib_toolchain_setup x86
114 # Build with ld.gold fails
115 # https://github.com/PCSX2/pcsx2/issues/1671
116 tc-ld-disable-gold
117 @@ -68,19 +65,31 @@ src_configure() {
118 # pcsx2 build scripts will force CMAKE_BUILD_TYPE=Devel
119 # if it something other than "Devel|Debug|Release"
120 local CMAKE_BUILD_TYPE="Release"
121 +
122 + if use amd64; then
123 + # Passing correct CMAKE_TOOLCHAIN_FILE for amd64
124 + # https://github.com/PCSX2/pcsx2/pull/422
125 + local MYCMAKEARGS=(-DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake)
126 + fi
127 +
128 local mycmakeargs=(
129 -DARCH_FLAG=
130 -DDISABLE_BUILD_DATE=TRUE
131 -DDISABLE_PCSX2_WRAPPER=TRUE
132 -DDISABLE_SETCAP=TRUE
133 + -DEXTRA_PLUGINS=FALSE
134 -DOPTIMIZATION_FLAG=
135 -DPACKAGE_MODE=TRUE
136 -DXDG_STD=TRUE
137
138 -DCMAKE_LIBRARY_PATH="/usr/$(get_libdir)/${PN}"
139 + -DDOC_DIR=/usr/share/doc/"${PF}"
140 + -DEGL_API=FALSE
141 + -DGTK3_API=TRUE
142 + -DOPENCL_API=FALSE
143 + -DPLUGIN_DIR="/usr/$(get_libdir)/${PN}"
144 # wxGTK must be built against same sdl version
145 -DSDL2_API=TRUE
146 - -DUSE_SYSTEM_YAML=TRUE
147 -DUSE_VTUNE=FALSE
148 )
149
150 @@ -93,6 +102,6 @@ src_install() {
151 # https://github.com/PCSX2/pcsx2/issues/417
152 # https://github.com/PCSX2/pcsx2/issues/3077
153 QA_EXECSTACK="usr/bin/PCSX2"
154 - QA_TEXTRELS="usr/$(get_libdir)/PCSX2/* usr/bin/PCSX2"
155 + QA_TEXTRELS="usr/$(get_libdir)/pcsx2/* usr/bin/PCSX2"
156 cmake_src_install
157 }
158
159 diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-9999.ebuild
160 index b1c9556114d..5f738f270f9 100644
161 --- a/games-emulation/pcsx2/pcsx2-9999.ebuild
162 +++ b/games-emulation/pcsx2/pcsx2-9999.ebuild
163 @@ -40,10 +40,7 @@ RDEPEND="
164 x11-libs/libXext
165 x11-libs/wxGTK:3.0-gtk3[X]
166 "
167 -DEPEND="${RDEPEND}
168 - dev-cpp/pngpp
169 - dev-cpp/sparsehash
170 -"
171 +DEPEND="${RDEPEND}"
172 BDEPEND="test? ( dev-cpp/gtest )"
173
174 FILECAPS=(