1 |
commit: 1b0d39f58fb9af857ca8277de7fe7ffd591192d5 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 12 11:12:16 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 12 11:12:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b0d39f5 |
7 |
|
8 |
media-libs/libsdl2: Install Doxygen documentation with USE=doc |
9 |
|
10 |
Also install the sdl2-config man page. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/812344 |
13 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
14 |
|
15 |
media-libs/libsdl2/libsdl2-2.0.16.ebuild | 18 +++++++++++++++++- |
16 |
1 file changed, 17 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/media-libs/libsdl2/libsdl2-2.0.16.ebuild b/media-libs/libsdl2/libsdl2-2.0.16.ebuild |
19 |
index a9a95560341..1b9c8bdf53b 100644 |
20 |
--- a/media-libs/libsdl2/libsdl2-2.0.16.ebuild |
21 |
+++ b/media-libs/libsdl2/libsdl2-2.0.16.ebuild |
22 |
@@ -14,7 +14,7 @@ LICENSE="ZLIB" |
23 |
SLOT="0" |
24 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
25 |
|
26 |
-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" |
27 |
+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" |
28 |
REQUIRED_USE=" |
29 |
alsa? ( sound ) |
30 |
fcitx4? ( dbus ) |
31 |
@@ -80,6 +80,10 @@ DEPEND="${CDEPEND} |
32 |
" |
33 |
BDEPEND=" |
34 |
virtual/pkgconfig |
35 |
+ doc? ( |
36 |
+ app-doc/doxygen |
37 |
+ media-gfx/graphviz |
38 |
+ ) |
39 |
" |
40 |
|
41 |
MULTILIB_WRAPPED_HEADERS=( |
42 |
@@ -201,6 +205,15 @@ multilib_src_compile() { |
43 |
emake V=1 |
44 |
} |
45 |
|
46 |
+src_compile() { |
47 |
+ multilib-minimal_src_compile |
48 |
+ |
49 |
+ if use doc; then |
50 |
+ cd docs || die |
51 |
+ doxygen || die |
52 |
+ fi |
53 |
+} |
54 |
+ |
55 |
multilib_src_install() { |
56 |
emake DESTDIR="${D}" install |
57 |
} |
58 |
@@ -209,5 +222,8 @@ multilib_src_install_all() { |
59 |
# Do not delete the static .a libraries here as some are |
60 |
# mandatory. They may be needed even when linking dynamically. |
61 |
find "${ED}" -type f -name "*.la" -delete || die |
62 |
+ |
63 |
dodoc {BUGS,CREDITS,README-SDL,TODO,WhatsNew}.txt README.md docs/README*.md |
64 |
+ doman debian/sdl2-config.1 |
65 |
+ use doc && dodoc -r docs/output/html/ |
66 |
} |