diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 16:38:11 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 16:38:11 +0000 |
commit | 8216d744ac7ee52a87a0c54540fc68d487f4ad1f (patch) | |
tree | 3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/ruby-doc-stdlib | |
parent | 642995a0c4f1913cc6893865f1f5905084199dc1 (diff) | |
download | pkgsrc-8216d744ac7ee52a87a0c54540fc68d487f4ad1f.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'lang/ruby-doc-stdlib')
-rw-r--r-- | lang/ruby-doc-stdlib/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/lang/ruby-doc-stdlib/Makefile b/lang/ruby-doc-stdlib/Makefile index 689913c81ed..502b3746f04 100644 --- a/lang/ruby-doc-stdlib/Makefile +++ b/lang/ruby-doc-stdlib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2005/11/05 20:12:36 minskim Exp $ +# $NetBSD: Makefile,v 1.4 2008/03/04 16:38:12 jlam Exp $ DISTNAME= ruby-doc-stdlib-0.10.1 CATEGORIES= lang ruby @@ -9,6 +9,8 @@ MAINTAINER= minskim@NetBSD.org HOMEPAGE= http://www.ruby-doc.org/ COMMENT= Ruby Standard Library Documentation +PKG_DESTDIR_SUPPORT= user-destdir + NO_CONFIGURE= yes NO_BUILD= yes @@ -16,16 +18,17 @@ PLIST_SRC= ${WRKDIR}/.PLIST_SRC DOCDIR= share/doc/${PKGBASE} do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR} - ${CP} -R ${WRKSRC}/stdlib/* ${PREFIX}/${DOCDIR} - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${DOCDIR} - ${FIND} ${PREFIX}/${DOCDIR} -type d -print | \ + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${DOCDIR} + ${CP} -R ${WRKSRC}/stdlib/* ${DESTDIR}${PREFIX}/${DOCDIR} + ${FIND} ${DESTDIR}${PREFIX}/${DOCDIR} -type d -print | \ ${XARGS} ${CHMOD} ${PKGDIRMODE} - ${FIND} ${PREFIX}/${DOCDIR} -type f -print | \ + ${FIND} ${DESTDIR}${PREFIX}/${DOCDIR} -type f -print | \ ${XARGS} ${CHMOD} ${SHAREMODE} ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC} - cd ${PREFIX} && ${FIND} ${DOCDIR} -type f -print >> ${PLIST_SRC} - cd ${PREFIX} && ${FIND} -d ${DOCDIR} -type d -print | \ + cd ${DESTDIR}${PREFIX} && \ + ${FIND} ${DOCDIR} -type f -print >> ${PLIST_SRC} + cd ${DESTDIR}${PREFIX} && \ + ${FIND} -d ${DOCDIR} -type d -print | \ ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC} .include "../../mk/bsd.pkg.mk" |