pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/gtk-doc Add two patches from upstream to fix ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9d1e6845f7c
branches:  trunk
changeset: 569989:a9d1e6845f7c
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jan 22 14:21:32 2010 +0000

description:
Add two patches from upstream to fix --module and 'make dist' problems.
Bump PKGREVISION.

diffstat:

 textproc/gtk-doc/Makefile         |   3 +-
 textproc/gtk-doc/distinfo         |   4 +-
 textproc/gtk-doc/patches/patch-aa |  78 +++++++++++++++++++++++++++++++++++++++
 textproc/gtk-doc/patches/patch-ab |  31 +++++++++++++++
 4 files changed, 114 insertions(+), 2 deletions(-)

diffs (142 lines):

diff -r 8f619127f4b2 -r a9d1e6845f7c textproc/gtk-doc/Makefile
--- a/textproc/gtk-doc/Makefile Fri Jan 22 13:56:45 2010 +0000
+++ b/textproc/gtk-doc/Makefile Fri Jan 22 14:21:32 2010 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.38 2010/01/20 11:12:01 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2010/01/22 14:21:32 wiz Exp $
 #
 
 DISTNAME=      gtk-doc-1.13
+PKGREVISION=   1
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/gtk-doc/1.13/}
 EXTRACT_SUFX=  .tar.bz2
diff -r 8f619127f4b2 -r a9d1e6845f7c textproc/gtk-doc/distinfo
--- a/textproc/gtk-doc/distinfo Fri Jan 22 13:56:45 2010 +0000
+++ b/textproc/gtk-doc/distinfo Fri Jan 22 14:21:32 2010 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.16 2010/01/20 11:12:01 wiz Exp $
+$NetBSD: distinfo,v 1.17 2010/01/22 14:21:32 wiz Exp $
 
 SHA1 (gtk-doc-1.13.tar.bz2) = 8c6b157e594072aaf598bc7e68562ec02e50b651
 RMD160 (gtk-doc-1.13.tar.bz2) = 36da31b769aa0e9d35c246160489d4c59a6f0e67
 Size (gtk-doc-1.13.tar.bz2) = 644297 bytes
+SHA1 (patch-aa) = 35a8774e7c670ead15a5a88341c37974378bda77
+SHA1 (patch-ab) = 1e0304443e6ae11df39d301217a83ce741da944e
diff -r 8f619127f4b2 -r a9d1e6845f7c textproc/gtk-doc/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/gtk-doc/patches/patch-aa Fri Jan 22 14:21:32 2010 +0000
@@ -0,0 +1,78 @@
+$NetBSD: patch-aa,v 1.1 2010/01/22 14:21:32 wiz Exp $
+
+From b39bb84dfb5f16c8b2977105bd5876b7b8d58a11 Mon Sep 17 00:00:00 2001
+From: Vincent Untz <vuntz%gnome.org@localhost>
+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.
+
+--- gtkdoc-fixxref.in.orig     2009-12-17 19:36:51.000000000 +0000
++++ 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);
+ 
diff -r 8f619127f4b2 -r a9d1e6845f7c textproc/gtk-doc/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/gtk-doc/patches/patch-ab Fri Jan 22 14:21:32 2010 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1 2010/01/22 14:21:32 wiz Exp $
+
+From d1a042fbd75b7f8d44293fbee01e783be79d884c Mon Sep 17 00:00:00 2001
+From: Nicola Fontana <ntd%entidi.it@localhost>
+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".
+
+--- gtkdoc-scan.in.orig        2009-11-25 19:18:11.000000000 +0000
++++ gtkdoc-scan.in
+@@ -180,12 +180,12 @@ if ($REBUILD_SECTIONS || ! -e $sections_
+   `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`;
++}
+ 
+ 
+ 



Home | Main Index | Thread Index | Old Index