svn commit: r382918 - head/devel/ruby-gems
Steve Wills
swills at FreeBSD.org
Wed Apr 1 15:54:55 UTC 2015
Author: swills
Date: Wed Apr 1 15:54:54 2015
New Revision: 382918
URL: https://svnweb.freebsd.org/changeset/ports/382918
QAT: https://qat.redports.org/buildarchive/r382918/
Log:
devel/ruby-gems: fix with DOCS option disabled
PR: 198052
Modified:
head/devel/ruby-gems/Makefile
head/devel/ruby-gems/pkg-plist
Modified: head/devel/ruby-gems/Makefile
==============================================================================
--- head/devel/ruby-gems/Makefile Wed Apr 1 14:44:17 2015 (r382917)
+++ head/devel/ruby-gems/Makefile Wed Apr 1 15:54:54 2015 (r382918)
@@ -49,16 +49,14 @@ OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MDOCS}
-RUBY_SETUP_OPTIONS= --ri --rdoc --destdir=${STAGEDIR}
-GEM_ENV+= GEM_HOME=${STAGEDIR}${PREFIX}/${GEMS_VER_DIR}
-.else
-RUBY_SETUP_OPTIONS= --no-ri --no-rdoc --destdir=${STAGEDIR}
+RUBY_SETUP_OPTIONS= --destdir=${STAGEDIR}
+GEM_ENV= GEM_HOME=${STAGEDIR}${PREFIX}/${GEMS_VER_DIR}
+
+.if !${PORT_OPTIONS:MDOCS}
+RUBY_SETUP_OPTIONS+= --no-ri --no-rdoc
.endif
do-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/${GEMS_DOC_BASE_DIR}/
- @${TOUCH} ${STAGEDIR}${PREFIX}/${GEMS_DOC_BASE_DIR}/.keep_this
cd ${WRKSRC}; ${SETENV} ${GEM_ENV} ${RUBY} ${RUBY_SETUP} ${RUBY_SETUP_OPTIONS}
post-install:
Modified: head/devel/ruby-gems/pkg-plist
==============================================================================
--- head/devel/ruby-gems/pkg-plist Wed Apr 1 14:44:17 2015 (r382917)
+++ head/devel/ruby-gems/pkg-plist Wed Apr 1 15:54:54 2015 (r382918)
@@ -158,9 +158,9 @@ bin/gem%%RUBY_VER_SHORT%%
%%RUBY_SITELIBDIR%%/rubygems/version.rb
%%RUBY_SITELIBDIR%%/rubygems/version_option.rb
%%RUBY_SITELIBDIR%%/ubygems.rb
-lib/ruby/gems/%%RUBY_VER%%/doc/.keep_this
@dir lib/ruby/gems/%%RUBY_VER%%/build_info
@dir %%EXT_DIR%%
@dir %%CACHE_DIR%%
@dir %%GEMS_DIR%%
@dir %%SPEC_DIR%%
+ at dir %%DOC_DIR%%
More information about the svn-ports-head
mailing list