1 |
commit: b543b99a457e15cff0389a7954fa9641cb5eac10 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 21 13:17:45 2020 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 21 13:19:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b543b99a |
7 |
|
8 |
games-emulation/dosbox-staging: fix sdl2-net dep |
9 |
|
10 |
Also add a USE-flag for it |
11 |
|
12 |
Closes: https://bugs.gentoo.org/738360 |
13 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
14 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
15 |
|
16 |
.../dosbox-staging/dosbox-staging-0.75.1-r1.ebuild | 50 ++++++++++++++++++++++ |
17 |
games-emulation/dosbox-staging/metadata.xml | 1 + |
18 |
2 files changed, 51 insertions(+) |
19 |
|
20 |
diff --git a/games-emulation/dosbox-staging/dosbox-staging-0.75.1-r1.ebuild b/games-emulation/dosbox-staging/dosbox-staging-0.75.1-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..dbebde3b22e |
23 |
--- /dev/null |
24 |
+++ b/games-emulation/dosbox-staging/dosbox-staging-0.75.1-r1.ebuild |
25 |
@@ -0,0 +1,50 @@ |
26 |
+# Copyright 2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+inherit autotools desktop |
31 |
+ |
32 |
+DESCRIPTION="Modernized DOSBox soft-fork" |
33 |
+HOMEPAGE="https://dosbox-staging.github.io/" |
34 |
+SRC_URI="https://github.com/dosbox-staging/dosbox-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="alsa debug dynrec network opengl opus" |
40 |
+ |
41 |
+RDEPEND="alsa? ( media-libs/alsa-lib ) |
42 |
+ debug? ( sys-libs/ncurses:0= ) |
43 |
+ network? ( media-libs/sdl2-net ) |
44 |
+ opengl? ( virtual/opengl ) |
45 |
+ opus? ( media-libs/opusfile ) |
46 |
+ media-libs/libpng:0= |
47 |
+ media-libs/libsdl2[joystick,opengl?,video,X] |
48 |
+ sys-libs/zlib |
49 |
+ !games-emulation/dosbox" |
50 |
+DEPEND="${RDEPEND}" |
51 |
+BDEPEND="" |
52 |
+ |
53 |
+PATCHES=( "${FILESDIR}"/${P}-pthread.patch ) |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ eautoreconf |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ econf \ |
62 |
+ $(use_enable alsa alsa-midi) \ |
63 |
+ $(use_enable debug) \ |
64 |
+ $(use_enable !dynrec dynamic-x86) \ |
65 |
+ $(use_enable dynrec) \ |
66 |
+ $(use_enable network) \ |
67 |
+ $(use_enable opengl) \ |
68 |
+ $(use_enable opus opus-cdda) |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ default |
73 |
+ doicon contrib/icons/${PN}.svg |
74 |
+ make_desktop_entry dosbox DOSBox-staging ${PN} |
75 |
+} |
76 |
|
77 |
diff --git a/games-emulation/dosbox-staging/metadata.xml b/games-emulation/dosbox-staging/metadata.xml |
78 |
index ea78ea742a7..91406d636bc 100644 |
79 |
--- a/games-emulation/dosbox-staging/metadata.xml |
80 |
+++ b/games-emulation/dosbox-staging/metadata.xml |
81 |
@@ -7,6 +7,7 @@ |
82 |
</maintainer> |
83 |
<use> |
84 |
<flag name="dynrec">Use recompiling cpu core instead of dynamic x86/x64 specific cpu core</flag> |
85 |
+ <flag name="network">Enable networking features (modem, ipx)</flag> |
86 |
<flag name="opus">Support compressed audio tracks (.opus) used with CDROM images</flag> |
87 |
</use> |
88 |
<upstream> |