pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/rake Support user-destdir installation.
details: https://anonhg.NetBSD.org/pkgsrc/rev/f26467568305
branches: trunk
changeset: 539726:f26467568305
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Mar 12 03:21:05 2008 +0000
description:
Support user-destdir installation.
diffstat:
devel/rake/Makefile | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diffs (51 lines):
diff -r b5c80cc37184 -r f26467568305 devel/rake/Makefile
--- a/devel/rake/Makefile Wed Mar 12 03:18:47 2008 +0000
+++ b/devel/rake/Makefile Wed Mar 12 03:21:05 2008 +0000
@@ -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 @@
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_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 @@
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"
Home |
Main Index |
Thread Index |
Old Index