gbranden pushed a commit to branch master
in repository groff.
commit c1c2f46d7da134ce822eafee43f8b8fec2e28213
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jan 25 23:31:25 2026 -0600
[doc]: Support less than "full service" gropdf.
...when building.
* doc/doc.am: Abstract `-P-W` option to "gropdf" into a new macro,
`pdfmomoption`, populating it only if, at configuration time, both
`HAVE_URW_FONTS` and `USE_GROPDF` were enabled.
---
ChangeLog | 6 ++++++
doc/doc.am | 11 ++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 2cae3b61e..b93f4e2d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-01-25 G. Branden Robinson <[email protected]>
+
+ * doc/doc.am: Abstract `-P-W` option to "gropdf" into a new
+ macro, `pdfmomoption`, populating it only if, at configuration
+ time, both `HAVE_URW_FONTS` and `USE_GROPDF` were enabled.
+
2026-01-25 G. Branden Robinson <[email protected]>
* font/devpdf/util/BuildFoundries.pl (Warn): Don't set the exit
diff --git a/doc/doc.am b/doc/doc.am
index 99d32873c..117e1ede0 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -41,11 +41,20 @@ DOC_GROFF = \
GROFF_BIN_PATH="$(GROFF_BIN_PATH)" \
$(GROFFBIN) $(MFLAG) $(FFLAG) -ww -b
+# There's no point crashing the build due to fonts being unavailable for
+# embedding (or selection, even, when their metrics are missing) if we
+# knew at configuration time that the venture wouldn't come off.
+if HAVE_URW_FONTS
+if USE_GROPDF
+pdfmomoption = -P-W
+endif
+endif
+
DOC_PDFMOM = \
GROFF_COMMAND=test-groff \
GROFF_COMMAND_PREFIX= \
GROFF_BIN_PATH="$(GROFF_BIN_PATH)" \
- $(PDFMOMBIN) $(MFLAG) $(FFLAG) -ww -b -P-W --roff
+ $(PDFMOMBIN) $(MFLAG) $(FFLAG) -ww -b $(pdfmomoption) --roff
# This image file is used by several documents in the groff source tree.
DOC_GNU_EPS = doc/gnu.eps
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit