commit: 8ec8e31ff9c05e833a500816a7fd2025353e6493 Author: demize <demize <AT> unstable <DOT> systems> AuthorDate: Fri May 23 01:12:22 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun May 25 13:52:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ec8e31f
media-libs/game-music-emu: add 0.6.4 This bumps the EAPI to 8, and updates the upstream and remotes per bug 916690. This also cleans the test directory between multilib builds to avoid test failures. Upstream has added support for simultaneous shared and static builds, with static always building by default. Currently, we unconditionally disable static builds in this ebuild. Closes: https://bugs.gentoo.org/905106 Closes: https://bugs.gentoo.org/916690 Closes: https://bugs.gentoo.org/926238 Signed-off-by: Vivian Heisz (vhz) <demize <AT> unstable.systems> Part-of: https://github.com/gentoo/gentoo/pull/41450 Closes: https://github.com/gentoo/gentoo/pull/41450 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> media-libs/game-music-emu/Manifest | 1 + .../game-music-emu/game-music-emu-0.6.4.ebuild | 42 ++++++++++++++++++++++ media-libs/game-music-emu/metadata.xml | 3 +- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/media-libs/game-music-emu/Manifest b/media-libs/game-music-emu/Manifest index 4931ac980d21..041e7203af31 100644 --- a/media-libs/game-music-emu/Manifest +++ b/media-libs/game-music-emu/Manifest @@ -1 +1,2 @@ DIST game-music-emu-0.6.3.tar.xz 234412 BLAKE2B 21edd8f5e868231424c56dad6740a5c7cb8e7f503b707dc56ea71d7a75085566b2bd0c2060b0f9e919f858c13821b3810959cff96c41f9248bb3b98f12eb22f7 SHA512 4b20c69ced696bb879c34bcb7ce0f5f276642458d4cebca8ede673eed7d50664e527626e2077f85a3411a26660f1b3f01e43cccd72945e1edb2994421efeb552 +DIST libgme-0.6.4-src.tar.gz 343689 BLAKE2B ea4134ad44cf8d60c24f60386cdd99b5cf046adfa4d50604296170327cbb6f51cbb44b2d332f5f3b8f752986f2c8085eba994e846257dbb9bdcc921a07752afd SHA512 4c8c4ee31c767bdf1ef62fce8062d817caee442bcefdf7cd8114cc0168794aa2a29e84d5fb1848a415eb385b22459fcfad3df7007a7a39801da8ac7c53f733af diff --git a/media-libs/game-music-emu/game-music-emu-0.6.4.ebuild b/media-libs/game-music-emu/game-music-emu-0.6.4.ebuild new file mode 100644 index 000000000000..bfe61e379d9a --- /dev/null +++ b/media-libs/game-music-emu/game-music-emu-0.6.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="Video game music file emulators" +HOMEPAGE="https://github.com/libgme/game-music-emu" +SRC_URI="https://github.com/libgme/game-music-emu/releases/download/${PV}/libgme-${PV}-src.tar.gz" +S="${WORKDIR}/libgme-${PV}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( sys-process/parallel )" +DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]" +RDEPEND="${DEPEND}" + +DOCS=( changes.txt design.txt gme.txt readme.txt ) + +src_configure() { + local mycmakeargs=( + -DENABLE_UBSAN=off # disabled so that if gcc[-sanitize] it does not fail to compile + -DGME_BUILD_SHARED=on + -DGME_BUILD_STATIC=off + ) + cmake-multilib_src_configure +} + +multilib_src_test() { + LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/gme" \ + emake -C "${S}/test" test \ + LIBGME_NEW_PATH="${BUILD_DIR}/gme/libgme.so" \ + CXXFLAGS="${CXXFLAGS}" LIBRARIES="${BUILD_DIR}/gme" + # tests fail with multilib, since an out-of-source build will + # build ABI-specific test executables in the single test directory + emake -C "${S}/test" clean +} diff --git a/media-libs/game-music-emu/metadata.xml b/media-libs/game-music-emu/metadata.xml index 5fdeec2ecd17..c6ab95211a2f 100644 --- a/media-libs/game-music-emu/metadata.xml +++ b/media-libs/game-music-emu/metadata.xml @@ -6,7 +6,6 @@ <name>Gentoo Sound project</name> </maintainer> <upstream> - <remote-id type="google-code">game-music-emu</remote-id> - <remote-id type="bitbucket">mpyne/game-music-emu</remote-id> + <remote-id type="github">libgme/game-music-emu</remote-id> </upstream> </pkgmetadata>
