diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2008-10-26 19:48:19 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2008-10-26 19:48:19 +0000 |
commit | 1f997d2be886359f6912449935fafda7ae335012 (patch) | |
tree | 6e7746178ea2f16f47e17211582555d8cfc1a1cc /japanese/canna-lib | |
parent | a8dc9708f71921040dac794d2959276c0c1c6c33 (diff) | |
download | ports-1f997d2be886359f6912449935fafda7ae335012.tar.gz ports-1f997d2be886359f6912449935fafda7ae335012.zip |
Notes
Diffstat (limited to 'japanese/canna-lib')
-rw-r--r-- | japanese/canna-lib/Makefile | 70 | ||||
-rw-r--r-- | japanese/canna-lib/files/canna.sh.in | 44 | ||||
-rw-r--r-- | japanese/canna-lib/files/patch-Canna.conf (renamed from japanese/canna-lib/files/patch-ac) | 0 | ||||
-rw-r--r-- | japanese/canna-lib/files/patch-Imakefile | 19 | ||||
-rw-r--r-- | japanese/canna-lib/pkg-descr | 18 | ||||
-rw-r--r-- | japanese/canna-lib/pkg-install | 7 | ||||
-rw-r--r-- | japanese/canna-lib/pkg-message | 13 | ||||
-rw-r--r-- | japanese/canna-lib/pkg-plist | 111 |
8 files changed, 35 insertions, 247 deletions
diff --git a/japanese/canna-lib/Makefile b/japanese/canna-lib/Makefile index 461d32e52ed8..ef4267da52d8 100644 --- a/japanese/canna-lib/Makefile +++ b/japanese/canna-lib/Makefile @@ -1,72 +1,28 @@ -# New ports collection makefile for: Canna -# Date created: 3 November 1995 -# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp> -# NIIMI Satoshi <sa2c@and.or.jp> +# New ports collection makefile for: canna-lib +# Date created: 7 September 2008 +# Whom: hrs # # $FreeBSD$ # -PORTNAME= Canna +PORTNAME= canna PORTVERSION= 3.7p3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= japanese MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} MASTER_SITE_SUBDIR= canna/9565/ -DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g} +PKGNAMESUFFIX= -lib +DISTNAME= Canna${PORTVERSION:S/.//g} -MAINTAINER= ports@FreeBSD.org -COMMENT= Kana-Kanji conversion system +MAINTAINER= hrs@FreeBSD.org +COMMENT= A Kana-to-Kanji conversion system, library part -USE_RC_SUBR= yes USE_BZIP2= yes -USE_IMAKE= yes -ALL_TARGET= canna USE_LDCONFIG= yes +USE_IMAKE= yes +NO_INSTALL_MANPAGES=yes -MANLANG="" ja -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 -MANCOMPRESSED= no -XFREE86_HTML_MAN= no - -.if !defined(NOPORTDOCS) -PORTDOCS= canna.bib canna.sty Imakefile README.jp Makefile \ - intern lisp man -.endif - -post-build: - @${SED} -e "s,@PREFIX@,${PREFIX},g; s,@RC_SUBR@,${RC_SUBR},g; \ - s,@RM@,${RM},g; s,@TOUCH@,${TOUCH},g; \ - s,@CHOWN@,${CHOWN},g" ${FILESDIR}/canna.sh.in \ - > ${WRKDIR}/canna.sh - -post-install: -.for f in user user/user group - @${MKDIR} ${PREFIX}/lib/canna/dic/$f - @${CHOWN} bin:bin ${PREFIX}/lib/canna/dic/$f - @${CHMOD} 775 ${PREFIX}/lib/canna/dic/$f -.endfor - @${ECHO} "Installing a startup script as ${PREFIX}/etc/rc.d/canna.sh." - @${INSTALL_SCRIPT} ${WRKDIR}/canna.sh ${PREFIX}/etc/rc.d/canna.sh - @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - @${CAT} ${PKGMESSAGE} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for f in ${PORTDOCS} - @${CP} -R ${WRKSRC}/doc/$f ${DOCSDIR} -.endfor - @${CHOWN} -R root:wheel ${DOCSDIR} -.endif +ALL_TARGET= canna +INSTALL_TARGET= instsgs .include <bsd.port.mk> diff --git a/japanese/canna-lib/files/canna.sh.in b/japanese/canna-lib/files/canna.sh.in deleted file mode 100644 index 236d28e9b454..000000000000 --- a/japanese/canna-lib/files/canna.sh.in +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: canna -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Define these canna_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/canna -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -canna_enable=${canna_enable:-"NO"} # Enable canna -#canna_program="@PREFIX@/sbin/cannaserver" # Location of canna -canna_flags=${canna_flags:-"-u bin"} # Flags to canna program -# Put the following into /etc/rc.conf if you want to use a TCP -# connection instead of a UNIX domain socket. -#canna_flags="-u bin -inet" - -. @RC_SUBR@ - -name="canna" -rcvar=`set_rcvar` -command="@PREFIX@/sbin/cannaserver" -start_precmd="canna_prestart" -stop_cmd="canna_stop" - -canna_prestart() { - @RM@ -f /tmp/.iroha_unix/IROHA - @TOUCH@ /var/log/CANNA0msgs - @CHOWN@ bin:bin /var/log/CANNA0msgs -} - -canna_stop() { - @PREFIX@/sbin/cannakill && echo "Stopping ${name}." -} - -load_rc_config $name -run_rc_command "$1" diff --git a/japanese/canna-lib/files/patch-ac b/japanese/canna-lib/files/patch-Canna.conf index a3bef982a0f9..a3bef982a0f9 100644 --- a/japanese/canna-lib/files/patch-ac +++ b/japanese/canna-lib/files/patch-Canna.conf diff --git a/japanese/canna-lib/files/patch-Imakefile b/japanese/canna-lib/files/patch-Imakefile new file mode 100644 index 000000000000..122c2663323b --- /dev/null +++ b/japanese/canna-lib/files/patch-Imakefile @@ -0,0 +1,19 @@ +--- Imakefile.orig 2004-05-20 00:39:22.000000000 +0900 ++++ Imakefile 2008-09-07 15:25:52.000000000 +0900 +@@ -129,7 +129,7 @@ + install:: mkbindir mklibdir mkdicdir mkerrdir + instserver:: mkdicdir mkerrdir + instclient:: mkbindir mkdicdir +-instsgs:: mklibdir ++instsgs:: + instmost:: mkbindir mklibdir mkdicdir mkerrdir + + MakeDirectories(mkbindir, $(cannaBinDir)) +@@ -184,6 +184,7 @@ + (cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \ + $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \ + done ++ $(INSTALL) $(INSTALLFLAGS) $(INSTDATFLAGS) pubconf.h $(DESTDIR)$(cannaIncDir) + + instmost:: + @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ diff --git a/japanese/canna-lib/pkg-descr b/japanese/canna-lib/pkg-descr index d825639763b8..d61bb0bcb191 100644 --- a/japanese/canna-lib/pkg-descr +++ b/japanese/canna-lib/pkg-descr @@ -1,18 +1,4 @@ -Canna is a Kana-Kanji conversion server. -It supports Mule(Multi-lingual extention Emacs), kinput2 X11 input -method, etc. - - - To use from Mule (CANNA version), add the following to your .emacs file: - - (if (and (boundp 'CANNA) CANNA) ; Is it CANNA MULE? - (progn - (load-library "canna") - (canna) )) - - Then use the `C-o' key to begin kana-kanji conversion. Refer to the -Info file and the documents for more detail. +Canna is a Kana-Kanji conversion server. It supports +Mule(Multi-lingual extention Emacs), kinput2 X11 input method, etc. WWW: http://canna.sourceforge.jp/ - -- Max diff --git a/japanese/canna-lib/pkg-install b/japanese/canna-lib/pkg-install deleted file mode 100644 index df6e13e689fd..000000000000 --- a/japanese/canna-lib/pkg-install +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -if [ "$2" != "POST-INSTALL" ]; then exit 0; fi -(grep -v ^# /etc/services | grep canna >/dev/null) || \ -(echo "Now, you need to add following entry to your /etc/services:" ; - echo ; - echo " canna 5680/tcp" ; - echo ) diff --git a/japanese/canna-lib/pkg-message b/japanese/canna-lib/pkg-message deleted file mode 100644 index 77b15661590c..000000000000 --- a/japanese/canna-lib/pkg-message +++ /dev/null @@ -1,13 +0,0 @@ - -Now the cannaserver uses a UNIX domain scoekt 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" - diff --git a/japanese/canna-lib/pkg-plist b/japanese/canna-lib/pkg-plist index df6de75d0526..ad94f923df95 100644 --- a/japanese/canna-lib/pkg-plist +++ b/japanese/canna-lib/pkg-plist @@ -1,101 +1,10 @@ -bin/addwords -bin/canlisp -bin/cannacheck -bin/cannastat -bin/catdic -bin/chkconc -bin/chmoddic -bin/cpdic -bin/crfreq -bin/crxdic -bin/crxgram -bin/cshost -bin/ctow -bin/delwords -bin/dicar -bin/dpbindic -bin/dpromdic -bin/dpxdic -bin/forcpp -bin/forsort -bin/kpdic -bin/lsdic -bin/mergeword -bin/mkbindic -bin/mkdic -bin/mkromdic -bin/mvdic -bin/rmdic -bin/splitword -bin/syncdic -bin/wtoc -etc/rc.d/canna.sh +@comment $FreeBSD$ include/canna/RK.h include/canna/jrkanji.h include/canna/keydef.h include/canna/mfdef.h include/canna/pubconf.h include/canna/sysdep.h -share/canna/default.canna -share/canna/dic/canna/bushu.cld -share/canna/dic/canna/chimei.ctd -share/canna/dic/canna/dics.dir -share/canna/dic/canna/fuzokugo.cbd -share/canna/dic/canna/hojomwd.ctd -share/canna/dic/canna/hojoswd.ctd -share/canna/dic/canna/iroha.cbd -share/canna/dic/canna/iroha.cld -share/canna/dic/canna/kanasmpl.ctd -share/canna/dic/canna/katakana.ctd -share/canna/dic/canna/keishiki.ctd -share/canna/dic/canna/necgaiji.ctd -share/canna/dic/canna/number.ctd -share/canna/dic/canna/software.ctd -share/canna/dic/canna/suffix.ctd -share/canna/dic/default.cbp -share/canna/dic/english.cbp -share/canna/dic/jdaemon.cbp -share/canna/dic/just.cbp -share/canna/dic/kaisoku.cbp -share/canna/dic/kana.cbp -share/canna/dic/lan5.cbp -share/canna/dic/matsu.cbp -share/canna/dic/newjis.cbp -share/canna/dic/romaji.cbp -share/canna/dic/sokuon.cbp -share/canna/dic/tut.cbp -share/canna/dic/vje.cbp -share/canna/dic/wx2+.cbp -share/canna/sample/1.1.canna -share/canna/sample/1.2.canna -share/canna/sample/fixer.canna -share/canna/sample/jdemon.canna -share/canna/sample/just.canna -share/canna/sample/lan5.canna -share/canna/sample/matsu.canna -share/canna/sample/modes.canna -share/canna/sample/sample.canna -share/canna/sample/skk.canna -share/canna/sample/src/default.ctd -share/canna/sample/src/english.ctd -share/canna/sample/src/is.c -share/canna/sample/src/jdaemon.ctd -share/canna/sample/src/just.ctd -share/canna/sample/src/kaisoku.ctd -share/canna/sample/src/kana.ctd -share/canna/sample/src/lan5.ctd -share/canna/sample/src/matsu.ctd -share/canna/sample/src/newjis.ctd -share/canna/sample/src/romaji.ctd -share/canna/sample/src/sokuon.ctd -share/canna/sample/src/tut.ctd -share/canna/sample/src/vje.ctd -share/canna/sample/src/wx2+.ctd -share/canna/sample/tut.canna -share/canna/sample/unix.canna -share/canna/sample/verbose.canna -share/canna/sample/vje.canna -share/canna/sample/wx2+.canna lib/libRKC.a lib/libRKC.so lib/libRKC.so.1 @@ -108,22 +17,4 @@ lib/libcanna.so.1 lib/libcanna16.a lib/libcanna16.so lib/libcanna16.so.1 -sbin/cannaserver -sbin/cannakill -@exec mkdir -p %D/share/canna/dic/user/user %D/share/canna/dic/group -@exec chown bin:bin %D/share/canna/dic/user/user %D/share/canna/dic/user %D/share/canna/dic/group -@exec chmod 775 %D/share/canna/dic/user/user %D/share/canna/dic/user %D/share/canna/dic/group -@dirrm share/canna/sample/src -@dirrm share/canna/sample -@dirrm share/canna/dic/canna @dirrm include/canna -@dirrm lib/canna/dic/user/user -@dirrm lib/canna/dic/user -@dirrm lib/canna/dic/group -@dirrm lib/canna/dic -@dirrm lib/canna -@dirrmtry share/canna/dic/user/user -@dirrmtry share/canna/dic/user -@dirrmtry share/canna/dic/group -@dirrmtry share/canna/dic -@dirrmtry share/canna |