diff options
author | Masafumi Max NAKANE <max@FreeBSD.org> | 2001-11-24 02:08:27 +0000 |
---|---|---|
committer | Masafumi Max NAKANE <max@FreeBSD.org> | 2001-11-24 02:08:27 +0000 |
commit | 7b134ecb34cc5af1a00b9f4ac2ad66fd6fedc6bc (patch) | |
tree | cec746c459b15e80656cd1c038533c6f05f48010 /japanese/cannadic/Makefile | |
parent | 7195cf3d490c1eb02ea8fb3ed499e4648243d0c5 (diff) | |
download | ports-7b134ecb34cc5af1a00b9f4ac2ad66fd6fedc6bc.tar.gz ports-7b134ecb34cc5af1a00b9f4ac2ad66fd6fedc6bc.zip |
Notes
Diffstat (limited to 'japanese/cannadic/Makefile')
-rw-r--r-- | japanese/cannadic/Makefile | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/japanese/cannadic/Makefile b/japanese/cannadic/Makefile index d2553c2b8e40..01ef999cc952 100644 --- a/japanese/cannadic/Makefile +++ b/japanese/cannadic/Makefile @@ -9,15 +9,15 @@ PORTNAME= cannadic PORTVERSION= 0.92 CATEGORIES= japanese MASTER_SITES= http://cgi3.osk.3web.ne.jp/~nowaki/computer/ -DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= toga@puyo.org RUN_DEPENDS= ${LOCALBASE}/lib/canna/dic/canna/dics.dir:${PORTSDIR}/japanese/Canna BUILD_DEPENDS= mkbindic:${PORTSDIR}/japanese/Canna -DICS= gcanna.d gcannaf.d -FQS= gcanna.fq gcannaf.fq +ALL_TARGET= bindic + +DICS= gcanna.cbd gcanna.cld gcannaf.cbd gcannaf.cld DICSFILE= dics.dir ORIGDICSFILE= dics.dir.orig CANNADICSFILE= dics.dir.gpl_canna @@ -28,23 +28,15 @@ do-install: cd ${WRKSRC};\ ${CP} ${DICDIR}/${DICSFILE} ./${ORIGDICSFILE}; \ ${CAT} ./${ORIGDICSFILE} ./${CANNADICSFILE} > ./${DICSFILE}; \ - ${INSTALL_DATA} -g bin -m 664 -o bin ${DICS} ${FQS} ${DICDIR};\ - ${INSTALL_DATA} -g bin -m 664 -o bin ${DICSFILE} ${CANNADICSFILE} ${ORIGDICSFILE} ${DICDIR} + ${INSTALL} -c -g bin -m 664 -o bin ${DICS} ${DICDIR} ; \ + ${INSTALL} -c -g bin -m 664 -o bin ${DICSFILE} ${CANNADICSFILE} ${ORIGDICSFILE} ${DICDIR} post-install: - @( \ - ${ECHO} ; \ - ${ECHO} ; \ - ${ECHO} "After installing, you have to restart cannaserver" ; \ - ${ECHO} "and add lines to your .canna."; \ - ${ECHO} "(use-dictionary" ; \ - ${ECHO} "\"iroha\" ; and more...." ; \ - ${ECHO} ; \ - ${ECHO} "\"gcanna\" ; add this!" ;\ - ${ECHO} "\"gcannaf\" ; add this!" ;\ - ${ECHO} ")";\ - ${ECHO} ; \ - ${ECHO} ; \ - ) + @if [ -e /tmp/.iroha_unix/IROHA ]; then \ + ${ECHO} "Restarting Canna server..."; \ + ${CANNASH} stop > /dev/null 2>&1 ; \ + ${CANNASH} start > /dev/null 2>&1 ; \ + fi + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> |