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 | |
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')
-rw-r--r-- | lang/ruby/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lang/ruby/Makefile b/lang/ruby/Makefile index d8014602eae..a4b265dff55 100644 --- a/lang/ruby/Makefile +++ b/lang/ruby/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.45 2007/10/25 21:04:22 jlam Exp $ +# $NetBSD: Makefile,v 1.46 2008/03/04 16:38:13 jlam Exp $ DISTNAME= # empty PKGNAME= ruby-${RUBY_VERSION_SUFFIX} @@ -11,6 +11,9 @@ HOMEPAGE= http://www.ruby-lang.org/en/ COMMENT= Wrapper package for Ruby programming language CONFLICTS= pkg_alternatives-[0-9]* + +PKG_DESTDIR_SUPPORT= user-destdir + NO_CHECKSUM= yes NO_CONFIGURE= yes NO_BUILD= yes @@ -38,9 +41,9 @@ GENERATE_PLIST+= ${ECHO} man/man1/ruby.1; do-install: .if ${RUBY_NAME} != "ruby" . for f in ${RUBY_COMMANDS} - ${LN} -sf ${f}${RUBY_VER} ${PREFIX}/bin/${f} + ${LN} -sf ${f}${RUBY_VER} ${DESTDIR}${PREFIX}/bin/${f} . endfor - ${LN} -sf ${RUBY_NAME}.1 ${PREFIX}/${PKGMANDIR}/man1/ruby.1 + ${LN} -sf ${RUBY_NAME}.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ruby.1 .endif .include "../../mk/bsd.pkg.mk" |