aboutsummaryrefslogtreecommitdiff
path: root/japanese/man
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>1997-03-30 02:57:20 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>1997-03-30 02:57:20 +0000
commit1a94e121774b0c7747dab5d4d0eb64ae5182c3b6 (patch)
tree7da2e3b49c57e611a87bbaa78e316105e75da0aa /japanese/man
parent47c7980e389a1838158e6925881694e4b8bc935a (diff)
downloadports-1a94e121774b0c7747dab5d4d0eb64ae5182c3b6.tar.gz
ports-1a94e121774b0c7747dab5d4d0eb64ae5182c3b6.zip
Notes
Diffstat (limited to 'japanese/man')
-rw-r--r--japanese/man/Makefile9
-rw-r--r--japanese/man/pkg-install18
-rw-r--r--japanese/man/pkg-plist2
3 files changed, 27 insertions, 2 deletions
diff --git a/japanese/man/Makefile b/japanese/man/Makefile
index 2a1196c80eb5..d8e24bf58e93 100644
--- a/japanese/man/Makefile
+++ b/japanese/man/Makefile
@@ -3,7 +3,7 @@
# Date created: 4 December 1996
# Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
#
-# $Id: Makefile,v 1.4 1997/02/12 10:59:14 asami Exp $
+# $Id: Makefile,v 1.5 1997/02/14 05:20:11 asami Exp $
#
DISTNAME= jp-man-1.1
@@ -14,7 +14,10 @@ MASTER_SITES= ftp://jaz.jp.freebsd.org/pub/FreeBSD-jp/man-jp/ \
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
RUN_DEPENDS= ${PREFIX}/bin/groff:${PORTSDIR}/japanese/groff \
- jless:${PORTSDIR}/japanese/less
+ jless:${PORTSDIR}/japanese/less \
+ mule:${PORTSDIR}/editors/mule
+
+JMANELDIR= ${PREFIX}/lib/mule/site-lisp/jman
# XPG4LIBPATH specifies the path name of the xpg4 library.
# The xpg4 library include setlocale() function and etc. for I18N,
@@ -63,6 +66,8 @@ pre-patch:
.endif
post-install:
+ @${MKDIR} ${JMANELDIR}
+ @${INSTALL_DATA} ${FILESDIR}/jman.el ${JMANELDIR}
@${SETENV} CP=${CP} PKG_PREFIX=${PREFIX} /bin/sh ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
pre-clean:
diff --git a/japanese/man/pkg-install b/japanese/man/pkg-install
index 7f4832007aea..da45a139b8b8 100644
--- a/japanese/man/pkg-install
+++ b/japanese/man/pkg-install
@@ -4,8 +4,26 @@ CP=${CP:-/bin/cp}
usr_tmac=/usr/share/tmac
local_tmac=${PKG_PREFIX}/share/groff/tmac
+elispdir=${PKG_PREFIX}/lib/mule/site-lisp
+
+OptionStart=";;; Jman configuration options"
+OptionEnd=";;; End of Jman configuration options"
if [ "X$2" = X"POST-INSTALL" ]; then
${CP} -p ${usr_tmac}/tmac.an ${local_tmac}
${CP} -p ${usr_tmac}/tmac.groff_an ${local_tmac}
+ if [ "`grep \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then
+ sed -e "/^${OptionStart}/,/^${OptionEnd}/d" \
+ ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak
+ mv ${elispdir}/site-start.el.bak ${elispdir}/site-start.el
+ fi
+ echo "Adding \"Jman\" entry to ${elispdir}/site-start.el"
+ echo "${OptionStart}" >> ${elispdir}/site-start.el
+ echo "(setq load-path (cons \"${elispdir}/jman\" load-path))" \
+ >> ${elispdir}/site-start.el
+ echo "(autoload 'jman \"jman\" nil t)" >> ${elispdir}/site-start.el
+ echo "${OptionEnd}" \
+ >> ${elispdir}/site-start.el
+ exit 0
fi
+
diff --git a/japanese/man/pkg-plist b/japanese/man/pkg-plist
index 94da31f4e875..d88ae818093e 100644
--- a/japanese/man/pkg-plist
+++ b/japanese/man/pkg-plist
@@ -10,3 +10,5 @@ man/ja_JP.EUC/man1/jmanpath.1.gz
man/ja_JP.EUC/man1/japropos.1.gz
man/ja_JP.EUC/man1/jwhatis.1.gz
man/ja_JP.EUC/man1/jmakewhatis.1.gz
+lib/mule/site-lisp/jman/jman.el
+@dirrm lib/mule/site-lisp/jman