commit: bd3d86aaf23d3c39372f00feaa1461f460d203f6 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Wed Feb 5 21:25:29 2025 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Wed Feb 5 21:42:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd3d86aa
app-emulation/faudio: add 25.02 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> app-emulation/faudio/Manifest | 1 + app-emulation/faudio/faudio-25.02.ebuild | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/app-emulation/faudio/Manifest b/app-emulation/faudio/Manifest index 15f25573277f..1b387f44d013 100644 --- a/app-emulation/faudio/Manifest +++ b/app-emulation/faudio/Manifest @@ -1 +1,2 @@ DIST faudio-25.01.tar.gz 1127223 BLAKE2B 93b82fd9cb5c0f0a5944568e6fc3e1ca4cc88c804e22da2c9a12f58922567fdfe9a01726cc69b91211c0853077eb071db8bc992f790b21c9138352ebd77f5cae SHA512 099292d41ace3ea85a9d8d465c4e55542cd5b233bf53d2088b97ec6c1f99c416dc09455efd328edf5e9c73dfa248bb48d0f08750c71f129fad3f93d5bc852ec7 +DIST faudio-25.02.tar.gz 1127116 BLAKE2B 9df60de8a9448d5425c1e4b5d88bed12b4b7f40971c04120795f4c799e2b7bf8eb45a8e649c0cec8e4445e64d9a602e78769ca69bc998ddae66e5b9fc74e22a6 SHA512 1d93b0d167e23ea2f012ec10ca1227e05ff1b81aa9568ab35bb6335622a62bacb5ed33b788ef6e953050a3bfa7d15e6a9579821cf5e36c239998a0e1271c9c1e diff --git a/app-emulation/faudio/faudio-25.02.ebuild b/app-emulation/faudio/faudio-25.02.ebuild new file mode 100644 index 000000000000..dfce1c40eb5b --- /dev/null +++ b/app-emulation/faudio/faudio-25.02.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="Accuracy-focused XAudio reimplementation for open platforms" +HOMEPAGE="https://fna-xna.github.io/" +SRC_URI="https://github.com/FNA-XNA/FAudio/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/FAudio-${PV}" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug dumpvoices test" +RESTRICT="!test? ( test )" + +RDEPEND="media-libs/libsdl2[sound]" +DEPEND="${RDEPEND}" + +src_configure() { + append-cppflags -D_DEFAULT_SOURCE # usleep() in tests + use debug || append-cppflags -DFAUDIO_DISABLE_DEBUGCONFIGURATION + + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + -DDUMP_VOICES=$(usex dumpvoices) + ) + + cmake_src_configure +} + +src_test() { + einfo "Running faudio_tests, this may take some time without output..." + SDL_AUDIODRIVER=dummy "${BUILD_DIR}"/faudio_tests || die +}
