1 |
commit: b252a3bd07e923b507c7eddb72656834033b5ba4 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 29 22:13:11 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 29 22:13:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b252a3bd |
7 |
|
8 |
games-emulation/dosbox: sync live ebuild and make it copyable |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
games-emulation/dosbox/dosbox-9999.ebuild | 33 +++++++++++++++++++------------ |
13 |
1 file changed, 20 insertions(+), 13 deletions(-) |
14 |
|
15 |
diff --git a/games-emulation/dosbox/dosbox-9999.ebuild b/games-emulation/dosbox/dosbox-9999.ebuild |
16 |
index f0caa33..97c581f 100644 |
17 |
--- a/games-emulation/dosbox/dosbox-9999.ebuild |
18 |
+++ b/games-emulation/dosbox/dosbox-9999.ebuild |
19 |
@@ -1,17 +1,24 @@ |
20 |
-# Copyright 1999-2015 Gentoo Foundation |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# $Id$ |
24 |
|
25 |
-EAPI=5 |
26 |
-ESVN_REPO_URI="https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk" |
27 |
-inherit autotools eutils subversion games |
28 |
+EAPI=6 |
29 |
+ |
30 |
+if [[ ${PV} = 9999 ]]; then |
31 |
+ ESVN_REPO_URI="https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk" |
32 |
+ inherit subversion |
33 |
+else |
34 |
+ SRC_URI="mirror://sourceforge/dosbox/${P}.tar.gz" |
35 |
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" |
36 |
+fi |
37 |
+ |
38 |
+inherit autotools eutils |
39 |
|
40 |
DESCRIPTION="DOS emulator" |
41 |
HOMEPAGE="http://dosbox.sourceforge.net/" |
42 |
|
43 |
LICENSE="GPL-2" |
44 |
SLOT="0" |
45 |
-KEYWORDS="" |
46 |
IUSE="alsa debug hardened opengl" |
47 |
|
48 |
DEPEND="alsa? ( media-libs/alsa-lib ) |
49 |
@@ -23,19 +30,20 @@ DEPEND="alsa? ( media-libs/alsa-lib ) |
50 |
media-libs/sdl-sound" |
51 |
RDEPEND=${DEPEND} |
52 |
|
53 |
-S=${WORKDIR}/${PN} |
54 |
- |
55 |
-src_unpack() { |
56 |
- subversion_src_unpack |
57 |
-} |
58 |
+if [[ ${PV} = 9999 ]]; then |
59 |
+ S=${WORKDIR}/${PN} |
60 |
+fi |
61 |
|
62 |
src_prepare() { |
63 |
- subversion_src_prepare |
64 |
+ default |
65 |
+ if [[ ${PV} = 9999 ]]; then |
66 |
+ subversion_src_prepare |
67 |
+ fi |
68 |
eautoreconf |
69 |
} |
70 |
|
71 |
src_configure() { |
72 |
- egamesconf \ |
73 |
+ econf \ |
74 |
$(use_enable alsa alsa-midi) \ |
75 |
$(use_enable !hardened dynamic-core) \ |
76 |
$(use_enable !hardened dynamic-x86) \ |
77 |
@@ -47,5 +55,4 @@ src_install() { |
78 |
default |
79 |
make_desktop_entry dosbox DOSBox /usr/share/pixmaps/dosbox.ico |
80 |
doicon src/dosbox.ico |
81 |
- prepgamesdirs |
82 |
} |