commit: 979f778ad499babc87f03351d677d583d1b6d93a parent: 6ad2d0165349e800d8e9ca0dab50c72354c0a1c4 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Sun, 25 Aug 2019 04:39:09 +0200 dev-util/gtk-doc{,-am}: Import-bump from ::gentoo to 1.32Diffstat:
A | dev-util/gtk-doc-am/Manifest | 1 | + |
A | dev-util/gtk-doc-am/gtk-doc-am-1.32.ebuild | 39 | +++++++++++++++++++++++++++++++++++++++ |
A | dev-util/gtk-doc-am/metadata.xml | 8 | ++++++++ |
A | dev-util/gtk-doc/Manifest | 1 | + |
A | dev-util/gtk-doc/files/61gtk-doc-gentoo.el | 9 | +++++++++ |
A | dev-util/gtk-doc/files/gtk-doc-1.8-emacs-keybindings.patch | 17 | +++++++++++++++++ |
A | dev-util/gtk-doc/gtk-doc-1.32.ebuild | 108 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | dev-util/gtk-doc/metadata.xml | 14 | ++++++++++++++ |
8 files changed, 197 insertions(+), 0 deletions(-)
diff --git a/dev-util/gtk-doc-am/Manifest b/dev-util/gtk-doc-am/Manifest @@ -0,0 +1 @@ +DIST gtk-doc-1.32.tar.xz 762000 BLAKE2B e87b0ed5dffd04acc7569171343839a742a874438248546b1b85ca71102d5a546f41b450c5cedf54ecab5b7b6585a4dac36d7600b21b5cce491470a50f82d3b0 SHA512 6d28395968c2951f1685570e5778b5add76d1b9cff8fcb8632b200b3ba251602a1ea59b1def84fc28560988b87fc0dbbc6947af88d268db6ff23e9c28aea3b28 diff --git a/dev-util/gtk-doc-am/gtk-doc-am-1.32.ebuild b/dev-util/gtk-doc-am/gtk-doc-am-1.32.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GNOME_ORG_MODULE="gtk-doc" +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit gnome.org python-single-r1 + +DESCRIPTION="Automake files from gtk-doc" +HOMEPAGE="https://www.gtk.org/gtk-doc/" + +LICENSE="GPL-2 FDL-1.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND} + virtual/pkgconfig + !<dev-util/gtk-doc-${GNOME_ORG_PVP} +" +# This ebuild doesn't even compile anything, causing tests to fail when updating (bug #316071) +RESTRICT="test" + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + python_fix_shebang gtkdoc-rebase + dobin gtkdoc-rebase + + insinto /usr/share/aclocal + doins gtk-doc.m4 +} diff --git a/dev-util/gtk-doc-am/metadata.xml b/dev-util/gtk-doc-am/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> +</pkgmetadata> diff --git a/dev-util/gtk-doc/Manifest b/dev-util/gtk-doc/Manifest @@ -0,0 +1 @@ +DIST gtk-doc-1.32.tar.xz 762000 BLAKE2B e87b0ed5dffd04acc7569171343839a742a874438248546b1b85ca71102d5a546f41b450c5cedf54ecab5b7b6585a4dac36d7600b21b5cce491470a50f82d3b0 SHA512 6d28395968c2951f1685570e5778b5add76d1b9cff8fcb8632b200b3ba251602a1ea59b1def84fc28560988b87fc0dbbc6947af88d268db6ff23e9c28aea3b28 diff --git a/dev-util/gtk-doc/files/61gtk-doc-gentoo.el b/dev-util/gtk-doc/files/61gtk-doc-gentoo.el @@ -0,0 +1,9 @@ + +;;; gtk-doc site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") + +(autoload 'gtk-doc-insert "gtk-doc" + "Add a documentation header to the current function." t) +(autoload 'gtk-doc-insert-section "gtk-doc" + "Add a section documentation header at the current position." t) diff --git a/dev-util/gtk-doc/files/gtk-doc-1.8-emacs-keybindings.patch b/dev-util/gtk-doc/files/gtk-doc-1.8-emacs-keybindings.patch @@ -0,0 +1,17 @@ +--- gtk-doc-1.8-orig/tools/gtk-doc.el 2007-01-03 16:04:14.000000000 +0100 ++++ gtk-doc-1.8/tools/gtk-doc.el 2007-07-29 21:56:45.000000000 +0200 +@@ -262,7 +262,7 @@ + + ;; set global binding for this key (follows the format for + ;; creating a changelog entry ...) +-(global-set-key "\C-x4h" 'gtk-doc-insert) ++;;(global-set-key "\C-x4h" 'gtk-doc-insert) + + + ;; Define another function for inserting a section header. +@@ -280,4 +280,4 @@ + " */\n")) + + ;; Set the key binding. +-(global-set-key "\C-x4s" 'gtk-doc-insert-section) ++;;(global-set-key "\C-x4s" 'gtk-doc-insert-section) diff --git a/dev-util/gtk-doc/gtk-doc-1.32.ebuild b/dev-util/gtk-doc/gtk-doc-1.32.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit eutils elisp-common gnome2 python-single-r1 readme.gentoo-r1 + +DESCRIPTION="GTK+ Documentation Generator" +HOMEPAGE="https://www.gtk.org/gtk-doc/" + +LICENSE="GPL-2 FDL-1.1" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris" + +IUSE="debug doc emacs pdf test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-libs/libxslt + dev-libs/libxml2 + app-text/docbook-xsl-stylesheets + dev-python/pygments[${PYTHON_USEDEP}] + doc? ( app-text/yelp-tools ) + emacs? ( virtual/emacs ) + pdf? ( + || ( + app-text/dblatex + dev-java/fop + ) + ) + test? ( >=dev-libs/glib-2.38.0:2 ) +" +DEPEND="${RDEPEND} + ~dev-util/gtk-doc-am-${PV} + dev-util/itstool + virtual/pkgconfig +" + +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() { + # Remove global Emacs keybindings, bug #184588 + eapply "${FILESDIR}"/${PN}-1.8-emacs-keybindings.patch + + # Apply upstream commit 1baf9a6, bug #646850 + sed -e '1,/exit 1/s/exit 1/exit $1/' \ + -i gtkdoc-mkpdf.in || die + + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + $(use_enable debug) +} + +src_compile() { + gnome2_src_compile + use emacs && elisp-compile tools/gtk-doc.el +} + +src_install() { + gnome2_src_install + + python_fix_shebang "${ED}"/usr/bin/ + + # Don't install those files, they are in gtk-doc-am now + rm "${ED}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4" + rm "${ED}"/usr/bin/gtkdoc-rebase || die "failed to remove gtkdoc-rebase" + + if use doc; then + docinto doc + dodoc doc/* + docinto examples + dodoc examples/* + fi + + if use emacs; then + elisp-install ${PN} tools/gtk-doc.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + readme.gentoo_create_doc + fi +} + +src_test() { + emake -j1 check +} + +pkg_postinst() { + gnome2_pkg_postinst + if use emacs; then + elisp-site-regen + readme.gentoo_print_elog + fi +} + +pkg_postrm() { + gnome2_pkg_postrm + use emacs && elisp-site-regen +} diff --git a/dev-util/gtk-doc/metadata.xml b/dev-util/gtk-doc/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> + <longdescription lang="en"> + GTK-Doc is used to document C code. + It is typically used to document the public API of libraries, + such as the GTK+ and GNOME libraries, but it can also be used + to document application code. + </longdescription> +</pkgmetadata>