summaryrefslogtreecommitdiff
path: root/textproc/groff/files/patch-configure
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2019-10-02 08:46:19 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2019-10-02 08:46:19 +0000
commitb09eabcaa7328f40ef57a95441636e27a5b8f74b (patch)
tree095fb3d376082a95a46d3776821fb56caf22a5e9 /textproc/groff/files/patch-configure
parentx11-clocks/xfce4-timer-out-plugin: fix on GCC architectures (diff)
groff: remove X11 option and dependency
Now that groff is required for manpages that are not supported by mandoc the default dependency on X11 has become a big concern for many people. From now the entire X11 option has been removed as it is only needed for legacy part of groff that have little end user value. The other part that was dragging in all the X11 dependencies was the ghostscript dependency which is needed for 2 cases: 1. find the path of the urw fonts which is needed for pdf generation. the configure script has been patched to stop using ghostscript to find that path, but directly use the one provided. 2. the html driver which calls at runtime the gs binary along with some binaries provided by the netpbm package. Given how little use it is, add a message to tell the users to manually install ghostscript and netpbm as optional dependency if they do need to use groff -Thtml. Requested by: many
Notes
Notes: svn path=/head/; revision=513559
Diffstat (limited to 'textproc/groff/files/patch-configure')
-rw-r--r--textproc/groff/files/patch-configure28
1 files changed, 28 insertions, 0 deletions
diff --git a/textproc/groff/files/patch-configure b/textproc/groff/files/patch-configure
new file mode 100644
index 000000000000..708adca93835
--- /dev/null
+++ b/textproc/groff/files/patch-configure
@@ -0,0 +1,28 @@
+--- configure.orig 2018-12-23 14:34:25 UTC
++++ configure
+@@ -24750,11 +24750,11 @@ $as_echo_n "checking whether URW fonts in pfb format a
+
+
+ groff_have_urw_fonts=no
+- if test "$AWK" = "missing" -o "$GHOSTSCRIPT" = "missing"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: awk and gs are required, can't look for URW fonts" >&5
+-$as_echo "$as_me: WARNING: awk and gs are required, can't look for URW fonts" >&2;}
+- else
+- _list_paths=`$GHOSTSCRIPT -h | $AWK 'BEGIN { found = 0 } /Search path:/ { found = 1 } /^ *\// { print $'0' }'| tr : ' '`
++ # if test "$AWK" = "missing" -o "$GHOSTSCRIPT" = "missing"; then
++ # { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: awk and gs are required, can't look for URW fonts" >&5
++#$as_echo "$as_me: WARNING: awk and gs are required, can't look for URW fonts" >&2;}
++ # else
++# _list_paths=`$GHOSTSCRIPT -h | $AWK 'BEGIN { found = 0 } /Search path:/ { found = 1 } /^ *\// { print $'0' }'| tr : ' '`
+ _list_paths="$_list_paths /usr/share/fonts/type1/gsfonts/ \
+ /opt/local/share/fonts/urw-fonts/"
+ if test -n "$urwfontsdir"; then
+@@ -24768,7 +24768,7 @@ $as_echo "found in $k" >&6; }
+ break
+ fi
+ done
+- fi
++ # fi
+ if test $groff_have_urw_fonts = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ $as_echo "no" >&6; }