update Fri Jun 11 00:37:00 PDT 2010
[pkgsrc.git] / textproc / gtk-doc / patches / patch-ab
1 $NetBSD: patch-ab,v 1.1 2010/01/22 14:21:32 wiz Exp $
2
3 From d1a042fbd75b7f8d44293fbee01e783be79d884c Mon Sep 17 00:00:00 2001
4 From: Nicola Fontana <ntd@entidi.it>
5 Date: Mon, 03 Aug 2009 13:32:36 +0000
6 Subject: gtkdoc-scan: touch MODULE-overrides.txt when missing. Fixes #590625
7
8 gtk-doc.make puts $(DOC_MODULE)-overrides.txt in EXTRA_DIST, so this
9 file must exist to be able to "make dist".
10
11 --- gtkdoc-scan.in.orig 2009-11-25 19:18:11.000000000 +0000
12 +++ gtkdoc-scan.in
13 @@ -180,12 +180,12 @@ if ($REBUILD_SECTIONS || ! -e $sections_
14    `cp $old_decl_list $sections_file`;
15  }
16  
17 -# If there is no MODULE-overrides.txt file we create an empty one.
18 -# FIXME: why?
19 -#my $overrides_file = "${OUTPUT_DIR}/$MODULE-overrides.txt";
20 -#if (! -e $overrides_file) {
21 -#  `touch $overrides_file`;
22 -#}
23 +# If there is no MODULE-overrides.txt file we create an empty one
24 +# because EXTRA_DIST in gtk-doc.make requires it.
25 +my $overrides_file = "${OUTPUT_DIR}/$MODULE-overrides.txt";
26 +if (! -e $overrides_file) {
27 +  `touch $overrides_file`;
28 +}
29  
30  
31