1 |
commit: 28bce071ba4872b8f134d71e61088a6f4bc2ec23 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 20:36:36 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Oct 29 23:10:14 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=28bce071 |
7 |
|
8 |
net-libs/webkit-gtk: fix USE=doc build |
9 |
|
10 |
The special Source/WebKit/gtk/docs handling for src_compile is no longer |
11 |
needed in 1.7.1. Unfortunately, in 1.7.1 the makefiles have no provision |
12 |
for actually installing docs; add a patch to fix that. |
13 |
Fixes build with USE=doc. Thanks to Marien Zwart for reporting on IRC. |
14 |
|
15 |
--- |
16 |
.../files/webkit-gtk-1.7.1-install-docs.patch | 43 ++++++++++++++++++++ |
17 |
net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild | 13 +----- |
18 |
2 files changed, 46 insertions(+), 10 deletions(-) |
19 |
|
20 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.7.1-install-docs.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.7.1-install-docs.patch |
21 |
new file mode 100644 |
22 |
index 0000000..b053908 |
23 |
--- /dev/null |
24 |
+++ b/net-libs/webkit-gtk/files/webkit-gtk-1.7.1-install-docs.patch |
25 |
@@ -0,0 +1,43 @@ |
26 |
+Enable gtk-doc installation when building with --enable-gtk-doc |
27 |
+ |
28 |
+--- a/Source/WebKit/gtk/GNUmakefile.gtk-doc.am |
29 |
++++ b/Source/WebKit/gtk/GNUmakefile.gtk-doc.am |
30 |
+@@ -180,6 +180,38 @@ |
31 |
+ @rm -rf Documentation/xml Documentation/html |
32 |
+ -@rmdir Documentation |
33 |
+ |
34 |
++if ENABLE_GTK_DOC |
35 |
++install-data-local: |
36 |
++ @installfiles=`echo $(builddir)/html/*`; \ |
37 |
++ if test "$$installfiles" = '$(builddir)/html/*'; \ |
38 |
++ then echo 1>&2 'Nothing to install' ; \ |
39 |
++ else \ |
40 |
++ if test -n "$(DOC_MODULE_VERSION)"; then \ |
41 |
++ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ |
42 |
++ else \ |
43 |
++ installdir="$(DESTDIR)$(TARGET_DIR)"; \ |
44 |
++ fi; \ |
45 |
++ $(mkinstalldirs) $${installdir} ; \ |
46 |
++ for i in $$installfiles; do \ |
47 |
++ echo ' $(INSTALL_DATA) '$$i ; \ |
48 |
++ $(INSTALL_DATA) $$i $${installdir}; \ |
49 |
++ done; \ |
50 |
++ if test -n "$(DOC_MODULE_VERSION)"; then \ |
51 |
++ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ |
52 |
++ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ |
53 |
++ fi; \ |
54 |
++ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ |
55 |
++ fi |
56 |
++ |
57 |
++uninstall-local: |
58 |
++ @if test -n "$(DOC_MODULE_VERSION)"; then \ |
59 |
++ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ |
60 |
++ else \ |
61 |
++ installdir="$(DESTDIR)$(TARGET_DIR)"; \ |
62 |
++ fi; \ |
63 |
++ rm -rf $${installdir} |
64 |
++endif |
65 |
++ |
66 |
+ # |
67 |
+ # Require gtk-doc when making dist |
68 |
+ # |
69 |
|
70 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild |
71 |
index a2a1f7a..f79732a 100644 |
72 |
--- a/net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild |
73 |
+++ b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild |
74 |
@@ -88,6 +88,9 @@ src_prepare() { |
75 |
# Required for webgl; https://bugs.webkit.org/show_bug.cgi?id=69085 |
76 |
mkdir -p DerivedSources/ANGLE |
77 |
|
78 |
+ # Install docs on "make install" when USE=doc |
79 |
+ epatch "${FILESDIR}/${PN}-1.7.1-install-docs.patch" |
80 |
+ |
81 |
# Prevent maintainer mode from being triggered during make |
82 |
AT_M4DIR=Source/autotools eautoreconf |
83 |
} |
84 |
@@ -130,11 +133,6 @@ src_compile() { |
85 |
# Fix sandbox error with USE="introspection" |
86 |
# https://bugs.webkit.org/show_bug.cgi?id=35471 |
87 |
emake XDG_DATA_HOME="${T}/.local" |
88 |
- |
89 |
- # ${PN} neither ships, nor builds documentation on its own |
90 |
- if use doc; then |
91 |
- emake -C "${S}/Source/WebKit/gtk/docs" |
92 |
- fi |
93 |
} |
94 |
|
95 |
src_test() { |
96 |
@@ -148,11 +146,6 @@ src_test() { |
97 |
src_install() { |
98 |
default |
99 |
|
100 |
- # ${PN} doesn't install documentation on its own |
101 |
- if use doc; then |
102 |
- emake DESTDIR=${D} -C "${S}/Source/WebKit/gtk/docs" install |
103 |
- fi |
104 |
- |
105 |
newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk |
106 |
newdoc Source/WebKit/gtk/po/ChangeLog ChangeLog.gtk-po |
107 |
newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore |