diff options
author | 2024-01-25 10:02:45 +0100 | |
---|---|---|
committer | 2024-01-26 08:57:13 +0100 | |
commit | 14bde54732e00d72e472d23542c2c7d887275de6 (patch) | |
tree | 1b18a0645632fddea1903bb691d08fd337498dda /media-sound/fluidsynth | |
parent | media-sound/fluidsynth: QA fixes (diff) | |
download | gentoo-14bde54732e00d72e472d23542c2c7d887275de6.tar.gz gentoo-14bde54732e00d72e472d23542c2c7d887275de6.tar.bz2 gentoo-14bde54732e00d72e472d23542c2c7d887275de6.zip |
media-sound/fluidsynth: Add USE flag doc for API documentation
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/fluidsynth')
-rw-r--r-- | media-sound/fluidsynth/fluidsynth-2.3.4.ebuild | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/media-sound/fluidsynth/fluidsynth-2.3.4.ebuild b/media-sound/fluidsynth/fluidsynth-2.3.4.ebuild index e1b9a0c3bb5e..e0278bd4e0f5 100644 --- a/media-sound/fluidsynth/fluidsynth-2.3.4.ebuild +++ b/media-sound/fluidsynth/fluidsynth-2.3.4.ebuild @@ -12,10 +12,14 @@ SRC_URI="https://github.com/FluidSynth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.g LICENSE="LGPL-2.1+" SLOT="0/3" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv sparc x86" -IUSE="alsa dbus debug ipv6 jack ladspa lash network oss pipewire portaudio pulseaudio +readline sdl +sndfile systemd threads" +IUSE="alsa dbus debug doc ipv6 jack ladspa lash network oss pipewire portaudio pulseaudio +readline sdl +sndfile systemd threads" BDEPEND=" virtual/pkgconfig + doc? ( + app-text/doxygen + dev-libs/libxslt + ) " DEPEND=" dev-libs/glib:2[${MULTILIB_USEDEP}] @@ -73,6 +77,7 @@ src_configure() { -Denable-ubsan=OFF # compile and link against UBSan (for debugging fluidsynth internals) -Denable-waveout=OFF # Windows -Denable-winmidi=OFF # Windows + $(cmake_use_find_package doc Doxygen) ) if use alsa; then @@ -88,6 +93,22 @@ src_configure() { cmake-multilib_src_configure } +compile_doxygen_doc() { + multilib_is_native_abi && cmake_build doxygen +} + +src_compile() { + cmake-multilib_src_compile + use doc && multilib_foreach_abi compile_doxygen_doc +} + +install_doxygen_doc() { + if multilib_is_native_abi; then + docinto . + dodoc -r "${BUILD_DIR}/doc/api/html" + fi +} + install_systemd_files() { if multilib_is_native_abi; then systemd_dounit "${BUILD_DIR}/fluidsynth.service" @@ -109,6 +130,9 @@ src_install() { docinto examples dodoc doc/examples/*.c + if use doc; then + multilib_foreach_abi install_doxygen_doc + fi if use systemd; then multilib_foreach_abi install_systemd_files |