From 2b5a438e0c205a5f118b456db7438e35dab50e09 Mon Sep 17 00:00:00 2001 From: Bertrand Garrigues Date: Mon, 8 May 2017 21:46:03 +0200 Subject: Package `ghostscript' 9.21 renamed some fonts installed in `/usr/share/ghostscript/9.21/Resource/Font', e.g. URWGothicL-Demi renamed to URWGothic-Demi, and droped the installation of URW fonts in `/usr/share/fonts/type1/gsfonts/', breaking font generation in `font/devpdf/util/BuildFoundries.pl'. * m4/groff.m4 (GROFF_URW_FONTS_PATH): New option `--with-urw-fonts-dir' to pass a custom path to URW fonts. (GROFF_URW_FONTS): search the presence of URW fonts by checking if file `a010013l.pfb' exists in the paths given by `gs -h', in the default paths used in `Foundry.in' and in the path given with option `--with-urw-fonts-dir'. (GROFF_URW_FONTS_CHECK): print a warning at the end of the configuration phase if no URW fonts were found. * configure.ac: call new macros `GROFF_URW_FONTS_PATH', `GROFF_URW_FONTS' and `GROFF_URW_FONTS_CHECK'. * font/devpdf/Foundry.in: add new basic fonts names and pass custom URW fonts path `urwfontsdir'. * font/devpdf/devpdf.am: subsitute `urwfontsdir' in `Foundry' generation. Fixes https://savannah.gnu.org/bugs/?50786 --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 981be0189..05585159a 100644 --- a/configure.ac +++ b/configure.ac @@ -161,6 +161,9 @@ GROFF_TRADITIONAL_CPP # checks for operating system services GROFF_WCOREFLAG +# URW fonts extra dir +GROFF_URW_FONTS_PATH + # other random stuff GROFF_BROKEN_SPOOLER_FLAGS GROFF_PAGE @@ -178,6 +181,10 @@ GROFF_BASH gl_GLIBC21 gl_LOCALCHARSET +# checks for presence of URW fonts (requires ghostscript, which is +# checked in GROFF_HTML_PROGRAMS +GROFF_URW_FONTS + AM_CONDITIONAL([BUILD_WINSCRIPTS], [test -n "$make_winscripts"]) # If X11 is not available, don't build: @@ -229,7 +236,10 @@ else echo "\ Doc build : ${doc} " fi +echo "\ + URW fonts for pdf : $groff_have_urw_fonts" echo "\ ----------------------------------------------------------------------" GROFF_APPRESDIR_CHECK +GROFF_URW_FONTS_CHECK -- cgit v1.2.1