diff options
author | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
commit | 7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/ruby-activesupport/Makefile | |
parent | e629efdae96bb93a089e74409a36149a86e10f81 (diff) | |
download | pkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/ruby-activesupport/Makefile')
-rw-r--r-- | devel/ruby-activesupport/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/devel/ruby-activesupport/Makefile b/devel/ruby-activesupport/Makefile index 06fe30d0d1f..2f780a684c7 100644 --- a/devel/ruby-activesupport/Makefile +++ b/devel/ruby-activesupport/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2008/02/09 06:18:27 minskim Exp $ +# $NetBSD: Makefile,v 1.14 2008/03/03 17:45:37 jlam Exp $ DISTNAME= activesupport-2.0.2 PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME} @@ -10,6 +10,8 @@ MAINTAINER= minskim@NetBSD.org HOMEPAGE= http://rubyforge.org/projects/activesupport/ COMMENT= Collection of classes and extensions for Rails +PKG_DESTDIR_SUPPORT= destdir + NO_BUILD= yes NO_CONFIGURE= yes @@ -19,16 +21,17 @@ pre-install: ${FIND} ${WRKSRC} -name \*.orig -exec ${RM} -f {} \; do-install: - ${CP} -R ${WRKSRC}/lib/* ${RUBY_SITELIBDIR} - ${CHOWN} -R ${LIBOWN}:${LIBGRP} ${RUBY_SITELIBDIR}/active_support* - ${FIND} ${RUBY_SITELIBDIR}/active_support -type d \ + ${INSTALL_LIB_DIR} ${DESTDIR}${RUBY_SITELIBDIR} + ${CP} -R ${WRKSRC}/lib/* ${DESTDIR}${RUBY_SITELIBDIR} + ${CHOWN} -R ${LIBOWN}:${LIBGRP} ${DESTDIR}${RUBY_SITELIBDIR}/active_support* + ${FIND} ${DESTDIR}${RUBY_SITELIBDIR}/active_support -type d \ -exec ${CHMOD} ${PKGDIRMODE} {} \; - ${FIND} ${RUBY_SITELIBDIR}/active_support* -type f \ + ${FIND} ${DESTDIR}${RUBY_SITELIBDIR}/active_support* -type f \ -exec ${CHMOD} ${LIBMODE} {} \; - ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/active_support + ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_DOCDIR}/active_support ${INSTALL_DATA} ${WRKSRC}/CHANGELOG \ - ${RUBY_DOCDIR}/active_support + ${DESTDIR}${RUBY_DOCDIR}/active_support ${INSTALL_DATA} ${WRKSRC}/README \ - ${RUBY_DOCDIR}/active_support + ${DESTDIR}${RUBY_DOCDIR}/active_support .include "../../mk/bsd.pkg.mk" |