summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <mrpouet@gentoo.org>2010-02-16 20:06:54 +0000
committerRomain Perier <mrpouet@gentoo.org>2010-02-16 20:06:54 +0000
commitf206338e38ae551264b47e2ccabf4f1e2575b3ea (patch)
tree876c20565ed04f5f6648d7009c2f658db8339275 /dev-util
parentRemove www-client/opera mask now that ppc support is gone. (diff)
downloadhistorical-f206338e38ae551264b47e2ccabf4f1e2575b3ea.tar.gz
historical-f206338e38ae551264b47e2ccabf4f1e2575b3ea.tar.bz2
historical-f206338e38ae551264b47e2ccabf4f1e2575b3ea.zip
Import two patches from upstream: touch MODULE-overrides.txt when missing in gtkdoc-scan, be compatible with old versions of gtk-doc in fixxref. Per bug #305191, thanks to Kacper Kowalik.
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/gtk-doc/ChangeLog12
-rw-r--r--dev-util/gtk-doc/Manifest15
-rw-r--r--dev-util/gtk-doc/files/gtk-doc-1.13-fixxref-compat.patch80
-rw-r--r--dev-util/gtk-doc/files/gtk-doc-1.13-scan-touch-module-overrides.patch33
-rw-r--r--dev-util/gtk-doc/gtk-doc-1.13-r1.ebuild91
5 files changed, 219 insertions, 12 deletions
diff --git a/dev-util/gtk-doc/ChangeLog b/dev-util/gtk-doc/ChangeLog
index 7cb54f1c5154..122a4ab4a768 100644
--- a/dev-util/gtk-doc/ChangeLog
+++ b/dev-util/gtk-doc/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for dev-util/gtk-doc
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/gtk-doc/ChangeLog,v 1.115 2010/02/14 22:23:40 eva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gtk-doc/ChangeLog,v 1.116 2010/02/16 20:06:54 mrpouet Exp $
+
+*gtk-doc-1.13-r1 (16 Feb 2010)
+
+ 16 Feb 2010; Romain Perier <mrpouet@gentoo.org>
+ +gtk-doc-1.13-r1.ebuild,
+ +files/gtk-doc-1.13-fixxref-compat.patch,
+ +files/gtk-doc-1.13-scan-touch-module-overrides.patch:
+ Import two patches from upstream: touch MODULE-overrides.txt when missing
+ in gtkdoc-scan, be compatible with old versions of gtk-doc in fixxref. Per
+ bug #305191, thanks to Kacper Kowalik.
*gtk-doc-1.13 (14 Feb 2010)
diff --git a/dev-util/gtk-doc/Manifest b/dev-util/gtk-doc/Manifest
index 1e0c7cb64e9c..9e7bfd399e2f 100644
--- a/dev-util/gtk-doc/Manifest
+++ b/dev-util/gtk-doc/Manifest
@@ -1,24 +1,17 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX 61gtk-doc-gentoo.el 283 RMD160 9adc999d70cd5da21b0f02de2ecabca831d9e5cc SHA1 b5857c1b6a11fda687aa6aebb12c34daca2efcc3 SHA256 211c75484f2a4651a1e65a00c066640c3bf782030cfff5872a7af51bafd027c8
AUX gtk-doc-1.10-no-m4.patch 1238 RMD160 afebe8f0587973b0aad062ab753992e4e1440227 SHA1 b1bb61557339b6873dfb9060c0b286df94fe199d SHA256 3091e4ccd666597cbfe87da13b8fdc8460028be60f9e97174e8b7b21cfcff602
AUX gtk-doc-1.11-fix-index-id-gen.patch 2580 RMD160 e789564579a1cb8093dcdfd8009f77d3cae4f6d8 SHA1 802d9d2b6c55d56e4ae62b120f0fa349c5de6cf6 SHA256 c35c643a2bee6a766e22862aadbb1f71c1c35dccd4148072561d5aa13acf512e
AUX gtk-doc-1.11-quote-filenames-with-space.patch 1319 RMD160 7434284f8d94affa463583fb615d4e87e5f101b4 SHA1 f2cda31249b8443754db437cd38a20a518f10ac3 SHA256 e598e0abd05a09bef828ca2fb68b590813433e36c8ea2e889d94750154f530a7
AUX gtk-doc-1.11-tests-fixes.patch 19569 RMD160 92060264998ece1e04abba7b2a381fb89815277e SHA1 101f1127f206d753ca1b5a562710ebe5272fb1f1 SHA256 24e408830b231d75702ee37d78de2652cfe6f8d18758d32e2b22c5f8ddf5aae8
+AUX gtk-doc-1.13-fixxref-compat.patch 2262 RMD160 a3700d7a6e6310dc152e5307b6a7ec6201c82268 SHA1 3a8af73749d6447f1bdfe0411ce91acae4fac1cc SHA256 7532a8ffdc6a7b814e90269a069433d949a6f5c34928e56ca5af5a2ec3ad237f
+AUX gtk-doc-1.13-scan-touch-module-overrides.patch 1041 RMD160 7f10f662b0b8d1a618491b5e5541f99870f50277 SHA1 29efa4a1f6d580ff933a6b50e8e4766c21906c17 SHA256 4ed735326d5038b8bb4f9a6a2c698eec2f974088277c5242b70e74c371ca6ff0
AUX gtk-doc-1.8-emacs-keybindings.patch 582 RMD160 b424c063ca1c2bb475fd7fa6bd66723230e395bb SHA1 73da3922797febe1c75336f291b72c0a1ad2e7f3 SHA256 e81eb1d06c489e19567277c9a14d84122025b0184e8773db2d421ab074fc8b38
DIST gtk-doc-1.10.tar.bz2 404379 RMD160 b7f7563ddec9ff140fc6fc6feea5b7f49cb1ff32 SHA1 861c977b011efd1bf91957d1a02fb792f39e5509 SHA256 5aeefd055c47d4e8b906e7f74b7769ebafbe3873d90cb9987b2ec503a9b558eb
DIST gtk-doc-1.11.tar.bz2 453459 RMD160 802c61e4e2072f5e91fe65d6f40587313b7bd23b SHA1 685823e269cc08fdef50828b0a68697222877b1c SHA256 92135cdf89c48a52baa8920f69d702b22d1a7556af410709d2172b90ec33ff23
DIST gtk-doc-1.13.tar.bz2 644297 RMD160 36da31b769aa0e9d35c246160489d4c59a6f0e67 SHA1 8c6b157e594072aaf598bc7e68562ec02e50b651 SHA256 25c7fbfcd7a08995c665abe304c4da4ee6d1ea34db880f21b46fa9edb268b706
EBUILD gtk-doc-1.10-r2.ebuild 2053 RMD160 3bf1fc4534a98bb2b2b6df51b27fce3ef8dd7104 SHA1 fe4b6a999b23238113c5795b6b6944a74cd0d217 SHA256 b34dc6c2404dc2a39e48127790d57ec1005683ce108d0b6184d93def985b93b4
EBUILD gtk-doc-1.11.ebuild 2240 RMD160 e6c66b5a225a379e6b3c50bd2adbabd70a3c2179 SHA1 034d114a5970846de4e77d2b769a876f8e2d6c06 SHA256 3e169d4ecd2151e5b7062be3760395a9f4a6f916ab6a877bb5db65f28a65aaa9
+EBUILD gtk-doc-1.13-r1.ebuild 2469 RMD160 98d7df3759918bf34d8369aeed8dbf230eb9ac9c SHA1 dd60b8ca2d214d4bbba75ea9639bf238098836f7 SHA256 8b79f9d132b09121d98c6ab0483a463a2a0ec4eb9ec3248395ade1ac350a69a9
EBUILD gtk-doc-1.13.ebuild 2048 RMD160 678eabc63c7f95c06e88196c5cce348d4f0179fc SHA1 bdd41a276a17a72e4083ac3bdf41ca309cfe4435 SHA256 be1afd4374c371096db869910f407de2cdd11375ce830483553b2ac37236a140
-MISC ChangeLog 15898 RMD160 ef337af01cd036475a6b61e19ff10425c6dc87b7 SHA1 4f6d8f77d36a3d3cc082ea3fff234b8d0500819b SHA256 f9121b56bdeeda1abb08be1eb7ff004641e4c88c05a354827e05a58d2483349a
+MISC ChangeLog 16307 RMD160 b1d123668e732fedfcf98c45bfc9b3ac4f881363 SHA1 d77ed33e58ffce2d744b12dc8569755333b48a03 SHA256 0898222494d4b08b3840bdfab02875f2490061c5659b56fd0d015403940d75f8
MISC metadata.xml 399 RMD160 c36a962162c4c335e5d5c3059b17709481e026c2 SHA1 2584444f5432843239cf7e1b0c4a04375eff1aee SHA256 ce4f066425793550cba43ceaac34ae7d582ff7d7e7ae085042b285479d1a4a57
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.14 (GNU/Linux)
-
-iEYEARECAAYFAkt4eJkACgkQ1fmVwcYIWAbppgCfQstngFXBArYRXkLQqf0L2GL/
-J28AoNKd+MEKad30M8EA8xo/EjGniBlB
-=WQpF
------END PGP SIGNATURE-----
diff --git a/dev-util/gtk-doc/files/gtk-doc-1.13-fixxref-compat.patch b/dev-util/gtk-doc/files/gtk-doc-1.13-fixxref-compat.patch
new file mode 100644
index 000000000000..6b5a09b66c77
--- /dev/null
+++ b/dev-util/gtk-doc/files/gtk-doc-1.13-fixxref-compat.patch
@@ -0,0 +1,80 @@
+From b39bb84dfb5f16c8b2977105bd5876b7b8d58a11 Mon Sep 17 00:00:00 2001
+From: Vincent Untz <vuntz@gnome.org>
+Date: Tue, 22 Dec 2009 11:54:31 +0000
+Subject: fixxref: make it work again without --module argument, Fixes #605211
+
+This restores a compatible behavior with previous versions of gtk-doc,
+which is required by many tarballs.
+---
+diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in
+index 8f166ef..5a703ad 100755
+--- a/gtkdoc-fixxref.in
++++ b/gtkdoc-fixxref.in
+@@ -168,36 +168,38 @@ foreach my $dir (@EXTRA_DIRS) {
+ }
+ }
+
+-open (INPUT, "$MODULE-sections.txt")
+- || die "Can't open $MODULE-sections.txt: $!";
+-my $subsection = "";
+-while (<INPUT>) {
+- if (m/^#/) {
+- next;
+-
+- } elsif (m/^<SECTION>/) {
+- $subsection = "";
+- } elsif (m/^<SUBSECTION\s*(.*)>/i) {
+- $subsection = $1;
+- } elsif (m/^<SUBSECTION>/) {
+- next;
+- } elsif (m/^<TITLE>(.*)<\/TITLE>/) {
+- next;
+- } elsif (m/^<FILE>(.*)<\/FILE>/) {
+- next;
+- } elsif (m/^<INCLUDE>(.*)<\/INCLUDE>/) {
+- next;
+- } elsif (m/^<\/SECTION>/) {
+- next;
+- } elsif (m/^(\S+)/) {
+- my $symbol=CreateValidSGMLID($1);
+-
+- if ($subsection eq "Standard" || $subsection eq "Private") {
+- $NoLinks{$symbol} = 1;
++if (defined($MODULE)) {
++ open (INPUT, "$MODULE-sections.txt")
++ || die "Can't open $MODULE-sections.txt: $!";
++ my $subsection = "";
++ while (<INPUT>) {
++ if (m/^#/) {
++ next;
++
++ } elsif (m/^<SECTION>/) {
++ $subsection = "";
++ } elsif (m/^<SUBSECTION\s*(.*)>/i) {
++ $subsection = $1;
++ } elsif (m/^<SUBSECTION>/) {
++ next;
++ } elsif (m/^<TITLE>(.*)<\/TITLE>/) {
++ next;
++ } elsif (m/^<FILE>(.*)<\/FILE>/) {
++ next;
++ } elsif (m/^<INCLUDE>(.*)<\/INCLUDE>/) {
++ next;
++ } elsif (m/^<\/SECTION>/) {
++ next;
++ } elsif (m/^(\S+)/) {
++ my $symbol=CreateValidSGMLID($1);
++
++ if ($subsection eq "Standard" || $subsection eq "Private") {
++ $NoLinks{$symbol} = 1;
++ }
+ }
+ }
++ close (INPUT);
+ }
+-close (INPUT);
+
+ &FixCrossReferences ($MODULE_DIR);
+
+--
+cgit v0.8.3.1
diff --git a/dev-util/gtk-doc/files/gtk-doc-1.13-scan-touch-module-overrides.patch b/dev-util/gtk-doc/files/gtk-doc-1.13-scan-touch-module-overrides.patch
new file mode 100644
index 000000000000..ded24161d3bf
--- /dev/null
+++ b/dev-util/gtk-doc/files/gtk-doc-1.13-scan-touch-module-overrides.patch
@@ -0,0 +1,33 @@
+From d1a042fbd75b7f8d44293fbee01e783be79d884c Mon Sep 17 00:00:00 2001
+From: Nicola Fontana <ntd@entidi.it>
+Date: Mon, 03 Aug 2009 13:32:36 +0000
+Subject: gtkdoc-scan: touch MODULE-overrides.txt when missing. Fixes #590625
+
+gtk-doc.make puts $(DOC_MODULE)-overrides.txt in EXTRA_DIST, so this
+file must exist to be able to "make dist".
+---
+diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
+index ece8d99..c986f36 100755
+--- a/gtkdoc-scan.in
++++ b/gtkdoc-scan.in
+@@ -185,12 +185,12 @@ if ($REBUILD_SECTIONS || ! -e $sections_file) {
+ `cp $old_decl_list $sections_file`;
+ }
+
+-# If there is no MODULE-overrides.txt file we create an empty one.
+-# FIXME: why?
+-#my $overrides_file = "${OUTPUT_DIR}/$MODULE-overrides.txt";
+-#if (! -e $overrides_file) {
+-# `touch $overrides_file`;
+-#}
++# If there is no MODULE-overrides.txt file we create an empty one
++# because EXTRA_DIST in gtk-doc.make requires it.
++my $overrides_file = "${OUTPUT_DIR}/$MODULE-overrides.txt";
++if (! -e $overrides_file) {
++ `touch $overrides_file`;
++}
+
+
+
+--
+cgit v0.8.3.1
diff --git a/dev-util/gtk-doc/gtk-doc-1.13-r1.ebuild b/dev-util/gtk-doc/gtk-doc-1.13-r1.ebuild
new file mode 100644
index 000000000000..028683bd1a1b
--- /dev/null
+++ b/dev-util/gtk-doc/gtk-doc-1.13-r1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gtk-doc/gtk-doc-1.13-r1.ebuild,v 1.1 2010/02/16 20:06:54 mrpouet Exp $
+
+EAPI="2"
+
+inherit eutils elisp-common gnome2
+
+DESCRIPTION="GTK+ Documentation Generator"
+HOMEPAGE="http://www.gtk.org/gtk-doc/"
+
+LICENSE="GPL-2 FDL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="debug doc emacs test"
+
+RDEPEND=">=dev-libs/glib-2.6
+ >=dev-lang/perl-5.6
+ >=app-text/openjade-1.3.1
+ dev-libs/libxslt
+ >=dev-libs/libxml2-2.3.6
+ ~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? ( virtual/emacs )"
+
+DEPEND="${RDEPEND}
+ ~dev-util/gtk-doc-am-${PV}
+ >=dev-util/pkgconfig-0.19
+ >=app-text/scrollkeeper-0.3.14
+ >=app-text/gnome-doc-utils-0.3.2
+ test? ( app-text/scrollkeeper-dtd )"
+
+SITEFILE=61${PN}-gentoo.el
+
+DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO"
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Remove global Emacs keybindings.
+ epatch "${FILESDIR}/${PN}-1.8-emacs-keybindings.patch"
+
+ # gtk-doc.make puts $(DOC_MODULE)-overrides.txt in EXTRA_DIST,
+ # so this file must exist to be able to "make dist".
+ # fix bug #305191, upstream ##590625.
+ epatch "${FILESDIR}/${P}-scan-touch-module-overrides.patch"
+ # This restores a compatible behavior with previous versions of gtk-doc,
+ # which is required by many tarballs, fix bug #305191, upstream #605211
+ epatch "${FILESDIR}/${P}-fixxref-compat.patch"
+}
+
+src_compile() {
+ gnome2_src_compile
+
+ use emacs && elisp-compile tools/gtk-doc.el
+}
+
+src_install() {
+ gnome2_src_install
+
+ # Don't install those files, they are in gtk-doc-am now
+ rm "${D}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4"
+ rm "${D}"/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}"
+ fi
+}
+
+pkg_postinst() {
+ if use emacs; then
+ elisp-site-regen
+ elog "gtk-doc does no longer define global key bindings for Emacs."
+ elog "You may set your own key bindings for \"gtk-doc-insert\" and"
+ elog "\"gtk-doc-insert-section\" in your ~/.emacs file."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}