Subject: pkgsrc/www/tidy & shared lib
To: None <asmodai@in-nomine.org>
From: Hubert Feyrer <hubertf@NetBSD.org>
List: tech-pkg
Date: 12/13/2005 17:28:05
Hi,

I'm writing you as the maintainer of pkgsrc/www/tidy. Someone complained 
that the package doesn't install a shared library and I did some digging.
Apparently there's everything in place to actually build a shared library 
(w/ libtool), it just has to be used. Only drawback is that it doesn't 
build manpages etc. any more, what the 'doc' target does.

The patch below gets the shared library building straight, I couldn't 
figure out getting the docs (manpage tidy.1, and some other file) built.
Maybe you want to have a look at this, and get back to me when you've 
figured this out? That would be great, thanks!


  - Hubert

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/tidy/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- Makefile	5 Dec 2005 20:51:14 -0000	1.21
+++ Makefile	13 Dec 2005 16:26:17 -0000
@@ -17,9 +17,9 @@
  BUILD_DEPENDS+=	libxslt>=1.1.0:../../textproc/libxslt

  WRKSRC=		${WRKDIR}/tidy
-NO_CONFIGURE=	yes
-USE_TOOLS+=	gmake
-BUILD_DIRS=	${WRKSRC}/build/gmake
+GNU_CONFIGURE=	yes
+USE_TOOLS+=	gmake automake autoconf
+BUILD_DIRS=	${WRKSRC}

  OPSYSVARS+=	MAKEFLAGS
  MAKEFLAGS.Darwin+=	RANLIB=ranlib
@@ -28,7 +28,10 @@
  		faq.html license.html pending.html release-notes.html tidy.gif
  HTML_DOCDIR=	${PREFIX}/share/doc/html/tidy

-post-build:
+pre-configure:
+	cd ${BUILD_DIRS} && ${SH} build/gnuauto/setup.sh 
+
+HFpost-build:
  	cd ${BUILD_DIRS} && ${GMAKE} doc

  post-install: