Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/dosbox/
Date: Tue, 28 Jun 2016 13:59:46
Message-Id: 1467120696.3d239d4e470c8f0c99339649ec74c4bdf86cf98f.monsieurp@gentoo
1 commit: 3d239d4e470c8f0c99339649ec74c4bdf86cf98f
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 28 08:43:09 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 13:31:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d239d4e
7
8 games-emulation/dosbox: remove games eclass and convert to EAPI 6
9
10 Gentoo-Bug: https://bugs.gentoo.org/566498
11 Gentoo-Bug: https://bugs.gentoo.org/587382
12
13 Package-Manager: portage-2.2.28
14 Closes: https://github.com/gentoo/gentoo/pull/1777
15
16 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
17
18 .../{dosbox-9999.ebuild => dosbox-0.74-r2.ebuild} | 31 +++++++++-------------
19 games-emulation/dosbox/dosbox-9999.ebuild | 12 ++++-----
20 2 files changed, 19 insertions(+), 24 deletions(-)
21
22 diff --git a/games-emulation/dosbox/dosbox-9999.ebuild b/games-emulation/dosbox/dosbox-0.74-r2.ebuild
23 similarity index 69%
24 copy from games-emulation/dosbox/dosbox-9999.ebuild
25 copy to games-emulation/dosbox/dosbox-0.74-r2.ebuild
26 index f0caa33..165707b 100644
27 --- a/games-emulation/dosbox/dosbox-9999.ebuild
28 +++ b/games-emulation/dosbox/dosbox-0.74-r2.ebuild
29 @@ -1,41 +1,37 @@
30 -# Copyright 1999-2015 Gentoo Foundation
31 +# Copyright 1999-2016 Gentoo Foundation
32 # Distributed under the terms of the GNU General Public License v2
33 # $Id$
34
35 -EAPI=5
36 -ESVN_REPO_URI="https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk"
37 -inherit autotools eutils subversion games
38 +EAPI=6
39 +inherit eutils
40
41 DESCRIPTION="DOS emulator"
42 HOMEPAGE="http://dosbox.sourceforge.net/"
43 +SRC_URI="mirror://sourceforge/dosbox/${P}.tar.gz"
44
45 LICENSE="GPL-2"
46 SLOT="0"
47 -KEYWORDS=""
48 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
49 IUSE="alsa debug hardened opengl"
50
51 DEPEND="alsa? ( media-libs/alsa-lib )
52 - opengl? ( virtual/glu virtual/opengl )
53 debug? ( sys-libs/ncurses:0 )
54 + opengl? ( virtual/glu virtual/opengl )
55 media-libs/libpng:0
56 media-libs/libsdl[joystick,video,X]
57 media-libs/sdl-net
58 media-libs/sdl-sound"
59 RDEPEND=${DEPEND}
60
61 -S=${WORKDIR}/${PN}
62 -
63 -src_unpack() {
64 - subversion_src_unpack
65 -}
66 -
67 -src_prepare() {
68 - subversion_src_prepare
69 - eautoreconf
70 -}
71 +PATCHES=(
72 + "${FILESDIR}"/${P}-clang.patch
73 + "${FILESDIR}"/${P}-gcc46.patch
74 + "${FILESDIR}"/${P}-wine-drive-z.patch
75 + "${FILESDIR}"/${P}-wine-filenames.patch
76 +)
77
78 src_configure() {
79 - egamesconf \
80 + econf \
81 $(use_enable alsa alsa-midi) \
82 $(use_enable !hardened dynamic-core) \
83 $(use_enable !hardened dynamic-x86) \
84 @@ -47,5 +43,4 @@ src_install() {
85 default
86 make_desktop_entry dosbox DOSBox /usr/share/pixmaps/dosbox.ico
87 doicon src/dosbox.ico
88 - prepgamesdirs
89 }
90
91 diff --git a/games-emulation/dosbox/dosbox-9999.ebuild b/games-emulation/dosbox/dosbox-9999.ebuild
92 index f0caa33..1c5c700 100644
93 --- a/games-emulation/dosbox/dosbox-9999.ebuild
94 +++ b/games-emulation/dosbox/dosbox-9999.ebuild
95 @@ -1,10 +1,10 @@
96 -# Copyright 1999-2015 Gentoo Foundation
97 +# Copyright 1999-2016 Gentoo Foundation
98 # Distributed under the terms of the GNU General Public License v2
99 # $Id$
100
101 -EAPI=5
102 +EAPI=6
103 ESVN_REPO_URI="https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk"
104 -inherit autotools eutils subversion games
105 +inherit autotools eutils subversion
106
107 DESCRIPTION="DOS emulator"
108 HOMEPAGE="http://dosbox.sourceforge.net/"
109 @@ -15,8 +15,8 @@ KEYWORDS=""
110 IUSE="alsa debug hardened opengl"
111
112 DEPEND="alsa? ( media-libs/alsa-lib )
113 - opengl? ( virtual/glu virtual/opengl )
114 debug? ( sys-libs/ncurses:0 )
115 + opengl? ( virtual/glu virtual/opengl )
116 media-libs/libpng:0
117 media-libs/libsdl[joystick,video,X]
118 media-libs/sdl-net
119 @@ -30,12 +30,13 @@ src_unpack() {
120 }
121
122 src_prepare() {
123 + default
124 subversion_src_prepare
125 eautoreconf
126 }
127
128 src_configure() {
129 - egamesconf \
130 + econf \
131 $(use_enable alsa alsa-midi) \
132 $(use_enable !hardened dynamic-core) \
133 $(use_enable !hardened dynamic-x86) \
134 @@ -47,5 +48,4 @@ src_install() {
135 default
136 make_desktop_entry dosbox DOSBox /usr/share/pixmaps/dosbox.ico
137 doicon src/dosbox.ico
138 - prepgamesdirs
139 }