Skip to content

Commit

Permalink
Bug 757174 - FTBFS: /tmp/buildd/gnucash-docs-2.6.7/mincho.xml
Browse files Browse the repository at this point in the history
Don't emit metrics-url for fop version 2+.
  • Loading branch information
jralls committed Oct 29, 2015
1 parent 46feff0 commit 25a6c69
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
31 changes: 20 additions & 11 deletions configure.ac
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions guide/ja/fop.xconf.in
Expand Up @@ -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" />
Expand Down

0 comments on commit 25a6c69

Please sign in to comment.