1 |
commit: 01feec5d5c5d963ce55b8e820fa6b7c4e5a45a6b |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 17 22:55:40 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 18 03:04:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01feec5d |
7 |
|
8 |
dev-util/devhelp: Version bump to 40.0 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
dev-util/devhelp/Manifest | 1 + |
13 |
dev-util/devhelp/devhelp-40.0.ebuild | 82 ++++++++++++++++++++++ |
14 |
.../files/40.0-optional-introspection.patch | 47 +++++++++++++ |
15 |
3 files changed, 130 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/devhelp/Manifest b/dev-util/devhelp/Manifest |
18 |
index e6c4ceea771..cb01af4c2f2 100644 |
19 |
--- a/dev-util/devhelp/Manifest |
20 |
+++ b/dev-util/devhelp/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST devhelp-3.38.1.tar.xz 313948 BLAKE2B bd070c98e92a8968ffbac7e634c19730e7c63ee18d180a5d9dda7d831b28deea49a7aa50b17ca9a8b5a411276ac055074cb76ef8cde5017ca395d49bf4aecdf6 SHA512 bcdd61cd822ae3fbe2c9542c09d058760fc1fa0bbbd55b1fc0853b4fdbf1c3856d4fed8f2263f94f41096cbdc0a76394773d43a9072d8aa89274fa61a3c2a430 |
23 |
+DIST devhelp-40.0.tar.xz 318076 BLAKE2B 05345f422e0ec906855c139306020165277daefea2c85229092be57c98f96459c33ab0fdf847a7135fa1b329c76edea71f7da0342c6673a828efe26298d26bdf SHA512 b8dd5fbb12558845f7f5794dad56ef0ffc1dbd60d5a6a28029dc8acea241e8deb1b68cd0abe9d620a512931a1c5f6db12fc594cd4597758c8d4904fb64e6ade7 |
24 |
|
25 |
diff --git a/dev-util/devhelp/devhelp-40.0.ebuild b/dev-util/devhelp/devhelp-40.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..8814cb62406 |
28 |
--- /dev/null |
29 |
+++ b/dev-util/devhelp/devhelp-40.0.ebuild |
30 |
@@ -0,0 +1,82 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+PYTHON_COMPAT=( python3_{7..9} ) |
36 |
+ |
37 |
+inherit gnome.org gnome2-utils meson python-single-r1 xdg |
38 |
+ |
39 |
+DESCRIPTION="An API documentation browser for GNOME" |
40 |
+HOMEPAGE="https://wiki.gnome.org/Apps/Devhelp" |
41 |
+ |
42 |
+LICENSE="GPL-3+ CC-BY-SA-4.0" |
43 |
+SLOT="0/3-6" # subslot = 3-(libdevhelp-3 soname version) |
44 |
+KEYWORDS="~amd64 ~arm ~ppc64 ~sparc ~x86" |
45 |
+IUSE="+gedit gtk-doc +introspection" |
46 |
+REQUIRED_USE="gedit? ( ${PYTHON_REQUIRED_USE} )" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ >=dev-libs/glib-2.64:2 |
50 |
+ >=x11-libs/gtk+-3.22:3[introspection?] |
51 |
+ >=net-libs/webkit-gtk-2.24:4[introspection?] |
52 |
+ >=gui-libs/amtk-5.0:5 |
53 |
+ gnome-base/gsettings-desktop-schemas |
54 |
+ introspection? ( >=dev-libs/gobject-introspection-1.54:= ) |
55 |
+" |
56 |
+RDEPEND="${DEPEND} |
57 |
+ gedit? ( |
58 |
+ ${PYTHON_DEPS} |
59 |
+ $(python_gen_cond_dep ' |
60 |
+ app-editors/gedit[introspection(+),python,${PYTHON_SINGLE_USEDEP}] |
61 |
+ dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] |
62 |
+ ') |
63 |
+ ) |
64 |
+" |
65 |
+# libxml2 required for glib-compile-resources |
66 |
+BDEPEND=" |
67 |
+ ${PYTHON_DEPS} |
68 |
+ dev-libs/libxml2:2 |
69 |
+ dev-util/glib-utils |
70 |
+ dev-util/itstool |
71 |
+ gtk-doc? ( |
72 |
+ >=dev-util/gtk-doc-1.25 |
73 |
+ app-text/docbook-xml-dtd:4.3 |
74 |
+ ) |
75 |
+ >=sys-devel/gettext-0.19.8 |
76 |
+ virtual/pkgconfig |
77 |
+" |
78 |
+ |
79 |
+PATCHES=( |
80 |
+ "${FILESDIR}"/40.0-optional-introspection.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 |
+ use gedit && python_optimize "${ED}"/usr/$(get_libdir)/gedit/plugins |
102 |
+} |
103 |
+ |
104 |
+pkg_postinst() { |
105 |
+ xdg_pkg_postinst |
106 |
+ gnome2_schemas_update |
107 |
+} |
108 |
+ |
109 |
+pkg_postrm() { |
110 |
+ xdg_pkg_postrm |
111 |
+ gnome2_schemas_update |
112 |
+} |
113 |
|
114 |
diff --git a/dev-util/devhelp/files/40.0-optional-introspection.patch b/dev-util/devhelp/files/40.0-optional-introspection.patch |
115 |
new file mode 100644 |
116 |
index 00000000000..d4c00d369d6 |
117 |
--- /dev/null |
118 |
+++ b/dev-util/devhelp/files/40.0-optional-introspection.patch |
119 |
@@ -0,0 +1,47 @@ |
120 |
+From 6c982d00f9d6f03f916bb6a572e7f938cd56fa74 Mon Sep 17 00:00:00 2001 |
121 |
+From: Mart Raudsepp <leio@g.o> |
122 |
+Date: Fri, 22 Mar 2019 19:44:40 +0200 |
123 |
+Subject: [PATCH] build: Add optionality for introspection build |
124 |
+ |
125 |
+--- |
126 |
+ devhelp/meson.build | 2 ++ |
127 |
+ meson_options.txt | 6 ++++++ |
128 |
+ 2 files changed, 8 insertions(+) |
129 |
+ |
130 |
+diff --git a/devhelp/meson.build b/devhelp/meson.build |
131 |
+index eef055e7..eeaa51eb 100644 |
132 |
+--- a/devhelp/meson.build |
133 |
++++ b/devhelp/meson.build |
134 |
+@@ -120,6 +120,7 @@ PKG_CONFIG.generate( |
135 |
+ requires_private: LIBDEVHELP_PRIVATE_DEPS |
136 |
+ ) |
137 |
+ |
138 |
++if get_option('introspection') |
139 |
+ GNOME.generate_gir( |
140 |
+ libdevhelp_shared_lib, |
141 |
+ export_packages: 'libdevhelp-@0@'.format(LIBDEVHELP_API_VERSION_FULL), |
142 |
+@@ -140,3 +141,4 @@ GNOME.generate_gir( |
143 |
+ '--quiet', |
144 |
+ ], |
145 |
+ ) |
146 |
++endif |
147 |
+diff --git a/meson_options.txt b/meson_options.txt |
148 |
+index 17dc85f5..c69a2906 100644 |
149 |
+--- a/meson_options.txt |
150 |
++++ b/meson_options.txt |
151 |
+@@ -10,6 +10,12 @@ option( |
152 |
+ description: 'Build the API reference' |
153 |
+ ) |
154 |
+ |
155 |
++option( |
156 |
++ 'introspection', |
157 |
++ type: 'boolean', value: true, |
158 |
++ description: 'Build GObject Introspection data' |
159 |
++) |
160 |
++ |
161 |
+ option( |
162 |
+ 'plugin_emacs', |
163 |
+ type: 'boolean', value: false, |
164 |
+-- |
165 |
+2.26.3 |
166 |
+ |