commit: e8e4226127e48e46674e525381053faa73b59914
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 12 21:08:14 2023 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Oct 12 21:08:14 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8e42261
media-libs/libopenmpt: Bump to 0.7.3
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
media-libs/libopenmpt/Manifest | 1 +
media-libs/libopenmpt/libopenmpt-0.7.3.ebuild | 61 +++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
diff --git a/media-libs/libopenmpt/Manifest b/media-libs/libopenmpt/Manifest
index be576eb252e1..2de6d7039dc3 100644
--- a/media-libs/libopenmpt/Manifest
+++ b/media-libs/libopenmpt/Manifest
@@ -1,3 +1,4 @@
DIST libopenmpt-0.6.6+release.autotools.tar.gz 1554516 BLAKE2B
21e2fc4252431235608a52d3a321e26eae5d45f2328ff3e3604d84c537d72e07d72346c504901b000af04dfc52b1dd91c79f576be4331ea8685e534a174b61cd
SHA512
b634c556f13dc51d1008f4216936a9b7cab25a6fb0d5218da0b692ec848de21905ed1981223ac9ecdebea9ce6c5376e91ff92e1655dd0be491fce0114e3230bf
DIST libopenmpt-0.7.1+release.autotools.tar.gz 1650178 BLAKE2B
5bc9ad5640e842d7320df59c76cae7619a36dab72a5b084a65ab0b99f00d48ce1aaca4c7344a9e14eab05bd3f05c8f60a93bce68e99cd5f93344453dee90d29f
SHA512
65468341b24d80f8bf0e9cf32d43b3ca3ced0323836373ae3c794b6df5b23d7e9c230ec37dd00777e22038d340adb56b20b83815e048fae22117ead0b4044bba
DIST libopenmpt-0.7.2+release.autotools.tar.gz 1651153 BLAKE2B
170066149d443f465caa74cc308e00394dea8925753466be72a57a2e3625befaf18e3c6e9acb17f2a98068c53487093726a5a7e2a49b4efc093dd85a9073e197
SHA512
5a92641679c72694d29b2bfe46f50ad31c964426f43213b67561f67a21c5683a13a61b0810fced3c46c071f40857a2c564a68947334792e94830cbe66dc5716d
+DIST libopenmpt-0.7.3+release.autotools.tar.gz 1648862 BLAKE2B
aec630daa7a40d1e0da36593c4bc8c8065f6d54a58bb5707ee3f5d00009368e0421b6ac892b9e4c1b9f952a8e5d59168078b548d27738fbdd27673486b2c1b08
SHA512
c88b92409114435d1596d617c04eb2436afe93de611898708587e018c8b8eb6fe45865d2e9144b3647501faa39ba633616204a5f752cbbc88f84eda20444db35
diff --git a/media-libs/libopenmpt/libopenmpt-0.7.3.ebuild
b/media-libs/libopenmpt/libopenmpt-0.7.3.ebuild
new file mode 100644
index 000000000000..e5e9549227c0
--- /dev/null
+++ b/media-libs/libopenmpt/libopenmpt-0.7.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal
+
+MY_P="libopenmpt-${PV}+release.autotools"
+DESCRIPTION="Library to decode tracked music files (modules)"
+HOMEPAGE="https://lib.openmpt.org/libopenmpt/"
+SRC_URI="https://lib.openmpt.org/files/libopenmpt/src/${MY_P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="examples mp3 ogg static-libs test vorbis zlib"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ mp3? ( media-sound/mpg123[${MULTILIB_USEDEP}] )
+ ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] )
+ vorbis? ( media-libs/libvorbis[${MULTILIB_USEDEP}] )
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+ECONF_SOURCE="${S}"
+
+multilib_src_configure() {
+ # A lot of these optional dependencies relate to openmpt123, which
+ # we package separately, so we disable them here.
+ econf \
+ $(use_enable static-libs static) \
+ --disable-openmpt123 \
+ --disable-examples \
+ $(use_enable test tests) \
+ --disable-doxygen-doc \
+ $(use_with zlib) \
+ $(use_with mp3 mpg123) \
+ $(use_with ogg) \
+ $(use_with vorbis) \
+ $(use_with vorbis vorbisfile) \
+ --without-pulseaudio \
+ --without-portaudio \
+ --without-portaudiocpp \
+ --without-sdl2 \
+ --without-sndfile \
+ --without-flac
+}
+
+multilib_src_install_all() {
+ rm -f \
+ "${ED}"/usr/*/*.la \
+ "${ED}"/usr/share/doc/${P}/LICENSE || die
+
+ if ! use examples; then
+ rm -r "${ED}"/usr/share/doc/${P}/examples || die
+ fi
+}