From a47484ac52254f3f197b5f9fcf49588db0a1d981 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Mon, 22 Jan 2024 19:00:45 +0100 Subject: [PATCH] lang/ruby33: Sanitize MANPREFIX Approved by: portmgr (blanket) --- lang/ruby33/Makefile | 3 ++- lang/ruby33/pkg-plist | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lang/ruby33/Makefile b/lang/ruby33/Makefile index 72946feaa88c..21949fe60944 100644 --- a/lang/ruby33/Makefile +++ b/lang/ruby33/Makefile @@ -27,6 +27,7 @@ CPE_UPDATE= p${RUBY_PATCHLEVEL} USE_LDCONFIG= yes GNU_CONFIGURE= yes +GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \ --disable-rpath \ --enable-install-static-library \ @@ -159,7 +160,7 @@ post-install: # Link "ruby.1.gz" to "ruby31.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 diff --git a/lang/ruby33/pkg-plist b/lang/ruby33/pkg-plist index a848f667f555..f6d9d0923703 100644 --- a/lang/ruby33/pkg-plist +++ b/lang/ruby33/pkg-plist @@ -1091,8 +1091,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/ChangeLog-0.06_to_0.52