From 2127487c5f96500b0e59a18bb7866d1924cfa5d3 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 12 Mar 2008 03:21:05 +0000 Subject: Support user-destdir installation. --- devel/rake/Makefile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'devel') diff --git a/devel/rake/Makefile b/devel/rake/Makefile index 74dbdab422a..1fe703d60ea 100644 --- a/devel/rake/Makefile +++ b/devel/rake/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2008/01/17 22:05:48 minskim Exp $ +# $NetBSD: Makefile,v 1.8 2008/03/12 03:21:05 jlam Exp $ DISTNAME= rake-0.8.1 CATEGORIES= devel ruby @@ -9,6 +9,8 @@ MAINTAINER= minskim@NetBSD.org HOMEPAGE= http://rake.rubyforge.org/ COMMENT= Ruby Make +PKG_DESTDIR_SUPPORT= user-destdir + NO_BUILD= yes USE_RUBY_INSTALL= yes USE_TOOLS+= gunzip @@ -25,6 +27,8 @@ SUBST_STAGE.paths= pre-configure SUBST_FILES.paths= doc/rake.1 SUBST_SED.paths= -e 's,/usr/share/doc/,${RUBY_DOCDIR}/,g' +INSTALLATION_DIRS= ${PKGMANDIR}/man1 + .include "../../lang/ruby/modules.mk" post-extract: @@ -33,17 +37,17 @@ post-extract: fi post-install: - ${INSTALL_MAN} ${WRKSRC}/doc/rake.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_DATA_DIR} ${DOCDIR}/release_notes + ${INSTALL_MAN} ${WRKSRC}/doc/rake.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}/release_notes .for f in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR} .endfor for f in ${WRKSRC}/doc/release_notes/*; do \ - ${INSTALL_DATA} $$f ${DOCDIR}/release_notes; \ + ${INSTALL_DATA} $$f ${DESTDIR}${DOCDIR}/release_notes; \ done - ${INSTALL_DATA_DIR} ${EXAMPLESDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLESDIR} .for f in ${EXAMPLES} - ${INSTALL_DATA} ${WRKSRC}/doc/example/${f} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/example/${f} ${DESTDIR}${EXAMPLESDIR} .endfor .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3