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