diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-09-01 23:39:33 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-09-01 23:39:33 +0000 |
commit | 085779a1f9f597825de242998a9aab5ebb6492df (patch) | |
tree | 4ade20e897a44ca821deaa907a62f1965570e631 /Mk | |
parent | b18542c62a06c1204b1153a98ab6d4817068693d (diff) | |
download | ports-085779a1f9f597825de242998a9aab5ebb6492df.tar.gz ports-085779a1f9f597825de242998a9aab5ebb6492df.zip |
Notes
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.ruby.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk index 520fd5ee9c6d..5e15c0c9ed35 100644 --- a/Mk/bsd.ruby.mk +++ b/Mk/bsd.ruby.mk @@ -425,9 +425,14 @@ 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(NOPORTDOCS) +RUBYGEM_ARGS+= --no-rdoc +.endif + do-install: .for _D in ${GEMFILES} - ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install -l --no-update-sources --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${RUBY_VER} ${DISTDIR}/${DIST_SUBDIR}/${_D} -- --build-args ${CONFIGURE_ARGS} + ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install ${RUBYGEM_ARGS} ${DISTDIR}/${DIST_SUBDIR}/${_D} -- --build-args ${CONFIGURE_ARGS} .endfor . if defined(RUBYGEM_AUTOPLIST) @@ -435,16 +440,20 @@ do-install: 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} +.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} @${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} +.endif @${ECHO_CMD} "@unexec rmdir %D/${CACHE_DIR} 2>/dev/null || true" >> ${TMPPLIST} @${ECHO_CMD} "@unexec rmdir %D/${SPEC_DIR} 2>/dev/null || true" >> ${TMPPLIST} @${ECHO_CMD} "@unexec rmdir %D/${GEMS_BASE_DIR} 2>/dev/null || true" >> ${TMPPLIST} |