From: "Mart Raudsepp" <leio@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/gtk-doc/
Date: Sun, 14 Feb 2021 21:06:58 +0000 (UTC) [thread overview]
Message-ID: <1613336736.201200e6143276ced3afa2a9cde33187efa05b66.leio@gentoo> (raw)
commit: 201200e6143276ced3afa2a9cde33187efa05b66
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 14 21:01:58 2021 +0000
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 21:05:36 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=201200e6
dev-util/gtk-doc: drop user doc optionality and fix related deps
It has only a tiny itstool dependency, which depends on libxml2
which gtk-doc also depends on. This dependency was missing for USE=doc
before, now just always bdep require itstool and enable the help build.
Also explicitly enable autotools and cmake support, as our packages
rely on it and thus makes sense to be explicit (albeit it's unlikely
upstream will ever default disable them).
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
dev-util/gtk-doc/gtk-doc-1.33.1-r4.ebuild | 110 ++++++++++++++++++++++++++++++
1 file changed, 110 insertions(+)
diff --git a/dev-util/gtk-doc/gtk-doc-1.33.1-r4.ebuild b/dev-util/gtk-doc/gtk-doc-1.33.1-r4.ebuild
new file mode 100644
index 00000000000..df6e92cd308
--- /dev/null
+++ b/dev-util/gtk-doc/gtk-doc-1.33.1-r4.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit elisp-common gnome.org meson python-single-r1 readme.gentoo-r1
+
+DESCRIPTION="GTK+ Documentation Generator"
+HOMEPAGE="https://wiki.gnome.org/DocumentationProject/GtkDoc"
+
+LICENSE="GPL-2 FDL-1.1"
+SLOT="0"
+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"
+
+IUSE="emacs test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=dev-libs/glib-2.38:2
+ dev-libs/libxslt
+ >=dev-libs/libxml2-2.3.6:2
+ ~app-text/docbook-xml-dtd-4.3
+ app-text/docbook-xsl-stylesheets
+ ~app-text/docbook-sgml-dtd-3.0
+ >=app-text/docbook-dsssl-stylesheets-1.40
+ emacs? ( >=app-editors/emacs-23.1:* )
+ $(python_gen_cond_dep '
+ dev-python/pygments[${PYTHON_MULTI_USEDEP}]
+ ')
+"
+DEPEND="${RDEPEND}
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/parameterized[${PYTHON_USEDEP}]
+ ')
+ )
+"
+BDEPEND="
+ ~dev-util/gtk-doc-am-${PV}
+ dev-util/itstool
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ # Remove global Emacs keybindings, bug #184588
+ "${FILESDIR}"/${PN}-1.8-emacs-keybindings.patch
+)
+
+pkg_setup() {
+ DOC_CONTENTS="gtk-doc does no longer define global key bindings for Emacs.
+ You may set your own key bindings for \"gtk-doc-insert\" and
+ \"gtk-doc-insert-section\" in your ~/.emacs file."
+ SITEFILE=61${PN}-gentoo.el
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # Requires the unpackaged Python "anytree" module
+ sed -i -e '/mkhtml2/d' "${S}"/tests/meson.build || die
+}
+
+src_configure() {
+ local emesonargs=(
+ -Dautotools_support=true
+ -Dcmake_support=true
+ -Dyelp_manual=true
+ $(meson_use test tests)
+ )
+ meson_src_configure
+}
+
+src_compile() {
+ meson_src_compile
+ use emacs && elisp-compile tools/gtk-doc.el
+}
+
+src_install() {
+ meson_src_install
+
+ # The meson build system configures the shebangs to the temporary python
+ # used during the build. We need to fix it.
+ sed -i -e 's:^#!.*python3:#!/usr/bin/env python3:' "${ED}"/usr/bin/* || die
+ python_fix_shebang "${ED}"/usr/bin
+
+ # Don't install this file, it's in gtk-doc-am now
+ rm "${ED}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4"
+ rmdir "${ED}"/usr/share/aclocal || die
+
+ if use emacs; then
+ elisp-install ${PN} tools/gtk-doc.el*
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ readme.gentoo_create_doc
+ fi
+}
+
+pkg_postinst() {
+ if use emacs; then
+ elisp-site-regen
+ readme.gentoo_print_elog
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
next reply other threads:[~2021-02-14 21:07 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-14 21:06 Mart Raudsepp [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-10-27 17:54 [gentoo-commits] repo/gentoo:master commit in: dev-util/gtk-doc/ Arthur Zamarin
2021-06-04 3:12 Matt Turner
2021-05-31 17:43 Sergei Trofimovich
2021-04-18 4:28 Matt Turner
2021-02-18 8:27 Sam James
2021-02-18 7:29 Sam James
2021-02-17 18:42 Sam James
2021-02-17 15:56 Sergei Trofimovich
2021-02-17 14:21 Sam James
2021-02-17 13:54 Sam James
2021-02-17 1:01 Sam James
2021-02-16 19:20 Sam James
2021-02-16 19:17 Sergei Trofimovich
2021-01-06 22:55 Fabian Groffen
2020-12-08 14:12 Matt Turner
2020-12-07 17:32 Matt Turner
2020-12-06 17:52 Matt Turner
2020-12-05 19:07 Matt Turner
2020-12-05 18:49 Matt Turner
2020-12-02 19:06 Sam James
2020-11-14 9:19 Mikle Kolyada
2020-10-11 11:53 Sergei Trofimovich
2020-09-07 18:17 Sam James
2020-09-07 5:50 Sam James
2020-08-29 22:15 Sam James
2020-08-29 19:54 Sam James
2020-08-19 8:31 Sergei Trofimovich
2020-08-16 2:53 Sam James
2020-08-12 15:50 Sam James
2020-07-11 13:34 Mart Raudsepp
2020-07-05 9:27 Sergei Trofimovich
2020-06-07 21:02 Mart Raudsepp
2020-06-03 15:32 Agostino Sarubbo
2020-05-13 17:35 Sergei Trofimovich
2020-04-22 14:25 Agostino Sarubbo
2020-04-22 8:44 Agostino Sarubbo
2020-04-22 8:41 Agostino Sarubbo
2020-01-26 8:41 Rémi Cardona
2019-10-22 6:22 Matt Turner
2019-10-21 19:43 Matt Turner
2018-12-17 18:36 Mart Raudsepp
2018-12-17 18:36 Mart Raudsepp
2018-08-26 6:56 Zac Medico
2018-06-08 11:24 Mikle Kolyada
2018-05-30 9:56 Mart Raudsepp
2017-08-26 10:07 Gilles Dartiguelongue
2016-12-06 20:27 Markus Meier
2016-11-04 9:15 Pacho Ramos
2016-09-07 22:32 Gilles Dartiguelongue
2016-07-30 9:34 Jeroen Roovers
2016-06-08 19:55 Markus Meier
2016-06-07 7:03 Tobias Klausmann
2016-03-24 11:40 Dennis Lamm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1613336736.201200e6143276ced3afa2a9cde33187efa05b66.leio@gentoo \
--to=leio@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox