Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/openmpt123/
Date: Mon, 27 Dec 2021 13:14:43
Message-Id: 1640610857.486e52056c7e352a04b3eac6cb263486bf09ad45.chewi@gentoo
1 commit: 486e52056c7e352a04b3eac6cb263486bf09ad45
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 27 13:14:17 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 27 13:14:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=486e5205
7
8 media-sound/openmpt123: Version bump to 0.6.0
9
10 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
11
12 media-sound/openmpt123/Manifest | 1 +
13 media-sound/openmpt123/openmpt123-0.6.0.ebuild | 73 ++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/media-sound/openmpt123/Manifest b/media-sound/openmpt123/Manifest
17 index 197a8eaf9e90..28104baf1634 100644
18 --- a/media-sound/openmpt123/Manifest
19 +++ b/media-sound/openmpt123/Manifest
20 @@ -1 +1,2 @@
21 DIST libopenmpt-0.5.14+release.autotools.tar.gz 1446898 BLAKE2B ab6ff8db2e19d859fecca882aea3e569b58d96d5055ec0dd42494a7eb38fefa9c8b88f4700d354de71346c71c6d9a96327db1c2b7b48e227928dcba0ce7347d6 SHA512 8897549c18afb57c5bf54f4dd8a1d80983829bca958052d76cda1315ef4a37f4201575817b7cedfe17a44ee79051a52aa35b26a51b554091e92c9d2dcf5924a3
22 +DIST libopenmpt-0.6.0+release.autotools.tar.gz 1506911 BLAKE2B 44cf8c5f725d2b11409d23e293dca0c151cad17c029da7f70a22366e75baa1b49b763f67d617d84a142efd3933b90344ccca5d881e5c724e2cfe0210170593dc SHA512 8da6cf1f2dbf683c32f45cbf884784360cced5e21f9862c96a1a679bd90b36be9a7cc59accbf82271a804722986cb81e75915f6564aeaaa248ed3e967dfdfb1a
23
24 diff --git a/media-sound/openmpt123/openmpt123-0.6.0.ebuild b/media-sound/openmpt123/openmpt123-0.6.0.ebuild
25 new file mode 100644
26 index 000000000000..82cbe36ce684
27 --- /dev/null
28 +++ b/media-sound/openmpt123/openmpt123-0.6.0.ebuild
29 @@ -0,0 +1,73 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit multilib
36 +
37 +MY_P="libopenmpt-${PV}+release.autotools"
38 +DESCRIPTION="libopenmpt-based command line player for tracked music files (modules)"
39 +HOMEPAGE="https://lib.openmpt.org/libopenmpt/"
40 +SRC_URI="https://lib.openmpt.org/files/libopenmpt/src/${MY_P}.tar.gz"
41 +LICENSE="BSD"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~riscv ~x86"
44 +IUSE="flac portaudio pulseaudio sdl sndfile"
45 +
46 +RDEPEND="
47 + ~media-libs/libopenmpt-${PV}
48 + flac? ( media-libs/flac )
49 + pulseaudio? ( media-sound/pulseaudio )
50 + sdl? ( >=media-libs/libsdl2-2.0.4 )
51 + sndfile? ( media-libs/libsndfile )
52 +"
53 +
54 +DEPEND="${RDEPEND}"
55 +BDEPEND="virtual/pkgconfig"
56 +
57 +S="${WORKDIR}/${MY_P}"
58 +
59 +src_prepare() {
60 + default
61 +
62 + # Normally libopenmpt is built alongside openmpt123. Avoid the
63 + # internal dependency and link it externally.
64 + rm -r libopenmpt/ || die
65 + sed -i \
66 + -e "s:libopenmpt/libopenmpt\.pc::g" \
67 + configure || die
68 + sed -i \
69 + -e "/_${PN}_DEPENDENCIES/s:libopenmpt\.la::g" \
70 + -e "/_${PN}_LDADD/s:libopenmpt\.la:-lopenmpt:g" \
71 + Makefile.in || die
72 +}
73 +
74 +src_configure() {
75 + # A lot of these optional dependencies relate to libopenmpt, which
76 + # we package separately, so we disable them here.
77 + econf \
78 + --disable-static \
79 + --enable-openmpt123 \
80 + --disable-examples \
81 + --disable-tests \
82 + --disable-doxygen-doc \
83 + --without-zlib \
84 + --without-mpg123 \
85 + --without-ogg \
86 + --without-vorbis \
87 + --without-vorbisfile \
88 + $(use_with pulseaudio) \
89 + $(use_with portaudio) \
90 + --without-portaudiocpp \
91 + $(use_with sdl sdl2) \
92 + $(use_with sndfile) \
93 + $(use_with flac)
94 +}
95 +
96 +src_compile() {
97 + emake "bin/${PN}$(get_exeext)"
98 +}
99 +
100 +src_install() {
101 + dobin "bin/${PN}$(get_exeext)"
102 +}