diff options
| author | 2023-02-18 22:42:55 -0500 | |
|---|---|---|
| committer | 2023-02-19 00:01:21 -0500 | |
| commit | 98f915475b49229740579b510425a8add497e6e9 (patch) | |
| tree | 30631cd6ab6671ea08ed849c03dcb739273dd76d | |
| parent | app-emulation/faudio: drop unmaintained live ebuild (diff) | |
| download | gentoo-98f915475b49229740579b510425a8add497e6e9.tar.gz gentoo-98f915475b49229740579b510425a8add497e6e9.tar.bz2 gentoo-98f915475b49229740579b510425a8add497e6e9.zip | |
app-emulation/faudio: add 23.02, simplify and drop multilib support
Mostly to sanitize the ebuild before dropping wine@ from metadata,
>=wine-7 does not need this package anymore, and its only consumer
(app-emulation/86Box) doesn't need multilib complications (esp.
the +abi_x86_32 that was pulling more 32bit deps by default).
Extra notes on changes:
* drop duplicate lowercase faudio.pc (was manually installed by the
ebuild and does not seem used, 86Box looks for FAudio.pc)
* no longer install to /usr/include/FAudio, default is directly under
/usr/include which is acceptable given headers have unique names
* drop xnasong USE, no extra dependencies, is enabled by default,
and disabling just result in a gimped library (fwiw left dumpvoices
given off-by-default and have not looked closely at how it works)
* drop utils USE, the utils were being built but not installed anyway,
and not seeing a reason to change this currently
* drop gstreamer (option is gone, unused)
* move tests from postinst(!) back into the portage sandbox, this
really just needs to set an SDL variable and doesn't need virtx
Have not really tested 86Box beside building (note that it does not
seem to use faudio unless USE=-openal despite what DEPEND says, and
being default it's unlikely many are actually using faudio).
Closes: https://bugs.gentoo.org/895278
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
| -rw-r--r-- | app-emulation/faudio/Manifest | 1 | ||||
| -rw-r--r-- | app-emulation/faudio/faudio-23.02.ebuild | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/app-emulation/faudio/Manifest b/app-emulation/faudio/Manifest index 900869b8ed3d..7672cff30b65 100644 --- a/app-emulation/faudio/Manifest +++ b/app-emulation/faudio/Manifest @@ -1 +1,2 @@ DIST FAudio-21.01.tar.gz 1134752 BLAKE2B 3acf80172744bfdc6fb44e373ee2a159ed4d49713fec38a8c6447d66c345445a435e1eb1656552289a634e3a628cfcf7df979a2d155edca1aef0c0334629424e SHA512 69405a28fdf3ff5026992bdd1d40d61653b834dac3ef2697a0e794deac2fa6257fe74b19d2fe225ce25a1ae3caec7082106f5ab6ea6109cc61e520b903d35b80 +DIST faudio-23.02.tar.gz 1111012 BLAKE2B c776a5b882697fbbed894f129165600b1aad8b303254e9ecbf6111fff71581491b484681a71d377854077dfc23b99d1217e5322bdd9923caf4471cc0bc2ca0f2 SHA512 d83adca1f1e42b1c7d63dad30886b58a914ac9a5a254f26d3fdb2386776840e3c40b22a8dd9c7172e6c97b0db989f919fd2ebeac2ec00075a8136ec9120bc390 diff --git a/app-emulation/faudio/faudio-23.02.ebuild b/app-emulation/faudio/faudio-23.02.ebuild new file mode 100644 index 000000000000..3a9ed86ab6da --- /dev/null +++ b/app-emulation/faudio/faudio-23.02.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="FAudio - 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 +} |
