Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/mednafen/
Date: Tue, 15 Jun 2021 21:34:47
Message-Id: 1623792813.1ca9cc16cc005f0933cc75f7bf7a50e8f3141cd2.ionen@gentoo
1 commit: 1ca9cc16cc005f0933cc75f7bf7a50e8f3141cd2
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 15 21:32:10 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 15 21:33:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ca9cc16
7
8 games-emulation/mednafen: add 1.27.1
9
10 Removes support for libsndfile and adds flac in its place.
11
12 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
13
14 games-emulation/mednafen/Manifest | 1 +
15 games-emulation/mednafen/mednafen-1.27.1.ebuild | 76 +++++++++++++++++++++++++
16 2 files changed, 77 insertions(+)
17
18 diff --git a/games-emulation/mednafen/Manifest b/games-emulation/mednafen/Manifest
19 index dff999e5abb..3aabde11efd 100644
20 --- a/games-emulation/mednafen/Manifest
21 +++ b/games-emulation/mednafen/Manifest
22 @@ -1 +1,2 @@
23 DIST mednafen-1.26.1.tar.xz 3319756 BLAKE2B d306a0754ed0c64a99cee4eacfa47f5f46ca059026bfc2ef6bfff4be82e914a2882a864538c8cb6bb948cdb9bd53651d931b033446015ad06be309893a2bfef7 SHA512 c91db3967c09a475fcd3410eb6892a99f3cf2ca2c5a78173669aa52c2e588819595d1d140e0c1888f48885327a9381c64cfb8f2074be8067984a4414c6f282bf
24 +DIST mednafen-1.27.1.tar.xz 3363540 BLAKE2B f74c251300af2348db00d68ef2cd998bdf4d6fb06873e03e0027d836b5b1217901b1e2cf922877b1db4c278ba4cc2674e4875a17fff52a3b8be5a447670a6385 SHA512 f55d86baa8c77fc98aae63a38235eb64f64131f180c40ed1ac7cd2ad845230348fbba05643eb5e6af203e56c39c8011b632d2bcecbd2c9f2c19b2447f6b99e83
25
26 diff --git a/games-emulation/mednafen/mednafen-1.27.1.ebuild b/games-emulation/mednafen/mednafen-1.27.1.ebuild
27 new file mode 100644
28 index 00000000000..ff0f36561a3
29 --- /dev/null
30 +++ b/games-emulation/mednafen/mednafen-1.27.1.ebuild
31 @@ -0,0 +1,76 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools flag-o-matic pax-utils toolchain-funcs
38 +
39 +DESCRIPTION="Argument-driven multi-system emulator utilizing OpenGL and SDL"
40 +HOMEPAGE="https://mednafen.github.io/"
41 +SRC_URI="https://mednafen.github.io/releases/files/${P}.tar.xz"
42 +S="${WORKDIR}/${PN}"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="alsa cpu_flags_ppc_altivec flac jack"
48 +
49 +RDEPEND="
50 + dev-libs/lzo:2
51 + dev-libs/trio
52 + media-libs/libsdl2[joystick,opengl,video]
53 + media-libs/tremor
54 + media-sound/musepack-tools
55 + sys-libs/zlib:=[minizip]
56 + virtual/libintl
57 + alsa? ( media-libs/alsa-lib )
58 + flac? ( media-libs/flac )
59 + jack? ( virtual/jack )"
60 +DEPEND="${RDEPEND}"
61 +BDEPEND="
62 + sys-devel/gettext
63 + virtual/pkgconfig"
64 +
65 +src_prepare() {
66 + default
67 +
68 + # don't let the build system mess with CFLAGS more than necessary,
69 + # most are questionable (see README.PORTING/configure.ac comments)
70 + # -fwrapv: kept for bug #539992
71 + sed -e '/CC_OPT.*CODEGEN_FLAGS/{/-fwrapv/!d}' \
72 + -e '/CC_OPT.*NO_STACK_PROTECTOR_FLAGS/d' \
73 + -e '/CC_OPT.*OPTIMIZER_FLAGS/c\:' \
74 + -e '/CC_OPT.*-mtune.*SS_EXTRA_FLAGS/d' \
75 + -i configure.ac || die
76 + eautoreconf
77 +}
78 +
79 +src_configure() {
80 + # disable unnecessary warnings not to confuse users (see src/types.h)
81 + append-cppflags -DMDFN_DISABLE_{NO_OPT,PICPIE}_ERRWARN
82 +
83 + local myeconfargs=(
84 + $(use_enable alsa)
85 + $(use_enable cpu_flags_ppc_altivec altivec)
86 + $(use_enable jack)
87 + $(use_with flac libflac)
88 + --with-external-{lzo,mpcdec,tremor,trio}
89 + )
90 + econf "${myeconfargs[@]}"
91 +}
92 +
93 +src_compile() {
94 + emake AR="$(tc-getAR)"
95 +}
96 +
97 +src_install() {
98 + local DOCS=(
99 + ChangeLog
100 + Documentation/{cheats.txt,fname_format.txt,modules.def,settings.def}
101 + )
102 + local HTML_DOCS=( Documentation/*.{css,html,png} )
103 +
104 + default
105 +
106 + pax-mark m "${ED}"/usr/bin/mednafen
107 +}