1 |
commit: e225e256cbf0d118303693015c91e68b361066d3 |
2 |
Author: soredake <fdsfgs <AT> krutt <DOT> org> |
3 |
AuthorDate: Sat Apr 1 20:11:58 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 4 21:14:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e225e256 |
7 |
|
8 |
games-emulation/ppsspp: clean up old. |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/4342 |
11 |
|
12 |
games-emulation/ppsspp/files/ppsspp | 3 - |
13 |
games-emulation/ppsspp/files/ppsspp.desktop | 7 -- |
14 |
games-emulation/ppsspp/ppsspp-1.2.2.ebuild | 128 ---------------------------- |
15 |
3 files changed, 138 deletions(-) |
16 |
|
17 |
diff --git a/games-emulation/ppsspp/files/ppsspp b/games-emulation/ppsspp/files/ppsspp |
18 |
deleted file mode 100644 |
19 |
index 7e3da1317ab..00000000000 |
20 |
--- a/games-emulation/ppsspp/files/ppsspp |
21 |
+++ /dev/null |
22 |
@@ -1,3 +0,0 @@ |
23 |
-#!/bin/bash |
24 |
-cd /usr/share/games/ppsspp |
25 |
-./PPSSPPSDL |
26 |
|
27 |
diff --git a/games-emulation/ppsspp/files/ppsspp.desktop b/games-emulation/ppsspp/files/ppsspp.desktop |
28 |
deleted file mode 100644 |
29 |
index a50ed06e145..00000000000 |
30 |
--- a/games-emulation/ppsspp/files/ppsspp.desktop |
31 |
+++ /dev/null |
32 |
@@ -1,7 +0,0 @@ |
33 |
-[Desktop Entry] |
34 |
-Type=Application |
35 |
-Name=PPSSPP |
36 |
-Comment=A PSP emulator |
37 |
-Exec=/usr/games/bin/ppsspp |
38 |
-Icon=ppsspp-icon |
39 |
-Categories=Game; |
40 |
|
41 |
diff --git a/games-emulation/ppsspp/ppsspp-1.2.2.ebuild b/games-emulation/ppsspp/ppsspp-1.2.2.ebuild |
42 |
deleted file mode 100644 |
43 |
index d0209042c6b..00000000000 |
44 |
--- a/games-emulation/ppsspp/ppsspp-1.2.2.ebuild |
45 |
+++ /dev/null |
46 |
@@ -1,128 +0,0 @@ |
47 |
-# Copyright 1999-2016 Gentoo Foundation |
48 |
-# Distributed under the terms of the GNU General Public License v2 |
49 |
- |
50 |
-EAPI=5 |
51 |
- |
52 |
-inherit eutils cmake-utils qt4-r2 git-r3 |
53 |
- |
54 |
-DESCRIPTION="A PSP emulator written in C++." |
55 |
-HOMEPAGE="http://www.ppsspp.org/" |
56 |
-EGIT_REPO_URI="git://github.com/hrydgard/${PN}.git" |
57 |
-EGIT_COMMIT="v${PV}" |
58 |
- |
59 |
-LICENSE="GPL-2" |
60 |
-SLOT="0" |
61 |
-KEYWORDS="~amd64 ~x86" |
62 |
-IUSE="qt4 qt5 +sdl" |
63 |
-REQUIRED_USE=" |
64 |
- ?? ( qt4 qt5 sdl ) |
65 |
-" |
66 |
- |
67 |
-RDEPEND="" |
68 |
- |
69 |
-DEPEND=" |
70 |
- sys-libs/zlib |
71 |
- sdl? ( |
72 |
- dev-util/cmake |
73 |
- media-libs/libsdl |
74 |
- media-libs/libsdl2 |
75 |
- ) |
76 |
- qt4? ( |
77 |
- dev-qt/qtsvg:4 |
78 |
- dev-qt/qtgui:4 |
79 |
- dev-qt/qtcore:4 |
80 |
- dev-qt/qtopengl:4 |
81 |
- dev-qt/qtmultimedia:4 |
82 |
- dev-qt/qt-mobility[multimedia] |
83 |
- ) |
84 |
- qt5? ( |
85 |
- dev-qt/qtsvg:5 |
86 |
- dev-qt/qtgui:5 |
87 |
- dev-qt/qtcore:5 |
88 |
- dev-qt/qtopengl:5 |
89 |
- dev-qt/qtmultimedia:5 |
90 |
- dev-qt/qtwidgets:5 |
91 |
- dev-qt/qt-mobility[multimedia] |
92 |
- ) |
93 |
-" |
94 |
- |
95 |
-src_unpack() { |
96 |
- git-r3_fetch |
97 |
- git-r3_checkout |
98 |
- if use qt4 ; then |
99 |
- cd "${WORKDIR}"/"${P}"/Qt || die |
100 |
- qt4-r2_src_unpack |
101 |
- elif use qt5 ; then |
102 |
- cd "${WORKDIR}"/"${P}"/Qt || die |
103 |
- qt4-r2_src_unpack |
104 |
- fi |
105 |
-} |
106 |
- |
107 |
-src_prepare() { |
108 |
- sed -i -e "s#-O3#-O2#g;" "${S}"/CMakeLists.txt || die |
109 |
- sed -i -e "s#-O3#-O2#g;" "${S}"/Qt/Settings.pri || die |
110 |
- sed -i -e "s#-O3#-O2#g;" "${S}"/ffmpeg/linux_*.sh || die |
111 |
- |
112 |
- if use qt4 ; then |
113 |
- cd "${WORKDIR}"/"${P}"/Qt || die |
114 |
- qt4-r2_src_prepare |
115 |
- elif use qt5 ; then |
116 |
- cd "${WORKDIR}"/"${P}"/Qt || die |
117 |
- qt4-r2_src_prepare |
118 |
- else |
119 |
- cmake-utils_src_prepare |
120 |
- fi |
121 |
-} |
122 |
- |
123 |
-src_configure() { |
124 |
- if use qt4 ; then |
125 |
- cd "${WORKDIR}"/"${P}"/Qt || die |
126 |
- qt4-r2_src_configure |
127 |
- eqmake4 "${WORKDIR}"/"${P}"/Qt/PPSSPPQt.pro |
128 |
- elif use qt5 ; then |
129 |
- cd "${WORKDIR}"/"${P}"/Qt || die |
130 |
- qt4-r2_src_configure |
131 |
- eqmake5 "${WORKDIR}"/"${P}"/Qt/PPSSPPQt.pro |
132 |
- else |
133 |
- cmake-utils_src_configure |
134 |
- fi |
135 |
-} |
136 |
- |
137 |
-src_compile() { |
138 |
- if use qt4 ; then |
139 |
- cd "${WORKDIR}"/"${P}"/Qt || die |
140 |
- qt4-r2_src_compile |
141 |
- elif use qt5 ; then |
142 |
- cd "${WORKDIR}"/"${P}"/Qt || die |
143 |
- qt4-r2_src_compile |
144 |
- else |
145 |
- cmake-utils_src_compile |
146 |
- fi |
147 |
-} |
148 |
- |
149 |
-src_install() { |
150 |
- if use qt4 ; then |
151 |
- exeinto /usr/games/bin |
152 |
- newexe "${WORKDIR}"/"${P}"/Qt/ppsspp ppsspp |
153 |
- elif use qt5 ; then |
154 |
- exeinto /usr/games/bin |
155 |
- newexe "${WORKDIR}"/"${P}"/Qt/ppsspp ppsspp |
156 |
- else |
157 |
- exeinto /usr/games |
158 |
- dobin "${FILESDIR}"/ppsspp |
159 |
- exeinto /usr/share/games/"${PN}" |
160 |
- doexe "${WORKDIR}"/"${P}"_build/PPSSPPSDL |
161 |
- insinto /usr/share/games/"${PN}" |
162 |
- doins -r "${WORKDIR}"/"${P}"_build/assets |
163 |
- doins -r "${WORKDIR}"/"${P}"/lang |
164 |
- fi |
165 |
- insinto /usr/share/icons/ |
166 |
- newins "${WORKDIR}"/"${P}"/source_assets/image/icon_regular_72.png ppsspp-icon.png |
167 |
- domenu "${FILESDIR}"/ppsspp.desktop |
168 |
-} |
169 |
- |
170 |
-pkg_postinst() { |
171 |
- elog "Remember, in order to play games, you have to " |
172 |
- elog "be in the 'games' group. " |
173 |
- elog "Just run 'gpasswd -a <USER> games', then have <USER> re-login. " |
174 |
-} |