1 |
commit: 5b94739c84fec1e575996b979cdbda9bd7cb462b |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 20 12:35:29 2020 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 20 12:35:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b94739c |
7 |
|
8 |
games-emulation/dosbox-staging: 0.75.1 bump |
9 |
|
10 |
Also fix compilation with USE=-alsa |
11 |
|
12 |
Closes: https://bugs.gentoo.org/736234 |
13 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
14 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
15 |
|
16 |
games-emulation/dosbox-staging/Manifest | 1 + |
17 |
.../dosbox-staging/dosbox-staging-0.75.1.ebuild | 49 ++++++++++++++++++++++ |
18 |
.../files/dosbox-staging-0.75.1-pthread.patch | 11 +++++ |
19 |
3 files changed, 61 insertions(+) |
20 |
|
21 |
diff --git a/games-emulation/dosbox-staging/Manifest b/games-emulation/dosbox-staging/Manifest |
22 |
index 099aa872432..e93eac01c1e 100644 |
23 |
--- a/games-emulation/dosbox-staging/Manifest |
24 |
+++ b/games-emulation/dosbox-staging/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST dosbox-staging-0.75.0.tar.gz 1805354 BLAKE2B e376006a2c3890d98efdaa8041634bfca8b95f6c6471f36f8fdd53e319aad8d37f20bd195a20264bade1e6974327f1f888dec6050da493fc8a6e6bb6c5739150 SHA512 2e049ed44928ad4adeaca73d328cf8f415bcb8c1a399306b1e8a5fd2b7cd7c3d3fe10017b47e5d2f3e54c34042ee901b98486f5b47a3d2eaf43f4e13891f8b70 |
27 |
+DIST dosbox-staging-0.75.1.tar.gz 1806471 BLAKE2B 5f9f8038327eb46c2c2b5035ca8e2cc93660bb6ce1dfa9572bf67278f14455db723104c0ab4e90b805cc7dbf253f61528ad6a31edb574af57e106f613958aede SHA512 3e14354e4eb697514c4348af2e73e9f2fb84cc3796b5cfea37faac355bd93a54b0f9c717bf0ab75d824cf34e3ee0d40546e2bbf80bc924a37bd8f981f054e4e9 |
28 |
|
29 |
diff --git a/games-emulation/dosbox-staging/dosbox-staging-0.75.1.ebuild b/games-emulation/dosbox-staging/dosbox-staging-0.75.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..3ace52dd142 |
32 |
--- /dev/null |
33 |
+++ b/games-emulation/dosbox-staging/dosbox-staging-0.75.1.ebuild |
34 |
@@ -0,0 +1,49 @@ |
35 |
+# Copyright 2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+inherit autotools desktop |
40 |
+ |
41 |
+DESCRIPTION="Modernized DOSBox soft-fork" |
42 |
+HOMEPAGE="https://dosbox-staging.github.io/" |
43 |
+SRC_URI="https://github.com/dosbox-staging/dosbox-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="alsa debug dynrec opengl opus" |
49 |
+ |
50 |
+RDEPEND="alsa? ( media-libs/alsa-lib ) |
51 |
+ debug? ( sys-libs/ncurses:0= ) |
52 |
+ opengl? ( virtual/opengl ) |
53 |
+ opus? ( media-libs/opusfile ) |
54 |
+ media-libs/libpng:0= |
55 |
+ media-libs/libsdl2[joystick,opengl?,video,X] |
56 |
+ media-libs/sdl-net |
57 |
+ sys-libs/zlib |
58 |
+ !games-emulation/dosbox" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+BDEPEND="" |
61 |
+ |
62 |
+PATCHES=( "${FILESDIR}"/${P}-pthread.patch ) |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ eautoreconf |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ econf \ |
71 |
+ $(use_enable alsa alsa-midi) \ |
72 |
+ $(use_enable debug) \ |
73 |
+ $(use_enable !dynrec dynamic-x86) \ |
74 |
+ $(use_enable dynrec) \ |
75 |
+ $(use_enable opengl) \ |
76 |
+ $(use_enable opus opus-cdda) |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ default |
81 |
+ doicon contrib/icons/${PN}.svg |
82 |
+ make_desktop_entry dosbox DOSBox-staging ${PN} |
83 |
+} |
84 |
|
85 |
diff --git a/games-emulation/dosbox-staging/files/dosbox-staging-0.75.1-pthread.patch b/games-emulation/dosbox-staging/files/dosbox-staging-0.75.1-pthread.patch |
86 |
new file mode 100644 |
87 |
index 00000000000..1aa7de682bd |
88 |
--- /dev/null |
89 |
+++ b/games-emulation/dosbox-staging/files/dosbox-staging-0.75.1-pthread.patch |
90 |
@@ -0,0 +1,11 @@ |
91 |
+--- dosbox-staging-0.75.1/configure.ac.orig 2020-08-20 14:25:41.295432272 +0200 |
92 |
++++ dosbox-staging-0.75.1/configure.ac 2020-08-20 14:26:00.614461707 +0200 |
93 |
+@@ -37,7 +37,7 @@ |
94 |
+ :, |
95 |
+ AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
96 |
+ ) |
97 |
+-LIBS="$LIBS $SDL_LIBS" |
98 |
++LIBS="$LIBS -lpthread $SDL_LIBS" |
99 |
+ CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" |
100 |
+ |
101 |
+ dnl Checks for header files. |