diff options
author | 2010-02-16 20:06:54 +0000 | |
---|---|---|
committer | 2010-02-16 20:06:54 +0000 | |
commit | f206338e38ae551264b47e2ccabf4f1e2575b3ea (patch) | |
tree | 876c20565ed04f5f6648d7009c2f658db8339275 /dev-util/gtk-doc/files | |
parent | Remove www-client/opera mask now that ppc support is gone. (diff) | |
download | historical-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/gtk-doc/files')
-rw-r--r-- | dev-util/gtk-doc/files/gtk-doc-1.13-fixxref-compat.patch | 80 | ||||
-rw-r--r-- | dev-util/gtk-doc/files/gtk-doc-1.13-scan-touch-module-overrides.patch | 33 |
2 files changed, 113 insertions, 0 deletions
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 |