summaryrefslogtreecommitdiff
path: root/lang/ruby18-base
diff options
context:
space:
mode:
authorghen <ghen>2008-01-04 15:42:34 +0000
committerghen <ghen>2008-01-04 15:42:34 +0000
commit49a140ac4209a5f7abd2a5d0a88b10279812abea (patch)
tree5e3838386c9e6cb315c28f6e35e4033de0284dae /lang/ruby18-base
parent523aaf7612161762c23dba0edb547962acff5286 (diff)
downloadpkgsrc-49a140ac4209a5f7abd2a5d0a88b10279812abea.tar.gz
Full DESTDIR support.
Diffstat (limited to 'lang/ruby18-base')
-rw-r--r--lang/ruby18-base/Makefile36
1 files changed, 19 insertions, 17 deletions
diff --git a/lang/ruby18-base/Makefile b/lang/ruby18-base/Makefile
index f24aff94878..f2266d52ca9 100644
--- a/lang/ruby18-base/Makefile
+++ b/lang/ruby18-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2007/11/05 01:09:23 grant Exp $
+# $NetBSD: Makefile,v 1.40 2008/01/04 15:42:34 ghen Exp $
#
DISTNAME= ${RUBY_DISTNAME}
@@ -18,6 +18,8 @@ CONFLICTS= ${RUBY_PKGPREFIX}-dbm-[0-9]* \
${RUBY_PKGPREFIX}-openssl-[0-9]* \
${RUBY_PKGPREFIX}-tcltk-[0-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LANGUAGES= c
USE_TOOLS+= yacc
GNU_CONFIGURE= yes
@@ -109,36 +111,36 @@ pre-install:
-exec ${RM} -f {} \;
post-install:
- ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/irb
- ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/pty
- ${INSTALL_DATA} ${FILESDIR}/CHANGES.pkgsrc ${RUBY_DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_DOCDIR}/irb
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_DOCDIR}/pty
+ ${INSTALL_DATA} ${FILESDIR}/CHANGES.pkgsrc ${DESTDIR}${RUBY_DOCDIR}
.for f in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${f:C/^doc\///}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${RUBY_DOCDIR}/${f:C/^doc\///}
.endfor
- ${INSTALL_SCRIPT} ${WRKSRC}/ext/dl/h2rb ${PREFIX}/bin/h2rb${RUBY_VER}
+ ${INSTALL_SCRIPT} ${WRKSRC}/ext/dl/h2rb ${DESTDIR}${PREFIX}/bin/h2rb${RUBY_VER}
.for f in ${EXT_DOCS}
- ${INSTALL_DATA} ${WRKSRC}/ext/${f} ${RUBY_DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ext/${f} ${DESTDIR}${RUBY_DOCDIR}
.endfor
- ${CP} -r ${WRKSRC}/ext/pty/README.* ${RUBY_DOCDIR}/pty
- ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/pty
- ${CP} -r ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}
- ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/bigdecimal
+ ${CP} -r ${WRKSRC}/ext/pty/README.* ${DESTDIR}${RUBY_DOCDIR}/pty
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_EXAMPLESDIR}/pty
+ ${CP} -r ${WRKSRC}/sample/* ${DESTDIR}${RUBY_EXAMPLESDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_EXAMPLESDIR}/bigdecimal
.for f in ${BIGDECIMAL_EXAMPLES}
${INSTALL_DATA} ${RUBY_WRKSRC}/ext/bigdecimal/sample/${f} \
- ${RUBY_EXAMPLESDIR}/bigdecimal
+ ${DESTDIR}${RUBY_EXAMPLESDIR}/bigdecimal
.endfor
- ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/dl
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_EXAMPLESDIR}/dl
.for f in ${DL_EXAMPLES}
${INSTALL_DATA} ${RUBY_WRKSRC}/ext/dl/sample/${f} \
- ${RUBY_EXAMPLESDIR}/dl
+ ${DESTDIR}${RUBY_EXAMPLESDIR}/dl
.endfor
- ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/openssl
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_EXAMPLESDIR}/openssl
.for f in ${OPENSSL_EXAMPLES}
${INSTALL_DATA} ${RUBY_WRKSRC}/sample/openssl/${f} \
- ${RUBY_EXAMPLESDIR}/openssl
+ ${DESTDIR}${RUBY_EXAMPLESDIR}/openssl
.endfor
.for f in ${PTY_EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/ext/pty/${f} ${RUBY_EXAMPLESDIR}/pty
+ ${INSTALL_DATA} ${WRKSRC}/ext/pty/${f} ${DESTDIR}${RUBY_EXAMPLESDIR}/pty
.endfor
${RUBY_GENERATE_PLIST}