From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B72F2158093 for ; Sun, 12 Sep 2021 11:13:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6B0BE077C; Sun, 12 Sep 2021 11:13:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8D13AE077C for ; Sun, 12 Sep 2021 11:13:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1226C342AF0 for ; Sun, 12 Sep 2021 11:13:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75366A3 for ; Sun, 12 Sep 2021 11:13:30 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1631445136.1b0d39f58fb9af857ca8277de7fe7ffd591192d5.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libsdl2/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libsdl2/libsdl2-2.0.16.ebuild X-VCS-Directories: media-libs/libsdl2/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 1b0d39f58fb9af857ca8277de7fe7ffd591192d5 X-VCS-Branch: master Date: Sun, 12 Sep 2021 11:13:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d626c6bd-ae48-4a50-9e8a-96e291f548cc X-Archives-Hash: 2f6a9dca96710d330927117de3e9c397 commit: 1b0d39f58fb9af857ca8277de7fe7ffd591192d5 Author: James Le Cuirot gentoo org> AuthorDate: Sun Sep 12 11:12:16 2021 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sun Sep 12 11:12:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b0d39f5 media-libs/libsdl2: Install Doxygen documentation with USE=doc Also install the sdl2-config man page. Closes: https://bugs.gentoo.org/812344 Signed-off-by: James Le Cuirot gentoo.org> media-libs/libsdl2/libsdl2-2.0.16.ebuild | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/media-libs/libsdl2/libsdl2-2.0.16.ebuild b/media-libs/libsdl2/libsdl2-2.0.16.ebuild index a9a95560341..1b9c8bdf53b 100644 --- a/media-libs/libsdl2/libsdl2-2.0.16.ebuild +++ b/media-libs/libsdl2/libsdl2-2.0.16.ebuild @@ -14,7 +14,7 @@ LICENSE="ZLIB" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="alsa aqua cpu_flags_ppc_altivec cpu_flags_x86_3dnow cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 custom-cflags dbus fcitx4 gles1 gles2 haptic ibus jack +joystick kms libsamplerate nas opengl oss pipewire pulseaudio sndio +sound static-libs +threads udev +video video_cards_vc4 vulkan wayland X xinerama xscreensaver" +IUSE="alsa aqua cpu_flags_ppc_altivec cpu_flags_x86_3dnow cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 custom-cflags dbus doc fcitx4 gles1 gles2 haptic ibus jack +joystick kms libsamplerate nas opengl oss pipewire pulseaudio sndio +sound static-libs +threads udev +video video_cards_vc4 vulkan wayland X xinerama xscreensaver" REQUIRED_USE=" alsa? ( sound ) fcitx4? ( dbus ) @@ -80,6 +80,10 @@ DEPEND="${CDEPEND} " BDEPEND=" virtual/pkgconfig + doc? ( + app-doc/doxygen + media-gfx/graphviz + ) " MULTILIB_WRAPPED_HEADERS=( @@ -201,6 +205,15 @@ multilib_src_compile() { emake V=1 } +src_compile() { + multilib-minimal_src_compile + + if use doc; then + cd docs || die + doxygen || die + fi +} + multilib_src_install() { emake DESTDIR="${D}" install } @@ -209,5 +222,8 @@ multilib_src_install_all() { # Do not delete the static .a libraries here as some are # mandatory. They may be needed even when linking dynamically. find "${ED}" -type f -name "*.la" -delete || die + dodoc {BUGS,CREDITS,README-SDL,TODO,WhatsNew}.txt README.md docs/README*.md + doman debian/sdl2-config.1 + use doc && dodoc -r docs/output/html/ }