Skip to content

Commit

Permalink
lang/ruby30: Sanitize MANPREFIX
Browse files Browse the repository at this point in the history
Approved by:    portmgr (blanket)
  • Loading branch information
5u623l20 committed Jan 22, 2024
1 parent cbef135 commit 2fc921f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lang/ruby30/Makefile
Expand Up @@ -37,6 +37,7 @@ CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
--with-vendordir="${PREFIX}/lib/ruby/vendor_ruby"
CONFIGURE_ENV= debugflags=
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
# Keep this, else ruby will fail to load libraries dependent of libpthread.
LIBS+= -lpthread
USE_LDCONFIG= yes
Expand Down Expand Up @@ -174,7 +175,7 @@ post-install:
# Link "ruby.1.gz" to "ruby30.1.gz", etc.
#
. for FILE in ${INSTALLED_MANUALS}
${LN} -fs ${FILE}${RUBY_SUFFIX}.1.gz ${STAGEDIR}${MANPREFIX}/man/man1/${FILE}.1.gz
${LN} -fs ${FILE}${RUBY_SUFFIX}.1.gz ${STAGEDIR}${PREFIX}/share/man/man1/${FILE}.1.gz
. endfor
.endif

Expand Down
4 changes: 2 additions & 2 deletions lang/ruby30/pkg-plist
Expand Up @@ -986,8 +986,8 @@ lib/libruby%%RUBY_SHLIBVER%%.so.%%RUBY_SHLIBVER%%
%%RUBY_LIBDIR%%/yaml/dbm.rb
%%RUBY_LIBDIR%%/yaml/store.rb
libdata/pkgconfig/ruby-%%RUBY_VER%%.pc
%%IF_DEFAULT%%man/man1/ruby.1.gz
man/man1/ruby%%RUBY_SUFFIX%%.1.gz
%%IF_DEFAULT%%share/man/man1/ruby.1.gz
share/man/man1/ruby%%RUBY_SUFFIX%%.1.gz
%%DOCS%%%%RUBY_DOCDIR%%/COPYING
%%DOCS%%%%RUBY_DOCDIR%%/COPYING.ja
%%DOCS%%%%RUBY_DOCDIR%%/ChangeLog
Expand Down

0 comments on commit 2fc921f

Please sign in to comment.