1 |
commit: 23c5e2ab1154b82697e9701162c193f0b5fb27e1 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 3 21:36:39 2021 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 3 21:41:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23c5e2ab |
7 |
|
8 |
dev-util/devhelp: bump to 41.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
dev-util/devhelp/Manifest | 1 + |
14 |
dev-util/devhelp/devhelp-41.2.ebuild | 83 ++++++++++++++++++++++ |
15 |
.../files/41.2-optional-introspection.patch | 47 ++++++++++++ |
16 |
dev-util/devhelp/files/41.2-webkitgtk40.patch | 38 ++++++++++ |
17 |
4 files changed, 169 insertions(+) |
18 |
|
19 |
diff --git a/dev-util/devhelp/Manifest b/dev-util/devhelp/Manifest |
20 |
index b3f2105aa47..189093efe28 100644 |
21 |
--- a/dev-util/devhelp/Manifest |
22 |
+++ b/dev-util/devhelp/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST devhelp-40.0.tar.xz 318076 BLAKE2B 05345f422e0ec906855c139306020165277daefea2c85229092be57c98f96459c33ab0fdf847a7135fa1b329c76edea71f7da0342c6673a828efe26298d26bdf SHA512 b8dd5fbb12558845f7f5794dad56ef0ffc1dbd60d5a6a28029dc8acea241e8deb1b68cd0abe9d620a512931a1c5f6db12fc594cd4597758c8d4904fb64e6ade7 |
25 |
DIST devhelp-40.1.tar.xz 318172 BLAKE2B 83f71b66538b700790961e3dd3c7c7a75199f499a1fb32eb01e62fd5d11e72ae4e860bcfab2615bd4d417d5c57b89dad7eb2f1de4930e39e544d42b57a193b97 SHA512 4c541db9a2222dce4064f401c1d0a9f3233e2dbab17206358dfcce360286f69698248d08172fb236a692b125d8cd3a5bb76b6377b01b52c3d096fa4528400acd |
26 |
+DIST devhelp-41.2.tar.xz 1455736 BLAKE2B c531af6cded6c9624581e4d14fb4d7713afbdcf173ec2a82e49789af1752568790dc346cc0293eddc68c0943fec4f742de726953de34441771711a938ba858fa SHA512 99a75ff19bf1b4613c312921452f190334e3e2036c28cda070169e3d1d352a5d2e7a56a393326efd679076257412e281dc94b628429119fcad58060d1a88ea98 |
27 |
|
28 |
diff --git a/dev-util/devhelp/devhelp-41.2.ebuild b/dev-util/devhelp/devhelp-41.2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..4657f906fe7 |
31 |
--- /dev/null |
32 |
+++ b/dev-util/devhelp/devhelp-41.2.ebuild |
33 |
@@ -0,0 +1,83 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+PYTHON_COMPAT=( python3_{8..9} ) |
39 |
+ |
40 |
+inherit gnome.org gnome2-utils meson python-single-r1 xdg |
41 |
+ |
42 |
+DESCRIPTION="An API documentation browser for GNOME" |
43 |
+HOMEPAGE="https://wiki.gnome.org/Apps/Devhelp" |
44 |
+ |
45 |
+LICENSE="GPL-3+ CC-BY-SA-4.0" |
46 |
+SLOT="0/3-6" # subslot = 3-(libdevhelp-3 soname version) |
47 |
+KEYWORDS="~amd64 ~arm ~ppc64 ~sparc ~x86" |
48 |
+IUSE="+gedit gtk-doc +introspection" |
49 |
+REQUIRED_USE="gedit? ( ${PYTHON_REQUIRED_USE} ) gtk-doc? ( introspection )" |
50 |
+ |
51 |
+DEPEND=" |
52 |
+ >=dev-libs/glib-2.64:2 |
53 |
+ >=x11-libs/gtk+-3.22:3[introspection?] |
54 |
+ >=net-libs/webkit-gtk-2.26:4[introspection?] |
55 |
+ gnome-base/gsettings-desktop-schemas |
56 |
+ introspection? ( >=dev-libs/gobject-introspection-1.54:= ) |
57 |
+" |
58 |
+RDEPEND="${DEPEND} |
59 |
+ gedit? ( |
60 |
+ ${PYTHON_DEPS} |
61 |
+ $(python_gen_cond_dep ' |
62 |
+ app-editors/gedit[introspection(+),python,${PYTHON_SINGLE_USEDEP}] |
63 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
64 |
+ ') |
65 |
+ ) |
66 |
+" |
67 |
+# libxml2 required for glib-compile-resources |
68 |
+BDEPEND=" |
69 |
+ ${PYTHON_DEPS} |
70 |
+ dev-libs/libxml2:2 |
71 |
+ dev-util/glib-utils |
72 |
+ dev-util/itstool |
73 |
+ gtk-doc? ( >=dev-util/gi-docgen-2021.6 ) |
74 |
+ >=sys-devel/gettext-0.19.8 |
75 |
+ virtual/pkgconfig |
76 |
+" |
77 |
+ |
78 |
+PATCHES=( |
79 |
+ "${FILESDIR}"/${PV}-optional-introspection.patch |
80 |
+ "${FILESDIR}"/${PV}-webkitgtk40.patch |
81 |
+) |
82 |
+ |
83 |
+pkg_setup() { |
84 |
+ use gedit && python-single-r1_pkg_setup |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ local emesonargs=( |
89 |
+ -Dflatpak_build=false |
90 |
+ $(meson_use gtk-doc gtk_doc) |
91 |
+ $(meson_use introspection) |
92 |
+ -Dplugin_emacs=true |
93 |
+ $(meson_use gedit plugin_gedit) |
94 |
+ -Dplugin_vim=true |
95 |
+ ) |
96 |
+ meson_src_configure |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ meson_src_install |
101 |
+ if use gtk-doc; then |
102 |
+ mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die |
103 |
+ mv "${ED}"/usr/share/doc/devhelp-3 "${ED}"/usr/share/gtk-doc/html/ || die |
104 |
+ fi |
105 |
+ use gedit && python_optimize "${ED}"/usr/$(get_libdir)/gedit/plugins |
106 |
+} |
107 |
+ |
108 |
+pkg_postinst() { |
109 |
+ xdg_pkg_postinst |
110 |
+ gnome2_schemas_update |
111 |
+} |
112 |
+ |
113 |
+pkg_postrm() { |
114 |
+ xdg_pkg_postrm |
115 |
+ gnome2_schemas_update |
116 |
+} |
117 |
|
118 |
diff --git a/dev-util/devhelp/files/41.2-optional-introspection.patch b/dev-util/devhelp/files/41.2-optional-introspection.patch |
119 |
new file mode 100644 |
120 |
index 00000000000..7fb4e719cbf |
121 |
--- /dev/null |
122 |
+++ b/dev-util/devhelp/files/41.2-optional-introspection.patch |
123 |
@@ -0,0 +1,47 @@ |
124 |
+From 0e2e1de8015abc77ead34e25d9822a183b1f214d Mon Sep 17 00:00:00 2001 |
125 |
+From: Mart Raudsepp <leio@g.o> |
126 |
+Date: Sun, 3 Oct 2021 23:51:25 +0300 |
127 |
+Subject: [PATCH] build: Add optionality for introspection build |
128 |
+ |
129 |
+--- |
130 |
+ devhelp/meson.build | 2 ++ |
131 |
+ meson_options.txt | 6 ++++++ |
132 |
+ 2 files changed, 8 insertions(+) |
133 |
+ |
134 |
+diff --git a/devhelp/meson.build b/devhelp/meson.build |
135 |
+index 010e563f..fac15888 100644 |
136 |
+--- a/devhelp/meson.build |
137 |
++++ b/devhelp/meson.build |
138 |
+@@ -120,6 +120,7 @@ PKG_CONFIG.generate( |
139 |
+ requires_private: LIBDEVHELP_PRIVATE_DEPS |
140 |
+ ) |
141 |
+ |
142 |
++if get_option('introspection') |
143 |
+ libdevhelp_gir = GNOME.generate_gir( |
144 |
+ libdevhelp_shared_lib, |
145 |
+ export_packages: 'libdevhelp-@0@'.format(LIBDEVHELP_API_VERSION_FULL), |
146 |
+@@ -140,3 +141,4 @@ libdevhelp_gir = GNOME.generate_gir( |
147 |
+ '--quiet', |
148 |
+ ], |
149 |
+ ) |
150 |
++endif |
151 |
+diff --git a/meson_options.txt b/meson_options.txt |
152 |
+index 17dc85f5..c69a2906 100644 |
153 |
+--- a/meson_options.txt |
154 |
++++ b/meson_options.txt |
155 |
+@@ -10,6 +10,12 @@ option( |
156 |
+ description: 'Build the API reference' |
157 |
+ ) |
158 |
+ |
159 |
++option( |
160 |
++ 'introspection', |
161 |
++ type: 'boolean', value: true, |
162 |
++ description: 'Build GObject Introspection data' |
163 |
++) |
164 |
++ |
165 |
+ option( |
166 |
+ 'plugin_emacs', |
167 |
+ type: 'boolean', value: false, |
168 |
+-- |
169 |
+2.32.0 |
170 |
+ |
171 |
|
172 |
diff --git a/dev-util/devhelp/files/41.2-webkitgtk40.patch b/dev-util/devhelp/files/41.2-webkitgtk40.patch |
173 |
new file mode 100644 |
174 |
index 00000000000..967d276bfa8 |
175 |
--- /dev/null |
176 |
+++ b/dev-util/devhelp/files/41.2-webkitgtk40.patch |
177 |
@@ -0,0 +1,38 @@ |
178 |
+From 7b0ef55edd63c71be209aa3b57e2190d4ce4fb90 Mon Sep 17 00:00:00 2001 |
179 |
+From: Mart Raudsepp <leio@g.o> |
180 |
+Date: Sun, 3 Oct 2021 23:52:27 +0300 |
181 |
+Subject: [PATCH] build: Don't automagically depend on webkit2gtk-4.1 |
182 |
+ |
183 |
+That's the libsoup3 using webkit-gtk SLOT that we don't have. Patch it out, |
184 |
+so it wouldn't be picked up automagically once it's added or comes from some |
185 |
+overlay. |
186 |
+ |
187 |
+This reverts commit f9d52aad23914df9dcb404723d1c99cf7b4e1eca. |
188 |
+--- |
189 |
+ meson.build | 7 +------ |
190 |
+ 1 file changed, 1 insertion(+), 6 deletions(-) |
191 |
+ |
192 |
+diff --git a/meson.build b/meson.build |
193 |
+index e57e466e..492aafed 100644 |
194 |
+--- a/meson.build |
195 |
++++ b/meson.build |
196 |
+@@ -46,15 +46,10 @@ lt_revision = 3 |
197 |
+ lt_age = 0 |
198 |
+ LIBDEVHELP_LT_VERSION = '@0@.@1@.@2@'.format(lt_current, lt_revision, lt_age) |
199 |
+ |
200 |
+-webkit_dep = dependency('webkit2gtk-4.1', required : false) |
201 |
+-if not webkit_dep.found() |
202 |
+- webkit_dep = dependency('webkit2gtk-4.0') |
203 |
+-endif |
204 |
+- |
205 |
+ LIBDEVHELP_PUBLIC_DEPS = [ |
206 |
+ dependency('gio-2.0', version: '>= 2.64'), |
207 |
+ dependency('gtk+-3.0', version: '>= 3.22'), |
208 |
+- webkit_dep, |
209 |
++ dependency('webkit2gtk-4.0', version: '>= 2.26'), |
210 |
+ ] |
211 |
+ LIBDEVHELP_PRIVATE_DEPS = [ |
212 |
+ dependency('gsettings-desktop-schemas'), |
213 |
+-- |
214 |
+2.32.0 |
215 |
+ |