Subject: devel/popt does not format its man page using tbl
To: None <tech-pkg@netbsd.org>
From: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
List: tech-pkg
Date: 03/13/2005 03:40:54
Hi,

the popt.3 man page from the devel/popt package is not displayed correctly
without being formatted with tbl(1). Since the package's configure/Makefile
do not seem to handle it, I added this common fix:

Index: Makefile
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/devel/popt/Makefile,v
retrieving revision 1.28
diff -u -p -r1.28 Makefile
--- Makefile	3 Oct 2004 00:13:32 -0000	1.28
+++ Makefile	13 Mar 2005 02:30:51 -0000
@@ -23,6 +23,12 @@ USE_PKGLOCALEDIR=	yes
 GNU_CONFIGURE=		yes
 USE_GNU_TOOLS+=		make
 USE_LIBTOOL=		yes
+USE_TBL=		yes
+
+post-build:
+	cd ${WRKSRC};							\
+	${TBL} popt.3 > popt.3.tmp;					\
+	${MV} -f popt.3.tmp popt.3;
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Is this common enough to warrant generalisation along the lines of
TBL_MANPAGES=popt.3? Or did something like this escape me?

cu Jo

-- 
La perfection est atteinte non quand il ne reste rien à ajouter, mais quand
il ne reste rien à enlever.  (Antoine de Saint-Exupéry)