Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2021 08:05:56 GMT
From:      Eugene Grosbein <eugen@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: db8499a9f887 - main - textproc/sgmlformat: unbreak for external groff
Message-ID:  <202110010805.19185uMX097436@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by eugen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=db8499a9f8877367b68db78a02c8bf9bf312d572

commit db8499a9f8877367b68db78a02c8bf9bf312d572
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2021-10-01 08:01:43 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2021-10-01 08:05:46 +0000

    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)
---
 textproc/sgmlformat/Makefile | 8 ++++++--
 1 file 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110010805.19185uMX097436>