git: c41eda0a4f88 - main - java/icedtea-web: Sanitize MANPREFIX

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

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

commit c41eda0a4f8882605f1d52fd972b26f444efa50d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-22 19:57:09 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-22 20:26:42 +0000

    java/icedtea-web: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 java/icedtea-web/Makefile  | 14 +++++++++++---
 java/icedtea-web/pkg-plist | 40 ++++++++++++++++++++--------------------
 2 files changed, 31 insertions(+), 23 deletions(-)

diff --git a/java/icedtea-web/Makefile b/java/icedtea-web/Makefile
index 4fb162346267..3e7bb73dde74 100644
--- a/java/icedtea-web/Makefile
+++ b/java/icedtea-web/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	icedtea-web
 PORTVERSION=	1.8.8
 DISTVERSIONPREFIX=	icedtea-web-
-PORTREVISION=	12
+PORTREVISION=	13
 CATEGORIES=	java www
 
 MAINTAINER=	java@FreeBSD.org
@@ -104,11 +104,19 @@ post-patch:
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/*.desktop ${STAGEDIR}${DESKTOPDIR}
 .for lang in cs de en pl
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/man/${lang:Nen}/man1
 .for man in javaws policyeditor
-	${MV} ${STAGEDIR}${MANPREFIX}/man/${lang:Nen}/man1/${man}.1 \
-	    ${STAGEDIR}${MANPREFIX}/man/${lang:Nen}/man1/itweb-${man}.1
+	${MV} ${STAGEDIR}${PREFIX}/man/${lang:Nen}/man1/${man}.1 \
+	    ${STAGEDIR}${PREFIX}/share/man/${lang:Nen}/man1/itweb-${man}.1
 .endfor
 .endfor
+.for lang in cs de pl
+	${MV} ${STAGEDIR}${PREFIX}/man/${lang}/man1/* \
+	    ${STAGEDIR}${PREFIX}/share/man/${lang}/man1/
+	${RM} -r ${STAGEDIR}${PREFIX}/man/${lang}
+.endfor
+	${MV} ${STAGEDIR}${PREFIX}/man/man1/* \
+	    ${STAGEDIR}${PREFIX}/share/man/man1/
 	@${ECHO_MSG}
 	@${ECHO_MSG} "Run \"make test\" to execute regression test."
 	@${ECHO_MSG}
diff --git a/java/icedtea-web/pkg-plist b/java/icedtea-web/pkg-plist
index b8bbd2979ad1..8bef1e978c5f 100644
--- a/java/icedtea-web/pkg-plist
+++ b/java/icedtea-web/pkg-plist
@@ -9,26 +9,26 @@ bin/itweb-settings.sh
 etc/bash_completion.d/itweb-settings.bash
 etc/bash_completion.d/javaws.bash
 etc/bash_completion.d/policyeditor.bash
-man/cs/man1/icedtea-web-plugin.1.gz
-man/cs/man1/icedtea-web.1.gz
-man/cs/man1/itweb-javaws.1.gz
-man/cs/man1/itweb-policyeditor.1.gz
-man/cs/man1/itweb-settings.1.gz
-man/de/man1/icedtea-web-plugin.1.gz
-man/de/man1/icedtea-web.1.gz
-man/de/man1/itweb-javaws.1.gz
-man/de/man1/itweb-policyeditor.1.gz
-man/de/man1/itweb-settings.1.gz
-man/man1/icedtea-web-plugin.1.gz
-man/man1/icedtea-web.1.gz
-man/man1/itweb-javaws.1.gz
-man/man1/itweb-policyeditor.1.gz
-man/man1/itweb-settings.1.gz
-man/pl/man1/icedtea-web-plugin.1.gz
-man/pl/man1/icedtea-web.1.gz
-man/pl/man1/itweb-javaws.1.gz
-man/pl/man1/itweb-policyeditor.1.gz
-man/pl/man1/itweb-settings.1.gz
+share/man/cs/man1/icedtea-web-plugin.1.gz
+share/man/cs/man1/icedtea-web.1.gz
+share/man/cs/man1/itweb-javaws.1.gz
+share/man/cs/man1/itweb-policyeditor.1.gz
+share/man/cs/man1/itweb-settings.1.gz
+share/man/de/man1/icedtea-web-plugin.1.gz
+share/man/de/man1/icedtea-web.1.gz
+share/man/de/man1/itweb-javaws.1.gz
+share/man/de/man1/itweb-policyeditor.1.gz
+share/man/de/man1/itweb-settings.1.gz
+share/man/man1/icedtea-web-plugin.1.gz
+share/man/man1/icedtea-web.1.gz
+share/man/man1/itweb-javaws.1.gz
+share/man/man1/itweb-policyeditor.1.gz
+share/man/man1/itweb-settings.1.gz
+share/man/pl/man1/icedtea-web-plugin.1.gz
+share/man/pl/man1/icedtea-web.1.gz
+share/man/pl/man1/itweb-javaws.1.gz
+share/man/pl/man1/itweb-policyeditor.1.gz
+share/man/pl/man1/itweb-settings.1.gz
 share/applications/itweb-javaws.desktop
 share/applications/itweb-policyeditor.desktop
 share/applications/itweb-settings.desktop