FreeBSD Bugzilla – Attachment 209589 Details for
Bug 242352
devel/ruby-gems: Add framework to handle man pages installed by gem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
devel_ruby-gems.patch (text/plain), 3.79 KB, created by
Yasuhiro Kimura
on 2019-12-02 08:08:32 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2019-12-02 08:08:32 UTC
Size:
3.79 KB
patch
obsolete
>Index: Mk/Uses/gem.mk >=================================================================== >--- Mk/Uses/gem.mk (revision 518178) >+++ Mk/Uses/gem.mk (working copy) >@@ -32,6 +32,7 @@ > EXTRACT_DEPENDS+= ${RUBYGEMBIN}:devel/ruby-gems > GEMS_BASE_DIR= lib/ruby/gems/${RUBY_VER} > GEMS_DIR= ${GEMS_BASE_DIR}/gems >+GEMS_MAN_DIR= lib/ruby/gems/man > DOC_DIR= ${GEMS_BASE_DIR}/doc > CACHE_DIR= ${GEMS_BASE_DIR}/cache > SPEC_DIR= ${GEMS_BASE_DIR}/specifications >@@ -112,6 +113,12 @@ > ${FIND} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ext -type d -empty -delete 2> /dev/null || ${TRUE} > ${RM} -r ${STAGEDIR}${PREFIX}/${CACHE_DIR} 2> /dev/null || ${TRUE} > ${RMDIR} ${STAGEDIR}${PREFIX}/${EXT_DIR} 2> /dev/null || ${TRUE} >+.for i in 1 2 3 4 5 6 7 8 9 >+.for f in ${GEM_MANUALS_SEC${i}} >+ ${MKDIR} ${STAGEDIR}${PREFIX}/${GEMS_MAN_DIR}/man${i} >+ ${RLN} ${STAGEDIR}${PREFIX}/${f} ${STAGEDIR}${PREFIX}/${GEMS_MAN_DIR}/man${i} >+.endfor >+.endfor > .if !${PORT_OPTIONS:MDOCS} > -@${RMDIR} ${STAGEDIR}${PREFIX}/${DOC_DIR} > .endif >@@ -131,6 +138,11 @@ > ${FIND} -ds ${STAGEDIR}${PREFIX}/${EXT_DIR} -type f -print | ${SED} -E -e \ > 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST} ; \ > fi >+.for i in 1 2 3 4 5 6 7 8 9 >+.for f in ${GEM_MANUALS_SEC${i}} >+ ${ECHO} ${GEMS_MAN_DIR}/man${i}/${f:C/.*\///} >> ${TMPPLIST} >+.endfor >+.endfor > .endif > > .endif >Index: devel/ruby-gems/Makefile >=================================================================== >--- devel/ruby-gems/Makefile (revision 518178) >+++ devel/ruby-gems/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= gems > PORTVERSION= 3.0.6 >+PORTREVISION= 1 > CATEGORIES= devel ruby > MASTER_SITES= https://rubygems.org/rubygems/ > PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} >@@ -33,6 +34,7 @@ > GEMS_DOC_DIR= ${GEMS_DOC_BASE_DIR}/${DISTNAME} > GEMS_DOC_DIR_P= ${GEMS_DOC_BASE_DIR_P}/%%DISTNAME%% > GEMS_ENV= DONT_USE_BUNDLER_FOR_GEMDEPS=true GEM_HOME=${STAGEDIR}${PREFIX}/${GEMS_VER_DIR} >+GEMS_MAN_DIR= ${GEMS_BASE_DIR}/man > RUBY_SETUP_OPTIONS= --destdir=${STAGEDIR} --no-regenerate-binstubs > RUBY_VER_SHORT= ${RUBY_VER:S/.//} > >@@ -48,7 +50,11 @@ > DOC_DIR="${DOC_DIR}" \ > CACHE_DIR="${CACHE_DIR}" \ > SPEC_DIR="${SPEC_DIR}" \ >- EXT_DIR="${EXT_DIR}" >+ EXT_DIR="${EXT_DIR}" \ >+ GEMS_MAN_DIR="${GEMS_MAN_DIR}" \ >+ PKGNAMEPREFIX="${PKGNAMEPREFIX}" >+SUB_FILES= gems-man.conf >+SUB_LIST= GEMS_MAN_DIR="${GEMS_MAN_DIR}" > > OPTIONS_DEFINE= DOCS > >@@ -58,6 +64,11 @@ > ${MKDIR} ${STAGEDIR}${PREFIX}/${GEMS_VER_DIR} > cd ${WRKSRC}/ && ${SETENV} ${GEMS_ENV} ${RUBY} ${RUBY_SETUP} ${RUBY_SETUP_OPTIONS} > ${LN} -sf gem${RUBY_VER_SHORT} ${STAGEDIR}${PREFIX}/bin/gem >+ ${MKDIR} ${STAGEDIR}${PREFIX}/${GEMS_MAN_DIR} >+.for i in 1 2 3 4 5 6 7 8 9 >+ ${MKDIR} ${STAGEDIR}${PREFIX}/${GEMS_MAN_DIR}/man${i} >+.endfor >+ ${INSTALL_DATA} ${WRKDIR}/gems-man.conf ${STAGEDIR}${PREFIX}/etc/man.d/${PKGNAMEPREFIX}gems.conf > > # > # Find all RDOC and RI files >Index: devel/ruby-gems/files/gems-man.conf.in >=================================================================== >--- devel/ruby-gems/files/gems-man.conf.in (nonexistent) >+++ devel/ruby-gems/files/gems-man.conf.in (working copy) >@@ -0,0 +1 @@ >+MANPATH %%PREFIX%%/%%GEMS_MAN_DIR%% >Index: devel/ruby-gems/pkg-plist >=================================================================== >--- devel/ruby-gems/pkg-plist (revision 518178) >+++ devel/ruby-gems/pkg-plist (working copy) >@@ -1,5 +1,6 @@ > bin/gem > bin/gem%%RUBY_VER_SHORT%% >+etc/man.d/%%PKGNAMEPREFIX%%gems.conf > %%RUBY_SITELIBDIR%%/rubygems.rb > %%RUBY_SITELIBDIR%%/rubygems/available_set.rb > %%RUBY_SITELIBDIR%%/rubygems/basic_specification.rb >@@ -193,3 +194,12 @@ > @dir %%GEMS_DIR%% > @dir %%SPEC_DIR%% > @dir %%DOC_DIR%% >+@dir %%GEMS_MAN_DIR%%/man1 >+@dir %%GEMS_MAN_DIR%%/man2 >+@dir %%GEMS_MAN_DIR%%/man3 >+@dir %%GEMS_MAN_DIR%%/man4 >+@dir %%GEMS_MAN_DIR%%/man5 >+@dir %%GEMS_MAN_DIR%%/man6 >+@dir %%GEMS_MAN_DIR%%/man7 >+@dir %%GEMS_MAN_DIR%%/man8 >+@dir %%GEMS_MAN_DIR%%/man9
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242352
: 209589