gnucash-docs master: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Thu Oct 29 13:31:24 EDT 2015


Updated	 via  https://github.com/Gnucash/gnucash-docs/commit/10de2a23 (commit)
	 via  https://github.com/Gnucash/gnucash-docs/commit/25a6c697 (commit)
	from  https://github.com/Gnucash/gnucash-docs/commit/91e14b60 (commit)



commit 10de2a232bd6c6d6ca46da6eae5a132d7b815032
Merge: 91e14b6 25a6c69
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Oct 29 10:27:06 2015 -0700

    Merge branch 'maint'


commit 25a6c6970a3e06eff67d4570d581b41e85d3bae6
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Oct 27 18:04:13 2015 -0700

    Bug 757174 - FTBFS: /tmp/buildd/gnucash-docs-2.6.7/mincho.xml
    
    Don't emit metrics-url for fop version 2+.

diff --git a/configure.ac b/configure.ac
index 33583b8..9cb060a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,6 +63,7 @@ else
       FOP_TTFREADER="java -cp /usr/share/java/fop.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar org.apache.fop.fonts.apps.TTFReader"
     fi
   fi
+  fop_version=`$FOP -version | cut -f 3 -d ' ' | cut -c 1`
 fi
 
 dnl
@@ -138,20 +139,28 @@ dnl Japanese fonts search path (Ubuntu, RedHat, openSUSE:local, Fedora)
       unset font
    fi
 fi
-echo Mincho Metric: $japanese_mincho_metric
-if test "x$japanese_mincho_metric" != "x"; then
-   AC_CONFIG_COMMANDS([mincho_metric],
-		      [cp $ac_top_srcdir$mincho_metric guide/ja],
-		      [mincho_metric=$japanese_mincho_metric])
-fi
-echo Gothic Metric: $japanese_gothic_metric
-if test "x$japanese_gothic_metric" != "x"; then
-   AC_CONFIG_COMMANDS([gothic_metric],
-		      [cp $ac_top_srcdir$gothic_metric guide/ja],
-		      [gothic_metric=$japanese_gothic_metric])
+JAPANESE_MINCHO_METRIC=
+JAPANESE_GOTHIC_METRIC=
+if [[ $fop_version -lt 2 ]]; then
+   echo Mincho Metric: $japanese_mincho_metric
+   	if test "x$japanese_mincho_metric" != "x"; then
+	   AC_CONFIG_COMMANDS([mincho_metric],
+			      [cp $ac_top_srcdir$mincho_metric guide/ja],
+			      [mincho_metric=$japanese_mincho_metric])
+	fi
+	echo Gothic Metric: $japanese_gothic_metric
+	if test "x$japanese_gothic_metric" != "x"; then
+	AC_CONFIG_COMMANDS([gothic_metric],
+			   [cp $ac_top_srcdir$gothic_metric guide/ja],
+		      	   [gothic_metric=$japanese_gothic_metric])
+	fi
+	JAPANESE_MINCHO_METRIC='metrics-url="mincho.xml"'
+	JAPANESE_GOTHIC_METRIC='metrics-url="gothic.xml"'
 fi
+AC_SUBST(JAPANESE_MINCHO_METRIC)
 AC_SUBST(JAPANESE_MINCHO_TTF)
 AC_SUBST(JAPANESE_MINCHO_TTF_ABS)
+AC_SUBST(JAPANESE_GOTHIC_METRIC)
 AC_SUBST(JAPANESE_GOTHIC_TTF)
 AC_SUBST(JAPANESE_GOTHIC_TTF_ABS)
 
diff --git a/guide/ja/fop.xconf.in b/guide/ja/fop.xconf.in
index 53aabb1..2752ee1 100644
--- a/guide/ja/fop.xconf.in
+++ b/guide/ja/fop.xconf.in
@@ -42,10 +42,10 @@
                           | 500 | 600 | 700 | 800 | 900
         (normal = 400, bold = 700)
         -->
-        <font metrics-url="mincho.xml" kerning="yes" embed-url="@JAPANESE_MINCHO_TTF@">
+        <font @JAPANESE_MINCHO_METRIC@ kerning="yes" embed-url="@JAPANESE_MINCHO_TTF@">
           <font-triplet name="serif" style="normal" weight="normal"/>
         </font>
-        <font metrics-url="gothic.xml" kerning="yes" embed-url="@JAPANESE_GOTHIC_TTF@">
+        <font @JAPANESE_GOTHIC_METRIC@ kerning="yes" embed-url="@JAPANESE_GOTHIC_TTF@">
           <font-triplet name="serif" style="normal" weight="bold" />
           <font-triplet name="sans-serif" style="normal" weight="normal"/>
           <font-triplet name="sans-serif" style="normal" weight="bold" />



Summary of changes:
 configure.ac          | 31 ++++++++++++++++++++-----------
 guide/ja/fop.xconf.in |  4 ++--
 2 files changed, 22 insertions(+), 13 deletions(-)



More information about the gnucash-changes mailing list