1 |
commit: bccfa7ee773d0f9227fc26beb123884fa3a4d36e |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 18 04:22:47 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 18 04:25:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bccfa7ee |
7 |
|
8 |
dev-util/gtk-doc: Version bump to 1.33.2 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
dev-util/gtk-doc/Manifest | 1 + |
13 |
dev-util/gtk-doc/gtk-doc-1.33.2.ebuild | 110 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 111 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/gtk-doc/Manifest b/dev-util/gtk-doc/Manifest |
17 |
index 380dd096304..064d9a83b6f 100644 |
18 |
--- a/dev-util/gtk-doc/Manifest |
19 |
+++ b/dev-util/gtk-doc/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST gtk-doc-1.33.1.tar.xz 768896 BLAKE2B 0d6cc32611618669aac4045942497a404f4d3ed703341cce56efefba439eb8595877297b76085c6a57d3d76710257153040b8f895d6dd6381502e852e6b82e93 SHA512 18620f0164382849980938103a9243abc35ea5a2628258f00e096e16a698b598d0c7fe80a1739fc689217c59a648c728a014bc672a92346c65768ebf89675b90 |
22 |
+DIST gtk-doc-1.33.2.tar.xz 507852 BLAKE2B dea3030060ecec89433fe3783dfacc2f58373780c49560a48ab1a32bedfe888692183de8396c92414255e4c8f537358cbc373fd307638ab8e7dbfd9ae44de58f SHA512 f50f68ab6b4bc59f55e84b49c1481f05700171cbf79eca9ba8f3a142a30a4ba88fe096983ebb8d117a9ef8bcea40934674096683d956f5c54cae457d31f651ab |
23 |
|
24 |
diff --git a/dev-util/gtk-doc/gtk-doc-1.33.2.ebuild b/dev-util/gtk-doc/gtk-doc-1.33.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..df6e92cd308 |
27 |
--- /dev/null |
28 |
+++ b/dev-util/gtk-doc/gtk-doc-1.33.2.ebuild |
29 |
@@ -0,0 +1,110 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+PYTHON_COMPAT=( python3_{7..9} ) |
35 |
+ |
36 |
+inherit elisp-common gnome.org meson python-single-r1 readme.gentoo-r1 |
37 |
+ |
38 |
+DESCRIPTION="GTK+ Documentation Generator" |
39 |
+HOMEPAGE="https://wiki.gnome.org/DocumentationProject/GtkDoc" |
40 |
+ |
41 |
+LICENSE="GPL-2 FDL-1.1" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris" |
44 |
+ |
45 |
+IUSE="emacs test" |
46 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ ${PYTHON_DEPS} |
51 |
+ >=dev-libs/glib-2.38:2 |
52 |
+ dev-libs/libxslt |
53 |
+ >=dev-libs/libxml2-2.3.6:2 |
54 |
+ ~app-text/docbook-xml-dtd-4.3 |
55 |
+ app-text/docbook-xsl-stylesheets |
56 |
+ ~app-text/docbook-sgml-dtd-3.0 |
57 |
+ >=app-text/docbook-dsssl-stylesheets-1.40 |
58 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
59 |
+ $(python_gen_cond_dep ' |
60 |
+ dev-python/pygments[${PYTHON_MULTI_USEDEP}] |
61 |
+ ') |
62 |
+" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ test? ( |
65 |
+ $(python_gen_cond_dep ' |
66 |
+ dev-python/parameterized[${PYTHON_USEDEP}] |
67 |
+ ') |
68 |
+ ) |
69 |
+" |
70 |
+BDEPEND=" |
71 |
+ ~dev-util/gtk-doc-am-${PV} |
72 |
+ dev-util/itstool |
73 |
+ virtual/pkgconfig |
74 |
+" |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ # Remove global Emacs keybindings, bug #184588 |
78 |
+ "${FILESDIR}"/${PN}-1.8-emacs-keybindings.patch |
79 |
+) |
80 |
+ |
81 |
+pkg_setup() { |
82 |
+ DOC_CONTENTS="gtk-doc does no longer define global key bindings for Emacs. |
83 |
+ You may set your own key bindings for \"gtk-doc-insert\" and |
84 |
+ \"gtk-doc-insert-section\" in your ~/.emacs file." |
85 |
+ SITEFILE=61${PN}-gentoo.el |
86 |
+ python-single-r1_pkg_setup |
87 |
+} |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ default |
91 |
+ |
92 |
+ # Requires the unpackaged Python "anytree" module |
93 |
+ sed -i -e '/mkhtml2/d' "${S}"/tests/meson.build || die |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ local emesonargs=( |
98 |
+ -Dautotools_support=true |
99 |
+ -Dcmake_support=true |
100 |
+ -Dyelp_manual=true |
101 |
+ $(meson_use test tests) |
102 |
+ ) |
103 |
+ meson_src_configure |
104 |
+} |
105 |
+ |
106 |
+src_compile() { |
107 |
+ meson_src_compile |
108 |
+ use emacs && elisp-compile tools/gtk-doc.el |
109 |
+} |
110 |
+ |
111 |
+src_install() { |
112 |
+ meson_src_install |
113 |
+ |
114 |
+ # The meson build system configures the shebangs to the temporary python |
115 |
+ # used during the build. We need to fix it. |
116 |
+ sed -i -e 's:^#!.*python3:#!/usr/bin/env python3:' "${ED}"/usr/bin/* || die |
117 |
+ python_fix_shebang "${ED}"/usr/bin |
118 |
+ |
119 |
+ # Don't install this file, it's in gtk-doc-am now |
120 |
+ rm "${ED}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4" |
121 |
+ rmdir "${ED}"/usr/share/aclocal || die |
122 |
+ |
123 |
+ if use emacs; then |
124 |
+ elisp-install ${PN} tools/gtk-doc.el* |
125 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
126 |
+ readme.gentoo_create_doc |
127 |
+ fi |
128 |
+} |
129 |
+ |
130 |
+pkg_postinst() { |
131 |
+ if use emacs; then |
132 |
+ elisp-site-regen |
133 |
+ readme.gentoo_print_elog |
134 |
+ fi |
135 |
+} |
136 |
+ |
137 |
+pkg_postrm() { |
138 |
+ use emacs && elisp-site-regen |
139 |
+} |