diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2016-07-13 17:43:37 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-09 12:12:22 +0100 |
commit | 5029d1fb1523e111df482c2a6f69ac9758310691 (patch) | |
tree | 8bd1379f0e19e4736343070689adc1934883da48 | |
parent | 94317f52cec76eeec6dcf885cd1e83dc37f40614 (diff) | |
download | poky-5029d1fb1523e111df482c2a6f69ac9758310691.tar.gz |
gtk-doc: add a recipe, remove gtk-doc-stub
(From OE-Core rev: 8b958312d360e6692dc7c6dd3d2b2591301f9e59)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5 files changed, 218 insertions, 338 deletions
diff --git a/meta/recipes-gnome/gtk-doc-stub/files/0001-Revert-Import-introspection-stub-machinery-too.patch b/meta/recipes-gnome/gtk-doc-stub/files/0001-Revert-Import-introspection-stub-machinery-too.patch deleted file mode 100644 index 80b0521d48..0000000000 --- a/meta/recipes-gnome/gtk-doc-stub/files/0001-Revert-Import-introspection-stub-machinery-too.patch +++ /dev/null | |||
@@ -1,305 +0,0 @@ | |||
1 | From d636be29bf95396b4e27fcd17ff84cb7091cca91 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Thu, 8 Oct 2015 15:37:40 +0300 | ||
4 | Subject: [PATCH] Revert "Import introspection stub machinery too" | ||
5 | |||
6 | This reverts commit 3dfd0a09de696ec8c544762747f8a0f77153622e. | ||
7 | As we provide the full introspection support, we need to remove | ||
8 | the stubs from this package that conflict with it. | ||
9 | |||
10 | Upstream-Status: Pending [review on oe-core list] | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | --- | ||
13 | Makefile | 4 -- | ||
14 | Makefile.introspection | 163 ------------------------------------------------- | ||
15 | introspection.m4 | 96 ----------------------------- | ||
16 | 3 files changed, 263 deletions(-) | ||
17 | delete mode 100644 Makefile.introspection | ||
18 | delete mode 100644 introspection.m4 | ||
19 | |||
20 | diff --git a/Makefile b/Makefile | ||
21 | index 7cb6ce5..ad4231a 100644 | ||
22 | --- a/Makefile | ||
23 | +++ b/Makefile | ||
24 | @@ -23,7 +23,3 @@ install: $(bin_programs) | ||
25 | |||
26 | mkdir -p $(DESTDIR)$(datarootdir)/aclocal/ | ||
27 | install -m 0644 $(srcdir)/gtk-doc.m4 $(DESTDIR)$(datarootdir)/aclocal/gtk-doc.m4 | ||
28 | - | ||
29 | - mkdir -p $(DESTDIR)$(datarootdir)/gobject-introspection-1.0 | ||
30 | - install -m 0644 $(srcdir)/Makefile.introspection $(DESTDIR)$(datarootdir)/gobject-introspection-1.0/Makefile.introspection | ||
31 | - install -m 0644 $(srcdir)/introspection.m4 $(DESTDIR)$(datarootdir)/aclocal/introspection.m4 | ||
32 | diff --git a/Makefile.introspection b/Makefile.introspection | ||
33 | deleted file mode 100644 | ||
34 | index 755dd15..0000000 | ||
35 | --- a/Makefile.introspection | ||
36 | +++ /dev/null | ||
37 | @@ -1,163 +0,0 @@ | ||
38 | -# -*- Mode: make -*- | ||
39 | -# Copyright 2009-2010 Johan Dahlin | ||
40 | -# | ||
41 | -# This file is free software; the author(s) gives unlimited | ||
42 | -# permission to copy and/or distribute it, with or without | ||
43 | -# modifications, as long as this notice is preserved. | ||
44 | -# | ||
45 | -# * Input variables: | ||
46 | -# | ||
47 | -# INTROSPECTION_GIRS - List of GIRS that should be generated | ||
48 | -# INTROSPECTION_SCANNER - Command to invoke scanner, normally set by | ||
49 | -# GOBJECT_INTROSPECTION_REQUIRE/CHECK() in introspection.m4 | ||
50 | -# INTROSPECTION_SCANNER_ARGS - Additional args to pass in to the scanner | ||
51 | -# INTROSPECTION_SCANNER_ENV - Environment variables to set before running | ||
52 | -# the scanner | ||
53 | -# INTROSPECTION_COMPILER - Command to invoke compiler, normally set by | ||
54 | -# GOBJECT_INTROSPECTION_REQUIRE/CHECK() in introspection.m4 | ||
55 | -# INTROSPECTION_COMPILER_ARGS - Additional args to pass in to the compiler | ||
56 | -# | ||
57 | -# * Simple tutorial | ||
58 | -# | ||
59 | -# Add this to configure.ac: | ||
60 | -# -Wno-portability to AM_INIT_AUTOMAKE | ||
61 | -# GOBJECT_INTROSPECTION_CHECK([0.6.7]) | ||
62 | -# | ||
63 | -# Add this to Makefile.am where your library/program is built: | ||
64 | -# include $(INTROSPECTION_MAKEFILE) | ||
65 | -# INTROSPECTION_GIRS = YourLib-1.0.gir | ||
66 | -# YourLib_1_0_gir_NAMESPACE = YourLib | ||
67 | -# YourLib_1_0_gir_VERSION = 1.0 | ||
68 | -# YourLib_1_0_gir_LIBS = libyourlib.la | ||
69 | -# YourLib_1_0_gir_FILES = $(libyourlib_1_0_SOURCES) | ||
70 | -# girdir = $(datadir)/gir-1.0 | ||
71 | -# dist_gir_DATA = YourLib-1.0.gir | ||
72 | -# typelibdir = $(libdir)/girepository-1.0 | ||
73 | -# typelib_DATA = YourLib-1.0.typelib | ||
74 | -# CLEANFILES = $(dist_gir_DATA) $(typelib_DATA) | ||
75 | -# | ||
76 | - | ||
77 | -# Make sure the required variables are set, these should under normal | ||
78 | -# circumstances come from introspection.m4 | ||
79 | -$(if $(INTROSPECTION_SCANNER),,$(error Need to define INTROSPECTION_SCANNER)) | ||
80 | -$(if $(INTROSPECTION_COMPILER),,$(error Need to define INTROSPECTION_COMPILER)) | ||
81 | - | ||
82 | -# Private functions | ||
83 | - | ||
84 | -## Transform the gir filename to something which can reference through a variable | ||
85 | -## without automake/make complaining, eg Gtk-2.0.gir -> Gtk_2_0_gir | ||
86 | -_gir_name = $(subst /,_,$(subst -,_,$(subst .,_,$(1)))) | ||
87 | - | ||
88 | -# Namespace and Version is either fetched from the gir filename | ||
89 | -# or the _NAMESPACE/_VERSION variable combo | ||
90 | -_gir_namespace = $(or $($(_gir_name)_NAMESPACE),$(firstword $(subst -, ,$(notdir $(1))))) | ||
91 | -_gir_version = $(or $($(_gir_name)_VERSION),$(lastword $(subst -, ,$(1:.gir=)))) | ||
92 | - | ||
93 | -# _PROGRAM is an optional variable which needs it's own --program argument | ||
94 | -_gir_program = $(if $($(_gir_name)_PROGRAM),--program=$($(_gir_name)_PROGRAM)) | ||
95 | - | ||
96 | -# Variables which provides a list of things | ||
97 | -_gir_libraries = $(foreach lib,$($(_gir_name)_LIBS),--library=$(lib)) | ||
98 | -_gir_packages = $(foreach pkg,$($(_gir_name)_PACKAGES),--pkg=$(pkg)) | ||
99 | -_gir_includes = $(foreach include,$($(_gir_name)_INCLUDES),--include=$(include)) | ||
100 | -_gir_export_packages = $(foreach pkg,$($(_gir_name)_EXPORT_PACKAGES),--pkg-export=$(pkg)) | ||
101 | - | ||
102 | -# Reuse the LIBTOOL variable from automake if it's set, but | ||
103 | -# work around MSYS weirdness: When running g-ir-scanner, MSYS changes | ||
104 | -# a command-line argument --libtool="/bin/sh ../../libtool" into | ||
105 | -# --libtool=c:/opt/msys/1.0/bin/libtool. So just use sh.exe without path | ||
106 | -# because we already "know" where the libtool configure produced is. | ||
107 | -_gir_libtool = $(if $(findstring MINGW32,$(shell uname -s)),--libtool="$(top_builddir)/libtool",$(if $(LIBTOOL),--libtool="$(LIBTOOL)")) | ||
108 | - | ||
109 | -# Macros for AM_SILENT_RULES prettiness | ||
110 | -_gir_verbosity = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1) | ||
111 | - | ||
112 | -_gir_silent_scanner_prefix = $(_gir_silent_scanner_prefix_$(V)) | ||
113 | -_gir_silent_scanner_prefix_ = $(_gir_silent_scanner_prefix_$(_gir_verbosity)) | ||
114 | -_gir_silent_scanner_prefix_0 = @echo " GISCAN $(1)"; | ||
115 | -_gir_silent_scanner_opts = $(_gir_silent_scanner_opts_$(V)) | ||
116 | -_gir_silent_scanner_opts_ = $(_gir_silent_scanner_opts_$(_gir_verbosity)) | ||
117 | -_gir_silent_scanner_opts_0 = --quiet | ||
118 | - | ||
119 | -_gir_silent_compiler = $(_gir_silent_compiler_$(V)) | ||
120 | -_gir_silent_compiler_ = $(_gir_silent_compiler_$(_gir_verbosity)) | ||
121 | -_gir_silent_compiler_0 = @echo " GICOMP $(1)"; | ||
122 | - | ||
123 | -# | ||
124 | -# Creates a GIR by scanning C headers/sources | ||
125 | -# $(1) - Name of the gir file (output) | ||
126 | -# | ||
127 | -# If output is Gtk-2.0.gir then you should name the variables like | ||
128 | -# Gtk_2_0_gir_NAMESPACE, Gtk_2_0_gir_VERSION etc. | ||
129 | -# Required variables: | ||
130 | -# FILES - C sources and headers which should be scanned | ||
131 | -# | ||
132 | -# One of these variables are required: | ||
133 | -# LIBS - Library where the symbol represented in the gir can be found | ||
134 | -# PROGRAM - Program where the symbol represented in the gir can be found | ||
135 | -# | ||
136 | -# Optional variables | ||
137 | -# NAMESPACE - Namespace of the gir, first letter capital, | ||
138 | -# rest should be lower case, for instance: 'Gtk', 'Clutter', 'ClutterGtk'. | ||
139 | -# If not present the namespace will be fetched from the gir filename, | ||
140 | -# the part before the first dash. For 'Gtk-2.0', namespace will be 'Gtk'. | ||
141 | -# VERSION - Version of the gir, if not present, will be fetched from gir | ||
142 | -# filename, the part after the first dash. For 'Gtk-2.0', version will be '2.0'. | ||
143 | -# LIBTOOL - Command to invoke libtool, usually set by automake | ||
144 | -# SCANNERFLAGS - Flags to pass in to the scanner, see g-ir-scanner(1) for a list | ||
145 | -# CFLAGS - Flags to pass in to the parser when scanning headers | ||
146 | -# LDFLAGS - Linker flags used by the scanner | ||
147 | -# PACKAGES - list of pkg-config names which cflags are required to parse | ||
148 | -# the headers of this gir | ||
149 | -# INCLUDES - Gir files to include without the .gir suffix, for instance | ||
150 | -# GLib-2.0, Gtk-2.0. This is needed for all libraries which you depend on that | ||
151 | -# provides introspection information. | ||
152 | -# EXPORT_PACKAGES - list of pkg-config names that are provided by this gir. | ||
153 | -# By default the names in the PACKAGES variable will be used. | ||
154 | -# | ||
155 | - | ||
156 | -define introspection-scanner | ||
157 | - | ||
158 | -# Basic sanity check, to make sure required variables are set | ||
159 | -$(if $($(_gir_name)_FILES),,$(error Need to define $(_gir_name)_FILES)) | ||
160 | -$(if $(or $(findstring --header-only,$($(_gir_name)_SCANNERFLAGS)), | ||
161 | - $($(_gir_name)_LIBS), | ||
162 | - $($(_gir_name)_PROGRAM)),, | ||
163 | - $(error Need to define $(_gir_name)_LIBS or $(_gir_name)_PROGRAM)) | ||
164 | - | ||
165 | -# Only dependencies we know are actually filenames goes into _FILES, make | ||
166 | -# sure these are built before running the scanner. Libraries and programs | ||
167 | -# needs to be added manually. | ||
168 | -$(1): $$($(_gir_name)_FILES) | ||
169 | - @ $(MKDIR_P) $(dir $(1)) | ||
170 | - $(_gir_silent_scanner_prefix) $(INTROSPECTION_SCANNER_ENV) $(INTROSPECTION_SCANNER) $(_gir_silent_scanner_opts) \ | ||
171 | - $(INTROSPECTION_SCANNER_ARGS) \ | ||
172 | - --namespace=$(_gir_namespace) \ | ||
173 | - --nsversion=$(_gir_version) \ | ||
174 | - $(_gir_libtool) \ | ||
175 | - $(_gir_packages) \ | ||
176 | - $(_gir_includes) \ | ||
177 | - $(_gir_export_packages) \ | ||
178 | - $(_gir_program) \ | ||
179 | - $(_gir_libraries) \ | ||
180 | - $($(_gir_name)_SCANNERFLAGS) \ | ||
181 | - $($(_gir_name)_CFLAGS) \ | ||
182 | - $($(_gir_name)_LDFLAGS) \ | ||
183 | - $$^ \ | ||
184 | - --output $(1) | ||
185 | -endef | ||
186 | - | ||
187 | -$(foreach gir,$(INTROSPECTION_GIRS),$(eval $(call introspection-scanner,$(gir)))) | ||
188 | - | ||
189 | -# | ||
190 | -# Compiles a gir into a typelib | ||
191 | -# $(1): gir filename (input) | ||
192 | -# $(2): typelib filename (output) | ||
193 | -# | ||
194 | -define introspection-compiler | ||
195 | -$(_gir_silent_compiler) $(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) --includedir=. $(1) -o $(2) | ||
196 | -endef | ||
197 | - | ||
198 | -# Simple rule to compile a typelib. | ||
199 | -%.typelib: %.gir | ||
200 | - $(call introspection-compiler,$<,$@) | ||
201 | diff --git a/introspection.m4 b/introspection.m4 | ||
202 | deleted file mode 100644 | ||
203 | index d89c3d9..0000000 | ||
204 | --- a/introspection.m4 | ||
205 | +++ /dev/null | ||
206 | @@ -1,96 +0,0 @@ | ||
207 | -dnl -*- mode: autoconf -*- | ||
208 | -dnl Copyright 2009 Johan Dahlin | ||
209 | -dnl | ||
210 | -dnl This file is free software; the author(s) gives unlimited | ||
211 | -dnl permission to copy and/or distribute it, with or without | ||
212 | -dnl modifications, as long as this notice is preserved. | ||
213 | -dnl | ||
214 | - | ||
215 | -# serial 1 | ||
216 | - | ||
217 | -m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], | ||
218 | -[ | ||
219 | - AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
220 | - AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
221 | - AC_BEFORE([LT_INIT],[$0])dnl setup libtool first | ||
222 | - | ||
223 | - dnl enable/disable introspection | ||
224 | - m4_if([$2], [require], | ||
225 | - [dnl | ||
226 | - enable_introspection=yes | ||
227 | - ],[dnl | ||
228 | - AC_ARG_ENABLE(introspection, | ||
229 | - AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], | ||
230 | - [Enable introspection for this build]),, | ||
231 | - [enable_introspection=auto]) | ||
232 | - ])dnl | ||
233 | - | ||
234 | - AC_MSG_CHECKING([for gobject-introspection]) | ||
235 | - | ||
236 | - dnl presence/version checking | ||
237 | - AS_CASE([$enable_introspection], | ||
238 | - [no], [dnl | ||
239 | - found_introspection="no (disabled, use --enable-introspection to enable)" | ||
240 | - ],dnl | ||
241 | - [yes],[dnl | ||
242 | - PKG_CHECK_EXISTS([gobject-introspection-1.0],, | ||
243 | - AC_MSG_ERROR([gobject-introspection-1.0 is not installed])) | ||
244 | - PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], | ||
245 | - found_introspection=yes, | ||
246 | - AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME])) | ||
247 | - ],dnl | ||
248 | - [auto],[dnl | ||
249 | - PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no) | ||
250 | - dnl Canonicalize enable_introspection | ||
251 | - enable_introspection=$found_introspection | ||
252 | - ],dnl | ||
253 | - [dnl | ||
254 | - AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) | ||
255 | - ])dnl | ||
256 | - | ||
257 | - AC_MSG_RESULT([$found_introspection]) | ||
258 | - | ||
259 | - INTROSPECTION_SCANNER= | ||
260 | - INTROSPECTION_COMPILER= | ||
261 | - INTROSPECTION_GENERATE= | ||
262 | - INTROSPECTION_GIRDIR= | ||
263 | - INTROSPECTION_TYPELIBDIR= | ||
264 | - if test "x$found_introspection" = "xyes"; then | ||
265 | - INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` | ||
266 | - INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` | ||
267 | - INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` | ||
268 | - INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` | ||
269 | - INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" | ||
270 | - INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` | ||
271 | - INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` | ||
272 | - INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection | ||
273 | - fi | ||
274 | - AC_SUBST(INTROSPECTION_SCANNER) | ||
275 | - AC_SUBST(INTROSPECTION_COMPILER) | ||
276 | - AC_SUBST(INTROSPECTION_GENERATE) | ||
277 | - AC_SUBST(INTROSPECTION_GIRDIR) | ||
278 | - AC_SUBST(INTROSPECTION_TYPELIBDIR) | ||
279 | - AC_SUBST(INTROSPECTION_CFLAGS) | ||
280 | - AC_SUBST(INTROSPECTION_LIBS) | ||
281 | - AC_SUBST(INTROSPECTION_MAKEFILE) | ||
282 | - | ||
283 | - AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") | ||
284 | -]) | ||
285 | - | ||
286 | - | ||
287 | -dnl Usage: | ||
288 | -dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) | ||
289 | - | ||
290 | -AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], | ||
291 | -[ | ||
292 | - _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) | ||
293 | -]) | ||
294 | - | ||
295 | -dnl Usage: | ||
296 | -dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) | ||
297 | - | ||
298 | - | ||
299 | -AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], | ||
300 | -[ | ||
301 | - _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) | ||
302 | -]) | ||
303 | -- | ||
304 | 2.1.4 | ||
305 | |||
diff --git a/meta/recipes-gnome/gtk-doc-stub/gtk-doc-stub_git.bb b/meta/recipes-gnome/gtk-doc-stub/gtk-doc-stub_git.bb deleted file mode 100644 index 84e49c13a6..0000000000 --- a/meta/recipes-gnome/gtk-doc-stub/gtk-doc-stub_git.bb +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | SUMMARY = "Stub implementation of gtk-doc" | ||
2 | DESCRIPTION = "Stub implementation of gtk-doc, as we don't want to build the API documentation" | ||
3 | SECTION = "x11/base" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
6 | |||
7 | PROVIDES = "gtk-doc" | ||
8 | |||
9 | SRCREV = "1dea266593edb766d6d898c79451ef193eb17cfa" | ||
10 | PV = "1.1+git${SRCPV}" | ||
11 | |||
12 | SRC_URI = "git://git.gnome.org/${BPN} \ | ||
13 | file://0001-Revert-Import-introspection-stub-machinery-too.patch \ | ||
14 | " | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | do_configure() { | ||
19 | ./configure --prefix=${prefix} \ | ||
20 | --sysconfdir=${sysconfdir} \ | ||
21 | --bindir=${bindir} \ | ||
22 | --libdir=${libdir} \ | ||
23 | --datadir=${datadir} \ | ||
24 | --datarootdir=${datadir} | ||
25 | } | ||
26 | |||
27 | do_install() { | ||
28 | oe_runmake install DESTDIR="${D}" | ||
29 | } | ||
30 | |||
31 | FILES_${PN} += "${datadir}" | ||
32 | |||
33 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-xsltproc-is-not-found.patch b/meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-xsltproc-is-not-found.patch new file mode 100644 index 0000000000..99ae4d4417 --- /dev/null +++ b/meta/recipes-gnome/gtk-doc/files/0001-Do-not-error-out-if-xsltproc-is-not-found.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 8b7fbbb405959f2868ad6eadd7dd00018758a8a5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Wed, 7 Sep 2016 14:52:04 +0300 | ||
4 | Subject: [PATCH] Do not error out if xsltproc is not found. | ||
5 | |||
6 | This allows us to drop the hard xsltproc dependency, if we're not | ||
7 | going to actually run the gtkdoc scripts (when api documentation is | ||
8 | disabled). | ||
9 | |||
10 | Upstream-Status: Inappropriate [oe-core specific] | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | --- | ||
13 | configure.ac | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/configure.ac b/configure.ac | ||
17 | index b0c88d7..2a61d6e 100644 | ||
18 | --- a/configure.ac | ||
19 | +++ b/configure.ac | ||
20 | @@ -58,7 +58,7 @@ dnl Check for xsltproc | ||
21 | dnl | ||
22 | AC_PATH_PROG([XSLTPROC], [xsltproc]) | ||
23 | if test -z "$XSLTPROC"; then | ||
24 | - AC_MSG_ERROR([xsltproc not found]) | ||
25 | + AC_MSG_WARN([xsltproc not found]) | ||
26 | fi | ||
27 | |||
28 | dnl | ||
29 | -- | ||
30 | 2.9.3 | ||
31 | |||
diff --git a/meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch b/meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch new file mode 100644 index 0000000000..477fc9ae8c --- /dev/null +++ b/meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch | |||
@@ -0,0 +1,139 @@ | |||
1 | From 6fab82b93c7bd301eb42448515b02f7cb3306897 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Wed, 31 Aug 2016 16:44:46 +0300 | ||
4 | Subject: [PATCH] Do not hardocode paths to perl/python in scripts. | ||
5 | |||
6 | Doing so when the interpreters are somewhere deep in a sysroot directory | ||
7 | can reach the shebang line limit, and resulting scripts wouldn't work | ||
8 | on targets either. | ||
9 | |||
10 | Upstream-Status: Inappropriate [oe-core specific] | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | --- | ||
13 | gtkdoc-check.in | 2 +- | ||
14 | gtkdoc-common.pl.in | 2 +- | ||
15 | gtkdoc-depscan.in | 2 +- | ||
16 | gtkdoc-fixxref.in | 2 +- | ||
17 | gtkdoc-mkdb.in | 2 +- | ||
18 | gtkdoc-mktmpl.in | 2 +- | ||
19 | gtkdoc-rebase.in | 2 +- | ||
20 | gtkdoc-scan.in | 2 +- | ||
21 | gtkdoc-scangobj.in | 2 +- | ||
22 | tests/tools.sh.in | 4 ++-- | ||
23 | 10 files changed, 11 insertions(+), 11 deletions(-) | ||
24 | |||
25 | diff --git a/gtkdoc-check.in b/gtkdoc-check.in | ||
26 | index 560d69b..b60857f 100755 | ||
27 | --- a/gtkdoc-check.in | ||
28 | +++ b/gtkdoc-check.in | ||
29 | @@ -1,4 +1,4 @@ | ||
30 | -#!@PERL@ -w | ||
31 | +#!/usr/bin/env perl | ||
32 | # -*- cperl -*- | ||
33 | # | ||
34 | # gtk-doc - GTK DocBook documentation generator. | ||
35 | diff --git a/gtkdoc-common.pl.in b/gtkdoc-common.pl.in | ||
36 | index 4747396..cfadb78 100644 | ||
37 | --- a/gtkdoc-common.pl.in | ||
38 | +++ b/gtkdoc-common.pl.in | ||
39 | @@ -1,4 +1,4 @@ | ||
40 | -#!@PERL@ -w | ||
41 | +#!/usr/bin/env perl | ||
42 | # -*- cperl -*- | ||
43 | # | ||
44 | # gtk-doc - GTK DocBook documentation generator. | ||
45 | diff --git a/gtkdoc-depscan.in b/gtkdoc-depscan.in | ||
46 | index 83af01b..917e247 100644 | ||
47 | --- a/gtkdoc-depscan.in | ||
48 | +++ b/gtkdoc-depscan.in | ||
49 | @@ -1,4 +1,4 @@ | ||
50 | -#!@PYTHON@ | ||
51 | +#!/usr/bin/env python | ||
52 | |||
53 | import gzip, os.path, re | ||
54 | |||
55 | diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in | ||
56 | index 3d9e8d0..d55190b 100755 | ||
57 | --- a/gtkdoc-fixxref.in | ||
58 | +++ b/gtkdoc-fixxref.in | ||
59 | @@ -1,4 +1,4 @@ | ||
60 | -#!@PERL@ -w | ||
61 | +#!/usr/bin/env perl | ||
62 | # -*- cperl -*- | ||
63 | # | ||
64 | # gtk-doc - GTK DocBook documentation generator. | ||
65 | diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in | ||
66 | index 8dd6d5e..d808750 100755 | ||
67 | --- a/gtkdoc-mkdb.in | ||
68 | +++ b/gtkdoc-mkdb.in | ||
69 | @@ -1,4 +1,4 @@ | ||
70 | -#!@PERL@ -w | ||
71 | +#!/usr/bin/env perl | ||
72 | # -*- cperl -*- | ||
73 | # | ||
74 | # gtk-doc - GTK DocBook documentation generator. | ||
75 | diff --git a/gtkdoc-mktmpl.in b/gtkdoc-mktmpl.in | ||
76 | index c64dfd3..2f46c18 100755 | ||
77 | --- a/gtkdoc-mktmpl.in | ||
78 | +++ b/gtkdoc-mktmpl.in | ||
79 | @@ -1,4 +1,4 @@ | ||
80 | -#!@PERL@ -w | ||
81 | +#!/usr/bin/env perl | ||
82 | # -*- cperl -*- | ||
83 | # | ||
84 | # gtk-doc - GTK DocBook documentation generator. | ||
85 | diff --git a/gtkdoc-rebase.in b/gtkdoc-rebase.in | ||
86 | index 375482d..cf05b45 100644 | ||
87 | --- a/gtkdoc-rebase.in | ||
88 | +++ b/gtkdoc-rebase.in | ||
89 | @@ -1,4 +1,4 @@ | ||
90 | -#!@PERL@ -w | ||
91 | +#!/usr/bin/env perl | ||
92 | # -*- cperl -*- | ||
93 | # | ||
94 | # gtk-doc - GTK DocBook documentation generator. | ||
95 | diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in | ||
96 | index 048e5c9..78c6136 100755 | ||
97 | --- a/gtkdoc-scan.in | ||
98 | +++ b/gtkdoc-scan.in | ||
99 | @@ -1,4 +1,4 @@ | ||
100 | -#!@PERL@ -w | ||
101 | +#!/usr/bin/env perl | ||
102 | # -*- cperl -*- | ||
103 | # | ||
104 | # gtk-doc - GTK DocBook documentation generator. | ||
105 | diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in | ||
106 | index fb66b76..67ee8f7 100644 | ||
107 | --- a/gtkdoc-scangobj.in | ||
108 | +++ b/gtkdoc-scangobj.in | ||
109 | @@ -1,4 +1,4 @@ | ||
110 | -#!@PERL@ -w | ||
111 | +#!/usr/bin/env perl | ||
112 | # -*- cperl -*- | ||
113 | # | ||
114 | # gtk-doc - GTK DocBook documentation generator. | ||
115 | diff --git a/tests/tools.sh.in b/tests/tools.sh.in | ||
116 | index a114a42..7073883 100644 | ||
117 | --- a/tests/tools.sh.in | ||
118 | +++ b/tests/tools.sh.in | ||
119 | @@ -11,7 +11,7 @@ echo "Running suite(s): gtk-doc-$suite"; | ||
120 | |||
121 | # test perl scripts | ||
122 | for file in gtkdoc-check gtkdoc-fixxref gtkdoc-mkdb gtkdoc-mktmpl gtkdoc-rebase gtkdoc-scan gtkdoc-scangobj ; do | ||
123 | - @PERL@ -cwT `which $file` | ||
124 | + perl -cwT `which $file` | ||
125 | if test $? = 1 ; then failed=`expr $failed + 1`; fi | ||
126 | tested=`expr $tested + 1` | ||
127 | done | ||
128 | @@ -34,7 +34,7 @@ done | ||
129 | |||
130 | |||
131 | # test python scripts | ||
132 | -@PYTHON@ -m py_compile `which gtkdoc-depscan` | ||
133 | +python -m py_compile `which gtkdoc-depscan` | ||
134 | if test $? != 0 ; then failed=`expr $failed + 1`; fi | ||
135 | tested=`expr $tested + 1` | ||
136 | |||
137 | -- | ||
138 | 2.9.3 | ||
139 | |||
diff --git a/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb b/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb new file mode 100644 index 0000000000..9b9f191e0c --- /dev/null +++ b/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | SUMMARY = "Documentation generator for glib-based software" | ||
2 | DESCRIPTION = "Gtk-doc is a set of scripts that extract specially formatted comments \ | ||
3 | from glib-based software and produce a set of html documentation files from them" | ||
4 | HOMEPAGE = "http://www.gtk.org/gtk-doc/" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
7 | |||
8 | inherit gnomebase perlnative | ||
9 | |||
10 | # Configure the scripts correctly (and build their dependencies) only if they are actually | ||
11 | # going to be used; otheriwse we need only the m4/makefile includes from the gtk-doc tarball. | ||
12 | PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "api-documentation", "working-scripts", "", d)}" | ||
13 | |||
14 | # This will cause target gtk-doc to hardcode paths of native dependencies | ||
15 | # into its scripts. This means that target gtk-doc package is broken; | ||
16 | # hopefully no one minds because its scripts are not used for anything during build | ||
17 | # and shouldn't be used on targets. | ||
18 | PACKAGECONFIG[working-scripts] = "--with-highlight=source-highlight,--with-highlight=no,libxslt-native xmlto-native source-highlight-native" | ||
19 | |||
20 | SRC_URI += "file://0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch \ | ||
21 | file://0001-Do-not-error-out-if-xsltproc-is-not-found.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI[archive.md5sum] = "0dc6570953112a464a409fb99258ccbc" | ||
25 | SRC_URI[archive.sha256sum] = "1ea46ed400e6501f975acaafea31479cea8f32f911dca4dff036f59e6464fd42" | ||
26 | |||
27 | BBCLASSEXTEND = "native" | ||
28 | |||
29 | # Do not check for XML catalogs when building because that | ||
30 | # information is not used for anything during build. Recipe | ||
31 | # dependencies make sure we have all the right bits. | ||
32 | do_configure_prepend() { | ||
33 | sed -i -e 's,^JH_CHECK_XML_CATALOG.*,,' ${S}/configure.ac | ||
34 | } | ||
35 | |||
36 | FILES_${PN} += "${datadir}/sgml" | ||
37 | FILES_${PN}-dev += "${libdir}/cmake" | ||
38 | FILES_${PN}-doc = "" | ||
39 | |||
40 | SYSROOT_PREPROCESS_FUNCS_append_class-native = " gtkdoc_makefiles_sysroot_preprocess" | ||
41 | gtkdoc_makefiles_sysroot_preprocess() { | ||
42 | # Patch the gtk-doc makefiles so that the qemu wrapper is used to run transient binaries | ||
43 | # instead of libtool wrapper or running them directly | ||
44 | sed -i \ | ||
45 | -e "s|GTKDOC_RUN =.*|GTKDOC_RUN = \$(top_builddir)/gtkdoc-qemuwrapper|" \ | ||
46 | ${SYSROOT_DESTDIR}${datadir}/gtk-doc/data/gtk-doc*make | ||
47 | } | ||
48 | |||