commit: d33429e60f1fe2ec0d99cfc1e093b80854473abe Author: Matoro Mahri <matoro <AT> users <DOT> noreply <DOT> github <DOT> com> AuthorDate: Sat Apr 15 21:05:24 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Apr 26 04:02:58 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d33429e6
media-libs/game-music-emu: wire up tests Bug: https://bugs.gentoo.org/896118 Signed-off-by: Matoro Mahri <matoro <AT> users.noreply.github.com> Closes: https://github.com/gentoo/gentoo/pull/30610 Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/game-music-emu/game-music-emu-0.6.3.ebuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/media-libs/game-music-emu/game-music-emu-0.6.3.ebuild b/media-libs/game-music-emu/game-music-emu-0.6.3.ebuild index b2cdad293133..cffc088aaeea 100644 --- a/media-libs/game-music-emu/game-music-emu-0.6.3.ebuild +++ b/media-libs/game-music-emu/game-music-emu-0.6.3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit cmake-multilib +inherit cmake-multilib multibuild DESCRIPTION="Video game music file emulators" HOMEPAGE="https://bitbucket.org/mpyne/game-music-emu/wiki/Home" @@ -12,7 +12,10 @@ SRC_URI="https://bitbucket.org/mpyne/game-music-emu/downloads/${P}.tar.xz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv x86" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( sys-process/parallel )" DOCS=( changes.txt design.txt gme.txt readme.txt ) @@ -22,3 +25,7 @@ src_configure() { ) cmake-multilib_src_configure } + +multilib_src_test() { + emake -C "${S}/test" test LIBGME_NEW_PATH="${BUILD_DIR}/gme/libgme.so" CXXFLAGS="${CXXFLAGS}" +}