1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

japanese/nkf: Sanitize MANPREFIX

Approved by:    portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman 2024-01-22 20:29:00 +01:00
parent e979a3ee14
commit 41eae8e7ca
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= nkf
PORTVERSION= 2.1.5
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES?= japanese
@ -16,6 +17,6 @@ GH_TAGNAME= v${PORTVERSION:C/\./_/g}
MAKE_ENV= MKDIR="${MKDIR}" \
ICONV_CMD="${ICONV_CMD}"
PLIST_FILES= bin/nkf man/man1/nkf.1.gz man/ja.UTF-8/man1/nkf.1.gz
PLIST_FILES= bin/nkf share/man/man1/nkf.1.gz share/man/ja/man1/nkf.1.gz
.include <bsd.port.mk>

View File

@ -15,7 +15,7 @@
-prefix = /usr/local
+MKDIR ?= mkdir
+prefix = $(DESTDIR)$(PREFIX)
+manprefix = $(DESTDIR)$(MANPREFIX)
+manprefix = $(DESTDIR)$(PREFIX)/share
PYTHON2 = python
PYTHON3 = python
+BSD_INSTALL_PROGRAM?= ${INSTALL} -s -o root -g wheel -m 555
@ -52,9 +52,9 @@
+ ${ICONV_CMD} -f iso-2022-jp -t utf-8 < $? > $@
+
+install-man-ja: nkf.1u
+ -$(MKDIR) $(manprefix)/man/ja.UTF-8
+ -$(MKDIR) $(manprefix)/man/ja.UTF-8/man1
+ ${BSD_INSTALL_MAN} nkf.1u $(manprefix)/man/ja.UTF-8/man1/nkf.1
+ -$(MKDIR) $(manprefix)/man/ja
+ -$(MKDIR) $(manprefix)/man/ja/man1
+ ${BSD_INSTALL_MAN} nkf.1u $(manprefix)/man/ja/man1/nkf.1
shar:
-mkdir nkf-$(VERSION)