summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-12 03:21:05 +0000
committerjlam <jlam@pkgsrc.org>2008-03-12 03:21:05 +0000
commit2127487c5f96500b0e59a18bb7866d1924cfa5d3 (patch)
tree1e85b376aa2a06f60d29adb6e1300ae4b183bca1 /devel
parentd51a3ff44a828cd407c8506299ff3ab6717ca7cb (diff)
downloadpkgsrc-2127487c5f96500b0e59a18bb7866d1924cfa5d3.tar.gz
Support user-destdir installation.
Diffstat (limited to 'devel')
-rw-r--r--devel/rake/Makefile18
1 files changed, 11 insertions, 7 deletions
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"