summaryrefslogtreecommitdiff
path: root/www/viewvc
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-07-07 18:46:17 +0000
committerjoerg <joerg@pkgsrc.org>2009-07-07 18:46:17 +0000
commit9836430b32bc851d99da7086f930680ce8770ecc (patch)
tree668864aaf20ddd0346bc09080bd6cf26252724c3 /www/viewvc
parent76875b7d9c5b1896449707c4025896f690af1362 (diff)
downloadpkgsrc-9836430b32bc851d99da7086f930680ce8770ecc.tar.gz
user-destdir support
Diffstat (limited to 'www/viewvc')
-rw-r--r--www/viewvc/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/www/viewvc/Makefile b/www/viewvc/Makefile
index c076b1fa1ce..c6b53634305 100644
--- a/www/viewvc/Makefile
+++ b/www/viewvc/Makefile
@@ -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 @@ MAINTAINER= adrianp@NetBSD.org
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 @@ SUBST_SED.conf+= -e "s|@RCS_PREFIX@|/usr|g"
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"