Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/dosbox-staging/, games-emulation/dosbox-staging/files/
Date: Fri, 04 Sep 2020 21:26:31
Message-Id: 1599254781.0d7dc6ce882f0189e8340630c9bd1fdf75f02d10.voyageur@gentoo
1 commit: 0d7dc6ce882f0189e8340630c9bd1fdf75f02d10
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 4 21:25:48 2020 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 4 21:26:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d7dc6ce
7
8 games-emulation/dosbox-staging: small fixes
9
10 Do not call ar directly
11 Fix icon installation
12 Use provided desktop file
13
14 Closes: https://bugs.gentoo.org/738116
15 Closes: https://bugs.gentoo.org/738470
16 Package-Manager: Portage-3.0.5, Repoman-3.0.1
17 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
18
19 .../dosbox-staging/dosbox-staging-0.75.1-r2.ebuild | 51 ++++++++++++++++++++++
20 .../files/dosbox-staging-0.75.1-ar.patch | 11 +++++
21 2 files changed, 62 insertions(+)
22
23 diff --git a/games-emulation/dosbox-staging/dosbox-staging-0.75.1-r2.ebuild b/games-emulation/dosbox-staging/dosbox-staging-0.75.1-r2.ebuild
24 new file mode 100644
25 index 00000000000..12e1e297030
26 --- /dev/null
27 +++ b/games-emulation/dosbox-staging/dosbox-staging-0.75.1-r2.ebuild
28 @@ -0,0 +1,51 @@
29 +# Copyright 2020 Gentoo Authors
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=7
33 +inherit autotools desktop xdg
34 +
35 +DESCRIPTION="Modernized DOSBox soft-fork"
36 +HOMEPAGE="https://dosbox-staging.github.io/"
37 +SRC_URI="https://github.com/dosbox-staging/dosbox-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz"
38 +
39 +LICENSE="GPL-2"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="alsa debug dynrec network opengl opus"
43 +
44 +RDEPEND="alsa? ( media-libs/alsa-lib )
45 + debug? ( sys-libs/ncurses:0= )
46 + network? ( media-libs/sdl2-net )
47 + opengl? ( virtual/opengl )
48 + opus? ( media-libs/opusfile )
49 + media-libs/libpng:0=
50 + media-libs/libsdl2[joystick,opengl?,video,X]
51 + sys-libs/zlib
52 + !games-emulation/dosbox"
53 +DEPEND="${RDEPEND}"
54 +BDEPEND=""
55 +
56 +PATCHES=( "${FILESDIR}"/${P}-ar.patch
57 + "${FILESDIR}"/${P}-pthread.patch )
58 +
59 +src_prepare() {
60 + default
61 + eautoreconf
62 +}
63 +
64 +src_configure() {
65 + econf \
66 + $(use_enable alsa alsa-midi) \
67 + $(use_enable debug) \
68 + $(use_enable !dynrec dynamic-x86) \
69 + $(use_enable dynrec) \
70 + $(use_enable network) \
71 + $(use_enable opengl) \
72 + $(use_enable opus opus-cdda)
73 +}
74 +
75 +src_install() {
76 + default
77 + doicon -s scalable contrib/icons/${PN}.svg
78 + domenu contrib/linux/dosbox-staging.desktop
79 +}
80
81 diff --git a/games-emulation/dosbox-staging/files/dosbox-staging-0.75.1-ar.patch b/games-emulation/dosbox-staging/files/dosbox-staging-0.75.1-ar.patch
82 new file mode 100644
83 index 00000000000..fb2c24267f0
84 --- /dev/null
85 +++ b/games-emulation/dosbox-staging/files/dosbox-staging-0.75.1-ar.patch
86 @@ -0,0 +1,11 @@
87 +diff -Naur dosbox-staging-0.75.1.orig/configure.ac dosbox-staging-0.75.1/configure.ac
88 +--- dosbox-staging-0.75.1.orig/configure.ac 2020-08-19 10:49:45.000000000 +0200
89 ++++ dosbox-staging-0.75.1/configure.ac 2020-09-04 23:03:11.375920481 +0200
90 +@@ -17,6 +17,7 @@
91 + AC_CONFIG_HEADER(config.h)
92 +
93 + dnl Checks for programs.
94 ++AM_PROG_AR
95 + AC_PROG_MAKE_SET
96 + AC_PROG_CC
97 + AC_PROG_CPP