git: c168dcf7b417 - main - lang/ruby32: Sanitize MANPREFIX

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 22 Jan 2024 20:27:17 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c168dcf7b417b922e76ef60b6950240616dba2bb

commit c168dcf7b417b922e76ef60b6950240616dba2bb
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-22 18:09:56 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-22 20:26:39 +0000

    lang/ruby32: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 lang/ruby32/Makefile  | 3 ++-
 lang/ruby32/pkg-plist | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/lang/ruby32/Makefile b/lang/ruby32/Makefile
index dde7e8ed88de..8464ce2fcc07 100644
--- a/lang/ruby32/Makefile
+++ b/lang/ruby32/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 \
@@ -171,7 +172,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/ruby32/pkg-plist b/lang/ruby32/pkg-plist
index 813d9e7a5e24..5ca7d9916bfd 100644
--- a/lang/ruby32/pkg-plist
+++ b/lang/ruby32/pkg-plist
@@ -1046,8 +1046,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