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-libs/libopenmpt/
Date: Wed, 27 Apr 2022 21:50:16
Message-Id: 1651096137.573d2476de20ce3539dade681a8ecd465290f07d.chewi@gentoo
1 commit: 573d2476de20ce3539dade681a8ecd465290f07d
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 27 21:48:57 2022 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 27 21:48:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=573d2476
7
8 media-libs/libopenmpt: Version bump to 0.6.3
9
10 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
11
12 media-libs/libopenmpt/Manifest | 1 +
13 media-libs/libopenmpt/libopenmpt-0.6.3.ebuild | 61 +++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/media-libs/libopenmpt/Manifest b/media-libs/libopenmpt/Manifest
17 index bee9d350ebc2..45a14c036ec9 100644
18 --- a/media-libs/libopenmpt/Manifest
19 +++ b/media-libs/libopenmpt/Manifest
20 @@ -1,3 +1,4 @@
21 DIST libopenmpt-0.5.14+release.autotools.tar.gz 1446898 BLAKE2B ab6ff8db2e19d859fecca882aea3e569b58d96d5055ec0dd42494a7eb38fefa9c8b88f4700d354de71346c71c6d9a96327db1c2b7b48e227928dcba0ce7347d6 SHA512 8897549c18afb57c5bf54f4dd8a1d80983829bca958052d76cda1315ef4a37f4201575817b7cedfe17a44ee79051a52aa35b26a51b554091e92c9d2dcf5924a3
22 DIST libopenmpt-0.6.1+release.autotools.tar.gz 1511280 BLAKE2B 222e71f0cc1343ff76c9ffc295664c52db74906b20a9c7cdd7d7e7d05a4795a2cda1d0de265f0e1b2dabc1bfb6757342046117222b5d035f633ae9da7e7d2301 SHA512 b43124746fc7c8bdbcfcf24c5cff1cd8330cab664fd1641ac7a35416ed25bb80c74f31db74085c13f4beb9774c17c12a4486c8c5e976f3fbb70a27c236c0f4fb
23 DIST libopenmpt-0.6.2+release.autotools.tar.gz 1514140 BLAKE2B 38e8d24352cce92b38ddf8e1f33af7fb72571b88b8f4cbddff626affe2f00bdb73635872d502417e37c68aa0f2254338088bb493b47c688a22d342b3ba54f725 SHA512 a4bbf804d4be72d11216173371ab81703877071cf15e2daaaf59b0eb892d5948072af00bd1ec8c097c23bb3f77bc2c0be6cf853dcf3c7c24aa6109a9f74d0948
24 +DIST libopenmpt-0.6.3+release.autotools.tar.gz 1514410 BLAKE2B e61473b3dcb1c88450b72fdd29b7e22f794134ffdf23222a79bf715c6e1c1810e19a5fb48cd6e1536d1f892349cf90cfa34b90e0a67e1c208e993f2db51af082 SHA512 b9f9cce9ef7d87ad8f18d17603b613fd153d5effdf04de566daabe26afa08b84eb0aa089b94fcbf7cb724befd0a3d93ffdaf5b578f2a3afa31f7aa517f39c62f
25
26 diff --git a/media-libs/libopenmpt/libopenmpt-0.6.3.ebuild b/media-libs/libopenmpt/libopenmpt-0.6.3.ebuild
27 new file mode 100644
28 index 000000000000..857e12042a27
29 --- /dev/null
30 +++ b/media-libs/libopenmpt/libopenmpt-0.6.3.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit multilib-minimal
38 +
39 +MY_P="libopenmpt-${PV}+release.autotools"
40 +DESCRIPTION="Library to decode tracked music files (modules)"
41 +HOMEPAGE="https://lib.openmpt.org/libopenmpt/"
42 +SRC_URI="https://lib.openmpt.org/files/libopenmpt/src/${MY_P}.tar.gz"
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~ppc ~riscv ~x86"
46 +IUSE="examples mp3 ogg static-libs test vorbis zlib"
47 +RESTRICT="!test? ( test )"
48 +
49 +RDEPEND="
50 + mp3? ( media-sound/mpg123[${MULTILIB_USEDEP}] )
51 + ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] )
52 + vorbis? ( media-libs/libvorbis[${MULTILIB_USEDEP}] )
53 + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
54 +"
55 +
56 +DEPEND="${RDEPEND}"
57 +BDEPEND="virtual/pkgconfig"
58 +
59 +S="${WORKDIR}/${MY_P}"
60 +ECONF_SOURCE="${S}"
61 +
62 +multilib_src_configure() {
63 + # A lot of these optional dependencies relate to openmpt123, which
64 + # we package separately, so we disable them here.
65 + econf \
66 + $(use_enable static-libs static) \
67 + --disable-openmpt123 \
68 + --disable-examples \
69 + $(use_enable test tests) \
70 + --disable-doxygen-doc \
71 + $(use_with zlib) \
72 + $(use_with mp3 mpg123) \
73 + $(use_with ogg) \
74 + $(use_with vorbis) \
75 + $(use_with vorbis vorbisfile) \
76 + --without-pulseaudio \
77 + --without-portaudio \
78 + --without-portaudiocpp \
79 + --without-sdl2 \
80 + --without-sndfile \
81 + --without-flac
82 +}
83 +
84 +multilib_src_install_all() {
85 + rm -f \
86 + "${ED}"/usr/*/*.la \
87 + "${ED}"/usr/share/doc/${P}/LICENSE || die
88 +
89 + if ! use examples; then
90 + rm -r "${ED}"/usr/share/doc/${P}/examples || die
91 + fi
92 +}