diff options
author | bapt <bapt@FreeBSD.org> | 2013-10-17 21:28:50 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-10-17 21:28:50 +0800 |
commit | 88d6167d2b9310110bbd4876aecf60dc96369f8c (patch) | |
tree | ea3a28563b2ed8fb56a7666b4ac7af499cc9a50b /Mk/bsd.ruby.mk | |
parent | 4129a63935d53d55fdabc107e3147da5841e4d2c (diff) | |
download | freebsd-ports-gnome-88d6167d2b9310110bbd4876aecf60dc96369f8c.tar.gz freebsd-ports-gnome-88d6167d2b9310110bbd4876aecf60dc96369f8c.tar.zst freebsd-ports-gnome-88d6167d2b9310110bbd4876aecf60dc96369f8c.zip |
Allow staging rubygems (which here, enforce the bindir for staged rubygem ports)
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r-- | Mk/bsd.ruby.mk | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk index 95eab2fdf55d..e21faae4e951 100644 --- a/Mk/bsd.ruby.mk +++ b/Mk/bsd.ruby.mk @@ -468,7 +468,11 @@ GEMFILES= ${DISTFILES:C/:[^:]+$//} GEMFILES= ${DISTNAME}${EXTRACT_SUFX} . endif -RUBYGEM_ARGS=-l --no-update-sources --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${RUBY_VER} +.if defined(NO_STAGE) +RUBYGEM_ARGS=-l --no-update-sources --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${RUBY_VER} +.else +RUBYGEM_ARGS=-l --no-update-sources --no-ri --install-dir ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER} --ignore-dependencies --bindir=${STAGEDIR}${PREFIX}/bin +.endif .if defined(NOPORTDOCS) RUBYGEM_ARGS+= --no-rdoc .endif @@ -495,15 +499,15 @@ post-install-script: @${ECHO} ${GEM_CACHE} >> ${TMPPLIST} @${ECHO} ${GEM_SPEC} >> ${TMPPLIST} .if !defined(NOPORTDOCS) - @${FIND} -ds ${PREFIX}/${GEM_DOC_DIR} -type f -print | ${SED} -E -e \ - 's,^${PREFIX}/?,,' >> ${TMPPLIST} - @${FIND} -ds ${PREFIX}/${GEM_DOC_DIR} -type d -print | ${SED} -E -e \ - 's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST} + @${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_DOC_DIR} -type f -print | ${SED} -E -e \ + 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST} + @${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_DOC_DIR} -type d -print | ${SED} -E -e \ + 's,^${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST} .endif - @${FIND} -ds ${PREFIX}/${GEM_LIB_DIR} -type f -print | ${SED} -E -e \ - 's,^${PREFIX}/?,,' >> ${TMPPLIST} - @${FIND} -ds ${PREFIX}/${GEM_LIB_DIR} -type d -print | ${SED} -E -e \ - 's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST} + @${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR} -type f -print | ${SED} -E -e \ + 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST} + @${FIND} -ds ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR} -type d -print | ${SED} -E -e \ + 's,^${STAGEDIR}${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST} @${ECHO_CMD} "@unexec rmdir %D/${GEMS_DIR} 2>/dev/null || true" >> ${TMPPLIST} .if !defined(NOPORTDOCS) @${ECHO_CMD} "@unexec rmdir %D/${DOC_DIR} 2>/dev/null || true" >> ${TMPPLIST} |