aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2021-10-01 08:01:43 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2021-10-01 08:05:46 +0000
commitdb8499a9f8877367b68db78a02c8bf9bf312d572 (patch)
tree477ccce2bba2544c54e118efc4e3f576aefec659
parentb4c3fa014d77b45321623b9f816c206d10f3f70f (diff)
downloadports-db8499a9f8877367b68db78a02c8bf9bf312d572.tar.gz
ports-db8499a9f8877367b68db78a02c8bf9bf312d572.zip
textproc/sgmlformat: unbreak for external groff
The GNU roff toolchain has been removed from base but sgmlformat relied on "groff" command to be in PATH and installs three .ts files with references to /usr/share/tmac that does not exist in modern FreeBSD versions. Add textproc/groff to RUN_DEPENDS and fix broken references, so sgmlformat is functional again. Approved by: kuriyama (maintainer timeout, 3 weeks)
-rw-r--r--textproc/sgmlformat/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/textproc/sgmlformat/Makefile b/textproc/sgmlformat/Makefile
index 715670e51775..0875ff9e1c3f 100644
--- a/textproc/sgmlformat/Makefile
+++ b/textproc/sgmlformat/Makefile
@@ -2,7 +2,7 @@
PORTNAME= sgmlformat
PORTVERSION= 1.7
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= textproc print
MASTER_SITES= LOCAL/kuriyama
@@ -28,12 +28,16 @@ RUN_DEPENDS= openjade>0:textproc/openjade
RUN_DEPENDS= nsgmls:textproc/jade
.endif
RUN_DEPENDS+= linuxdoc>0:textproc/linuxdoc \
- docbook-sgml>0:textproc/docbook-sgml
+ docbook-sgml>0:textproc/docbook-sgml \
+ groff:textproc/groff
.if defined(WITH_OPENJADE)
post-patch:
@${REINPLACE_CMD} -e 's,nsgmls,onsgmls,g' ${WRKSRC}/sgmlfmt/sgmlfmt.pl
@${REINPLACE_CMD} -e 's,nsgmls,onsgmls,g' ${WRKSRC}/instant/traninit.c
+ @( cd ${WRKSRC}/transpec && \
+ ${REINPLACE_CMD} 's,/usr/share/tmac,${PREFIX}/share/groff/current/tmac,' \
+ docbook-roff.ts iso12083article-roff.ts linuxdoc-roff.ts )
.endif
post-build: