Tue Jul 7 18:46:37 2009 UTC ()
user-destdir support


(joerg)
diff -r1.8 -r1.9 pkgsrc/www/viewvc/Makefile

cvs diff -r1.8 -r1.9 pkgsrc/www/viewvc/Makefile (expand / switch to context diff)
--- pkgsrc/www/viewvc/Makefile 2009/02/09 22:56:28 1.8
+++ pkgsrc/www/viewvc/Makefile 2009/07/07 18:46:37 1.9
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2009/02/09 22:56:28 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2009/07/07 18:46:37 joerg Exp $
 #
 
 DISTNAME=	viewvc-1.0.7
@@ -10,6 +10,8 @@
 HOMEPAGE=	http://www.viewvc.org/
 COMMENT=	Viewing the content of CVS/SVN repositories with a Webbrowser
 
+PKG_DESTDIR_SUPPORT=	user-destdir
+
 PYTHON_PATCH_SCRIPTS=	viewvc-install bin/* bin/cgi/*.cgi lib/*.py
 
 .if !exists(/usr/bin/rlog)
@@ -47,16 +49,17 @@
 
 CHECK_PORTABILITY_SKIP=	tools/make-release
 
+INSTALLATION_DIRS=	share/examples/viewvc
+
 do-install:
 	(cd ${WRKSRC} && \
 		${PYTHONBIN} \
-		viewvc-install --prefix=${PREFIX}/${VIEWVCDIR} --destdir="")
+		viewvc-install --prefix=${PREFIX}/${VIEWVCDIR} --destdir=${DESTDIR})
 
-	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/viewvc
 	${INSTALL_DATA} ${WRKSRC}/viewvc.conf.dist \
-		${PREFIX}/share/examples/viewvc/viewvc.conf
+		${DESTDIR}${PREFIX}/share/examples/viewvc/viewvc.conf
 	${INSTALL_DATA} ${WRKSRC}/cvsgraph.conf.dist \
-		${PREFIX}/share/examples/viewvc/cvsgraph.conf
+		${DESTDIR}${PREFIX}/share/examples/viewvc/cvsgraph.conf
 
 .include "../../lang/python/application.mk"
 .include "../../mk/bsd.pkg.mk"