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/
Date: Sat, 09 May 2020 15:39:11
Message-Id: 1589038735.45fb4facbf6f7dd1f9f02ea215a5395eed52c7e6.voyageur@gentoo
1 commit: 45fb4facbf6f7dd1f9f02ea215a5395eed52c7e6
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 9 15:38:33 2020 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Sat May 9 15:38:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45fb4fac
7
8 games-emulation/dosbox-staging: initial import
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
12
13 games-emulation/dosbox-staging/Manifest | 1 +
14 .../dosbox-staging/dosbox-staging-0.75.0.ebuild | 47 ++++++++++++++++++++++
15 games-emulation/dosbox-staging/metadata.xml | 15 +++++++
16 3 files changed, 63 insertions(+)
17
18 diff --git a/games-emulation/dosbox-staging/Manifest b/games-emulation/dosbox-staging/Manifest
19 new file mode 100644
20 index 00000000000..099aa872432
21 --- /dev/null
22 +++ b/games-emulation/dosbox-staging/Manifest
23 @@ -0,0 +1 @@
24 +DIST dosbox-staging-0.75.0.tar.gz 1805354 BLAKE2B e376006a2c3890d98efdaa8041634bfca8b95f6c6471f36f8fdd53e319aad8d37f20bd195a20264bade1e6974327f1f888dec6050da493fc8a6e6bb6c5739150 SHA512 2e049ed44928ad4adeaca73d328cf8f415bcb8c1a399306b1e8a5fd2b7cd7c3d3fe10017b47e5d2f3e54c34042ee901b98486f5b47a3d2eaf43f4e13891f8b70
25
26 diff --git a/games-emulation/dosbox-staging/dosbox-staging-0.75.0.ebuild b/games-emulation/dosbox-staging/dosbox-staging-0.75.0.ebuild
27 new file mode 100644
28 index 00000000000..fb71bdee846
29 --- /dev/null
30 +++ b/games-emulation/dosbox-staging/dosbox-staging-0.75.0.ebuild
31 @@ -0,0 +1,47 @@
32 +# Copyright 2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +inherit autotools desktop
37 +
38 +DESCRIPTION="Modernized DOSBox soft-fork"
39 +HOMEPAGE="https://dosbox-staging.github.io/"
40 +SRC_URI="https://github.com/dosbox-staging/dosbox-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="alsa debug dynrec opengl opus"
46 +
47 +RDEPEND="alsa? ( media-libs/alsa-lib )
48 + debug? ( sys-libs/ncurses:0= )
49 + opengl? ( virtual/opengl )
50 + opus? ( media-libs/opus )
51 + media-libs/libpng:0=
52 + media-libs/libsdl2[joystick,opengl?,video,X]
53 + media-libs/sdl-net
54 + sys-libs/zlib
55 + !games-emulation/dosbox"
56 +DEPEND="${RDEPEND}"
57 +BDEPEND=""
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 opengl) \
71 + $(use_enable opus opus-cdda)
72 +}
73 +
74 +src_install() {
75 + default
76 + doicon contrib/icons/${PN}.svg
77 + make_desktop_entry dosbox DOSBox-staging ${PN}.svg
78 +}
79
80 diff --git a/games-emulation/dosbox-staging/metadata.xml b/games-emulation/dosbox-staging/metadata.xml
81 new file mode 100644
82 index 00000000000..ea78ea742a7
83 --- /dev/null
84 +++ b/games-emulation/dosbox-staging/metadata.xml
85 @@ -0,0 +1,15 @@
86 +<?xml version="1.0" encoding="UTF-8"?>
87 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
88 +<pkgmetadata>
89 + <maintainer type="person">
90 + <email>voyageur@g.o</email>
91 + <name>Bernard Cafarelli</name>
92 + </maintainer>
93 + <use>
94 + <flag name="dynrec">Use recompiling cpu core instead of dynamic x86/x64 specific cpu core</flag>
95 + <flag name="opus">Support compressed audio tracks (.opus) used with CDROM images</flag>
96 + </use>
97 + <upstream>
98 + <remote-id type="github">dosbox-staging/dosbox-staging</remote-id>
99 + </upstream>
100 +</pkgmetadata>