diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2008-04-30 22:33:17 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2008-04-30 22:33:17 +0000 |
commit | 57e298067eb2fafa90ba5ed62afba01b59a49d93 (patch) | |
tree | 12457c0644be38958f5a38cfdd4706a41095d212 | |
parent | Upgrade Code_Saturne to 1.3.2. (diff) |
Try jman(1) from ports/japanese/man instead of man(1) for japanese manual
pages if LANG is set to ja_JP.eucJP and the port is installed.
Diablo packages contain japanese manual pages and jman seems to format them
mostly fine.
Reviewed by: glewis (maintainer)
-rw-r--r-- | java/javavmwrapper/Makefile | 2 | ||||
-rw-r--r-- | java/javavmwrapper/src/javavmwrapper.sh | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/java/javavmwrapper/Makefile b/java/javavmwrapper/Makefile index 378282bf181a..47be554d2a3b 100644 --- a/java/javavmwrapper/Makefile +++ b/java/javavmwrapper/Makefile @@ -8,7 +8,7 @@ # PORTNAME= javavmwrapper -PORTVERSION= 2.3.1 +PORTVERSION= 2.3.2 CATEGORIES= java MASTER_SITES= # none DISTFILES= # none diff --git a/java/javavmwrapper/src/javavmwrapper.sh b/java/javavmwrapper/src/javavmwrapper.sh index b3c43e6d0f6c..cad6f7cbc4ab 100644 --- a/java/javavmwrapper/src/javavmwrapper.sh +++ b/java/javavmwrapper/src/javavmwrapper.sh @@ -452,8 +452,13 @@ manualpageVM () { # Run man(1) MANPATH="${JAVA_HOME}/man:${MANPATH}" export MANPATH - setJavaOptions man "`basename ${JAVA_HOME}`" - exec man -S 1 ${_JAVAVM_OPTS} ${1} + if [ "${LANG}" = "ja_JP.eucJP" -a -x "${_JAVAVM_PREFIX}/bin/jman" ]; then + setJavaOptions jman "`basename ${JAVA_HOME}`" + exec ${_JAVAVM_PREFIX}/bin/jman -S 1 ${_JAVAVM_OPTS} ${1} + else + setJavaOptions man "`basename ${JAVA_HOME}`" + exec man -S 1 ${_JAVAVM_OPTS} ${1} + fi } # |