diff options
author | hrs <hrs@FreeBSD.org> | 2014-05-25 01:14:56 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2014-05-25 01:14:56 +0800 |
commit | 21a5688e3e9d3e71438bdac27c2ea7420ac2dad7 (patch) | |
tree | bb87dc5dfe8d34eb02536b4126ba1e0ef55cd685 /japanese/canna-server | |
parent | 1be216631bafb6a3c45480dfcccc31668d9ebfb5 (diff) | |
download | freebsd-ports-gnome-21a5688e3e9d3e71438bdac27c2ea7420ac2dad7.tar.gz freebsd-ports-gnome-21a5688e3e9d3e71438bdac27c2ea7420ac2dad7.tar.zst freebsd-ports-gnome-21a5688e3e9d3e71438bdac27c2ea7420ac2dad7.zip |
- STAGEDIR support.
- Add LICENSE.
- Remove GCC dependency.
Diffstat (limited to 'japanese/canna-server')
-rw-r--r-- | japanese/canna-server/Makefile | 47 | ||||
-rw-r--r-- | japanese/canna-server/files/patch-Canna.conf | 26 | ||||
-rw-r--r-- | japanese/canna-server/pkg-message | 8 | ||||
-rw-r--r-- | japanese/canna-server/pkg-plist | 141 |
4 files changed, 172 insertions, 50 deletions
diff --git a/japanese/canna-server/Makefile b/japanese/canna-server/Makefile index 3b8bf0c8f31f..d98038b0dcee 100644 --- a/japanese/canna-server/Makefile +++ b/japanese/canna-server/Makefile @@ -3,7 +3,7 @@ PORTNAME= canna PORTVERSION= 3.7p3 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= japanese MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} MASTER_SITE_SUBDIR= canna/9565/ @@ -13,48 +13,21 @@ DISTNAME= Canna${PORTVERSION:S/.//g} MAINTAINER= hrs@FreeBSD.org COMMENT= A Kana-to-Kanji conversion system, binary part -LIB_DEPENDS= canna.1:${PORTSDIR}/japanese/canna-lib +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYRIGHT -USES= imake -USE_GCC= any +LIB_DEPENDS= libcanna.so:${PORTSDIR}/japanese/canna-lib + +USES= imake tar:bzip2 USE_RC_SUBR= canna -USE_BZIP2= yes INSTALL_TARGET= instserver instclient -PLIST_SUB= METAFILE="${METAFILE}" \ - MTREE_CMD="${MTREE_CMD}" - PORTDOCS= canna.bib canna.sty Imakefile README.jp Makefile \ intern lisp man -MANLANG= "" ja -MANCOMPRESSED= no -MAN1= addwords.1 cannacheck.1 cannakill.1 cannaserver.1 cannastat.1 \ - catdic.1 chmoddic.1 cpdic.1 cshost.1 ctow.1 delwords.1 dicar.1 \ - dpbindic.1 dpromdic.1 lsdic.1 mkbindic.1 mkdic.1 mkromdic.1 \ - mvdic.1 rmdic.1 splitword.1 wtoc.1 -MAN3= RkCloseRoma.3 RkCvtEuc.3 RkCvtHan.3 RkCvtHira.3 RkCvtKana.3 \ - RkCvtRoma.3 RkCvtZen.3 RkDefineDic.3 RkDeleteDic.3 RkEndBun.3 \ - RkEnlarge.3 RkFinalize.3 RkGetDicList.3 RkGetKanji.3 \ - RkGetLex.3 RkGetStat.3 RkGetYomi.3 RkGoto.3 RkInitialize.3 \ - RkIntro.3 RkLeft.3 RkMapPhonogram.3 RkMapRoma.3 RkMountDic.3 \ - RkNext.3 RkNfer.3 RkOpenRoma.3 RkPrev.3 RkRemountDic.3 \ - RkResize.3 RkBgnBun.3 RkRight.3 RkShorten.3 RkStoreYomi.3 \ - RkUnmountDic.3 RkXfer.3 cannalib.3 uilib.3 -MLINKS= uilib.3 XKanjiControl.3 uilib.3 XLookupKanjiString.3 uilib.3 \ - jrKanjiControl.3 uilib.3 jrKanjiString.3 - -METAFILE= ${DATADIR_REL}/canna-server-dic.meta - -NO_STAGE= yes post-install: - @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install.man - ${MTREE_CMD} -cdink uname,gname,mode,nochange \ - -p ${DATADIR}/dic > ${PREFIX}/${METAFILE} -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC}/doc && ${CP} -R ${PORTDOCS} ${DOCSDIR} - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} -.endif - @${CAT} ${PKGMESSAGE} + @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \ + ${MAKEFILE} ${MAKE_ARGS} install.man + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${CP} -R ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/japanese/canna-server/files/patch-Canna.conf b/japanese/canna-server/files/patch-Canna.conf index a3bef982a0f9..26772c9b19fc 100644 --- a/japanese/canna-server/files/patch-Canna.conf +++ b/japanese/canna-server/files/patch-Canna.conf @@ -1,5 +1,5 @@ ---- Canna.conf.orig Fri Jan 2 21:26:27 2004 -+++ Canna.conf Thu Jan 22 18:42:43 2004 +--- Canna.conf.orig 2004-05-20 00:48:47.000000000 +0900 ++++ Canna.conf 2014-04-06 04:16:39.000000000 +0900 @@ -109,7 +109,8 @@ # define DefErrDir $(cannaPrefix)/log # define DefLibCannaDir $(cannaExecPrefix)/lib @@ -10,3 +10,25 @@ # ifdef ObsoleteInstallDir # define DefErrDir /usr/spool/canna # define DefLibCannaDir /usr/lib +@@ -175,7 +176,7 @@ + #ifdef InstallAsUser + cannaOwnerGroup = + #else +-cannaOwnerGroup = -o $(cannaOwner) -g $(cannaGroup) ++cannaOwnerGroup = + #endif + + cannaDsoRev = 1.2 +@@ -199,9 +200,9 @@ + CHGRP = : + CHMOD = : + #else +-CHOWN = chown +-CHGRP = chgrp +-CHMOD = chmod ++CHOWN = : ++CHGRP = : ++CHMOD = : + #endif + + /* 日本語マニュアルを使わないのであればコメントアウト */ diff --git a/japanese/canna-server/pkg-message b/japanese/canna-server/pkg-message index 375dc6caf41b..08bf00526ed7 100644 --- a/japanese/canna-server/pkg-message +++ b/japanese/canna-server/pkg-message @@ -2,11 +2,5 @@ Now the cannaserver uses a UNIX domain socket by default. If you need to use a TCP connection, please edit your /etc/rc.conf (or alike) and add the -inet command-line option to canna_flags, i.e.: - canna_flags="-u bin -inet" - -Also, note that canna startup script now uses the rcNG mechanism, so -if you'd like to start Canna server on local system, enable it in your -/etc/rc.conf, i.e.: - canna_enable="yes" - + canna_flags="-u bin -inet" diff --git a/japanese/canna-server/pkg-plist b/japanese/canna-server/pkg-plist index 7211185948ed..b47d0bb9551e 100644 --- a/japanese/canna-server/pkg-plist +++ b/japanese/canna-server/pkg-plist @@ -1,3 +1,4 @@ +@comment $FreeBSD$ bin/addwords bin/canlisp bin/cannacheck @@ -29,6 +30,10 @@ bin/rmdic bin/splitword bin/syncdic bin/wtoc +sbin/cannaserver +sbin/cannakill +@owner bin +@group bin %%DATADIR%%/dic/canna/bushu.cld %%DATADIR%%/dic/canna/chimei.ctd %%DATADIR%%/dic/canna/dics.dir @@ -44,10 +49,138 @@ bin/wtoc %%DATADIR%%/dic/canna/number.ctd %%DATADIR%%/dic/canna/software.ctd %%DATADIR%%/dic/canna/suffix.ctd -sbin/cannaserver -sbin/cannakill -%%METAFILE%% -@exec %%MTREE_CMD%% -qU -f %D/%%METAFILE%% -p %D/%%DATADIR%%/dic > /dev/null 2>&1 +@exec chown bin:bin %D/%%DATADIR%%/dic +@exec chmod 0775 %D/%%DATADIR%%/dic +@owner root +@group wheel +man/ja/man1/addwords.1.gz +man/ja/man1/cannacheck.1.gz +man/ja/man1/cannakill.1.gz +man/ja/man1/cannaserver.1.gz +man/ja/man1/cannastat.1.gz +man/ja/man1/catdic.1.gz +man/ja/man1/chmoddic.1.gz +man/ja/man1/cpdic.1.gz +man/ja/man1/cshost.1.gz +man/ja/man1/ctow.1.gz +man/ja/man1/delwords.1.gz +man/ja/man1/dicar.1.gz +man/ja/man1/dpbindic.1.gz +man/ja/man1/dpromdic.1.gz +man/ja/man1/lsdic.1.gz +man/ja/man1/mkbindic.1.gz +man/ja/man1/mkdic.1.gz +man/ja/man1/mkromdic.1.gz +man/ja/man1/mvdic.1.gz +man/ja/man1/rmdic.1.gz +man/ja/man1/splitword.1.gz +man/ja/man1/wtoc.1.gz +man/ja/man3/RkBgnBun.3.gz +man/ja/man3/RkCloseRoma.3.gz +man/ja/man3/RkCvtEuc.3.gz +man/ja/man3/RkCvtHan.3.gz +man/ja/man3/RkCvtHira.3.gz +man/ja/man3/RkCvtKana.3.gz +man/ja/man3/RkCvtRoma.3.gz +man/ja/man3/RkCvtZen.3.gz +man/ja/man3/RkDefineDic.3.gz +man/ja/man3/RkDeleteDic.3.gz +man/ja/man3/RkEndBun.3.gz +man/ja/man3/RkEnlarge.3.gz +man/ja/man3/RkFinalize.3.gz +man/ja/man3/RkGetDicList.3.gz +man/ja/man3/RkGetKanji.3.gz +man/ja/man3/RkGetLex.3.gz +man/ja/man3/RkGetStat.3.gz +man/ja/man3/RkGetYomi.3.gz +man/ja/man3/RkGoto.3.gz +man/ja/man3/RkInitialize.3.gz +man/ja/man3/RkIntro.3.gz +man/ja/man3/RkLeft.3.gz +man/ja/man3/RkMapPhonogram.3.gz +man/ja/man3/RkMapRoma.3.gz +man/ja/man3/RkMountDic.3.gz +man/ja/man3/RkNext.3.gz +man/ja/man3/RkNfer.3.gz +man/ja/man3/RkOpenRoma.3.gz +man/ja/man3/RkPrev.3.gz +man/ja/man3/RkRemountDic.3.gz +man/ja/man3/RkResize.3.gz +man/ja/man3/RkRight.3.gz +man/ja/man3/RkShorten.3.gz +man/ja/man3/RkStoreYomi.3.gz +man/ja/man3/RkUnmountDic.3.gz +man/ja/man3/RkXfer.3.gz +man/ja/man3/XKanjiControl.3.gz +man/ja/man3/XLookupKanjiString.3.gz +man/ja/man3/cannalib.3.gz +man/ja/man3/jrKanjiControl.3.gz +man/ja/man3/jrKanjiString.3.gz +man/ja/man3/uilib.3.gz +man/man1/addwords.1.gz +man/man1/cannacheck.1.gz +man/man1/cannakill.1.gz +man/man1/cannaserver.1.gz +man/man1/cannastat.1.gz +man/man1/catdic.1.gz +man/man1/chmoddic.1.gz +man/man1/cpdic.1.gz +man/man1/cshost.1.gz +man/man1/ctow.1.gz +man/man1/delwords.1.gz +man/man1/dicar.1.gz +man/man1/dpbindic.1.gz +man/man1/dpromdic.1.gz +man/man1/lsdic.1.gz +man/man1/mkbindic.1.gz +man/man1/mkdic.1.gz +man/man1/mkromdic.1.gz +man/man1/mvdic.1.gz +man/man1/rmdic.1.gz +man/man1/splitword.1.gz +man/man1/wtoc.1.gz +man/man3/RkBgnBun.3.gz +man/man3/RkCloseRoma.3.gz +man/man3/RkCvtEuc.3.gz +man/man3/RkCvtHan.3.gz +man/man3/RkCvtHira.3.gz +man/man3/RkCvtKana.3.gz +man/man3/RkCvtRoma.3.gz +man/man3/RkCvtZen.3.gz +man/man3/RkDefineDic.3.gz +man/man3/RkDeleteDic.3.gz +man/man3/RkEndBun.3.gz +man/man3/RkEnlarge.3.gz +man/man3/RkFinalize.3.gz +man/man3/RkGetDicList.3.gz +man/man3/RkGetKanji.3.gz +man/man3/RkGetLex.3.gz +man/man3/RkGetStat.3.gz +man/man3/RkGetYomi.3.gz +man/man3/RkGoto.3.gz +man/man3/RkInitialize.3.gz +man/man3/RkIntro.3.gz +man/man3/RkLeft.3.gz +man/man3/RkMapPhonogram.3.gz +man/man3/RkMapRoma.3.gz +man/man3/RkMountDic.3.gz +man/man3/RkNext.3.gz +man/man3/RkNfer.3.gz +man/man3/RkOpenRoma.3.gz +man/man3/RkPrev.3.gz +man/man3/RkRemountDic.3.gz +man/man3/RkResize.3.gz +man/man3/RkRight.3.gz +man/man3/RkShorten.3.gz +man/man3/RkStoreYomi.3.gz +man/man3/RkUnmountDic.3.gz +man/man3/RkXfer.3.gz +man/man3/XKanjiControl.3.gz +man/man3/XLookupKanjiString.3.gz +man/man3/cannalib.3.gz +man/man3/jrKanjiControl.3.gz +man/man3/jrKanjiString.3.gz +man/man3/uilib.3.gz @dirrmtry %%DATADIR%%/dic/canna @dirrmtry %%DATADIR%%/dic @dirrmtry %%DATADIR%% |