1 |
commit: 6dd1f87ff5b8caffc8eb4254fe904fa4d82b6a3c |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 1 12:14:56 2020 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 1 22:55:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dd1f87f |
7 |
|
8 |
games-emulation/dosbox: EAPI 7 and clean up for 9999 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
12 |
|
13 |
games-emulation/dosbox/dosbox-9999.ebuild | 48 +++++++++++++++++-------------- |
14 |
1 file changed, 27 insertions(+), 21 deletions(-) |
15 |
|
16 |
diff --git a/games-emulation/dosbox/dosbox-9999.ebuild b/games-emulation/dosbox/dosbox-9999.ebuild |
17 |
index 8c4711e5620..d6c94125051 100644 |
18 |
--- a/games-emulation/dosbox/dosbox-9999.ebuild |
19 |
+++ b/games-emulation/dosbox/dosbox-9999.ebuild |
20 |
@@ -1,47 +1,53 @@ |
21 |
-# Copyright 1999-2019 Gentoo Authors |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=6 |
26 |
+EAPI=7 |
27 |
|
28 |
inherit autotools desktop flag-o-matic |
29 |
|
30 |
-GLIDE_PATCH=841e1071597b64ead14dd08c25a03206b2d1d1b6 |
31 |
-SRC_URI="glide? ( https://raw.githubusercontent.com/voyageur/openglide/${GLIDE_PATCH}/platform/dosbox/dosbox_glide.diff -> dosbox_glide-${GLIDE_PATCH}.diff )" |
32 |
- |
33 |
-if [[ ${PV} = 9999 ]]; then |
34 |
+case "${PV}" in |
35 |
+9999) |
36 |
+ MY_P=${PN} |
37 |
ESVN_REPO_URI="https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk" |
38 |
inherit subversion |
39 |
-else |
40 |
- SRC_URI+=" mirror://sourceforge/dosbox/${P}.tar.gz" |
41 |
- KEYWORDS="~amd64 ~arm ~ppc64 ~x86" |
42 |
-fi |
43 |
+ ;; |
44 |
+*_pre*) |
45 |
+ MY_PV=0-r${PV#*_pre} |
46 |
+ MY_P=${PN}-code-${MY_PV}-${PN}-trunk |
47 |
+ SRC_URI="https://sourceforge.net/code-snapshots/svn/d/do/dosbox/code-0/${MY_P}.zip" |
48 |
+ BDEPEND="app-arch/unzip" |
49 |
+ ;; |
50 |
+*) |
51 |
+ MY_PV=$(ver_rs 2 -) |
52 |
+ MY_P=${PN}-${MY_PV} |
53 |
+ SRC_URI="mirror://sourceforge/dosbox/${MY_P}.tar.gz" |
54 |
+ ;; |
55 |
+esac |
56 |
+ |
57 |
+GLIDE_PATCH=841e1071597b64ead14dd08c25a03206b2d1d1b6 |
58 |
+SRC_URI+=" glide? ( https://raw.githubusercontent.com/voyageur/openglide/${GLIDE_PATCH}/platform/dosbox/dosbox_glide.diff -> dosbox_glide-${GLIDE_PATCH}.diff )" |
59 |
|
60 |
DESCRIPTION="DOS emulator" |
61 |
HOMEPAGE="https://www.dosbox.com/" |
62 |
- |
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
+KEYWORDS="" |
66 |
IUSE="alsa +core-inline debug glide hardened opengl X" |
67 |
|
68 |
-DEPEND="alsa? ( media-libs/alsa-lib ) |
69 |
+RDEPEND="alsa? ( media-libs/alsa-lib ) |
70 |
glide? ( media-libs/openglide ) |
71 |
opengl? ( virtual/glu virtual/opengl ) |
72 |
- debug? ( sys-libs/ncurses:0 ) |
73 |
+ debug? ( sys-libs/ncurses:0= ) |
74 |
X? ( x11-libs/libX11 ) |
75 |
media-libs/libpng:0= |
76 |
- media-libs/libsdl[joystick,opengl?,video,X] |
77 |
+ media-libs/libsdl[joystick,opengl?,video,X?] |
78 |
media-libs/sdl-net |
79 |
media-libs/sdl-sound |
80 |
sys-libs/zlib" |
81 |
-RDEPEND=${DEPEND} |
82 |
|
83 |
-if [[ ${PV} = 9999 ]]; then |
84 |
- S=${WORKDIR}/${PN} |
85 |
-fi |
86 |
+DEPEND="${RDEPEND}" |
87 |
|
88 |
-PATCHES=( |
89 |
- "${FILESDIR}"/${PN}-0.74-gcc46.patch |
90 |
-) |
91 |
+S="${WORKDIR}/${MY_P}" |
92 |
|
93 |
src_prepare() { |
94 |
use glide && eapply "${DISTDIR}"/dosbox_glide-${GLIDE_PATCH}.diff |