diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2010-09-02 07:39:33 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2010-09-02 07:39:33 +0800 |
commit | a2a8519c262ba9ed934bc0c39554459d6ab45ec8 (patch) | |
tree | 45c81be393dcef810b98342f15042722fbb45dce /Mk | |
parent | 05b00f53b71819c8dcc78e8205f8b165a51457ff (diff) | |
download | freebsd-ports-gnome-a2a8519c262ba9ed934bc0c39554459d6ab45ec8.tar.gz freebsd-ports-gnome-a2a8519c262ba9ed934bc0c39554459d6ab45ec8.tar.zst freebsd-ports-gnome-a2a8519c262ba9ed934bc0c39554459d6ab45ec8.zip |
- Support NOPORTDOCS (--no-rdoc) for RUBYGEM_AUTOPLIST=yes ports
PR: ports/147547
Submitted by: myself (pgollucci)
No objection from: stas
With Hat: ruby
Sponsored by: RideCharge Inc. / Taximagic
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} |