diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2001-07-23 17:54:11 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2001-07-23 17:54:11 +0800 |
commit | 8214d04ff4c91c39ef01eb0b507271a7a673136f (patch) | |
tree | 6605eb7661d232382aa2c8969e31a25c2a54343d /japanese | |
parent | e27c49b3759fbc10a12b70ab02eb99e2e89f6881 (diff) | |
download | freebsd-ports-gnome-8214d04ff4c91c39ef01eb0b507271a7a673136f.tar.gz freebsd-ports-gnome-8214d04ff4c91c39ef01eb0b507271a7a673136f.tar.zst freebsd-ports-gnome-8214d04ff4c91c39ef01eb0b507271a7a673136f.zip |
Porting latest chasen suite from NetBSD pkgsrc.
o Make ja-chasen meta-port.
o Upgrade to 2.2.7.
o Separate ipadic to ja-ipadic-2.4.4.
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/Makefile | 2 | ||||
-rw-r--r-- | japanese/chasen-base/Makefile | 27 | ||||
-rw-r--r-- | japanese/chasen-base/distinfo | 2 | ||||
-rw-r--r-- | japanese/chasen-base/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/chasen-base/pkg-descr | 3 | ||||
-rw-r--r-- | japanese/chasen-base/pkg-plist | 30 | ||||
-rw-r--r-- | japanese/chasen/Makefile | 36 | ||||
-rw-r--r-- | japanese/chasen/files/Makefile.lib | 32 | ||||
-rw-r--r-- | japanese/chasen/files/patch-aa | 57 | ||||
-rw-r--r-- | japanese/chasen/files/patch-ab | 11 | ||||
-rw-r--r-- | japanese/chasen/files/patch-ac | 11 | ||||
-rw-r--r-- | japanese/chasen/files/patch-ad | 11 | ||||
-rw-r--r-- | japanese/chasen/pkg-plist | 40 | ||||
-rw-r--r-- | japanese/ipadic/Makefile | 25 | ||||
-rw-r--r-- | japanese/ipadic/distinfo | 1 | ||||
-rw-r--r-- | japanese/ipadic/files/patch-aa | 13 | ||||
-rw-r--r-- | japanese/ipadic/files/patch-ab | 13 | ||||
-rw-r--r-- | japanese/ipadic/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/ipadic/pkg-descr | 3 | ||||
-rw-r--r-- | japanese/ipadic/pkg-plist | 20 |
20 files changed, 151 insertions, 188 deletions
diff --git a/japanese/Makefile b/japanese/Makefile index 72797c2f743b..bfe1917a82ec 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -23,6 +23,7 @@ SUBDIR += canuum SUBDIR += cdrom2 SUBDIR += chasen + SUBDIR += chasen-base SUBDIR += chimera SUBDIR += csrd SUBDIR += dbskkd-cdb @@ -85,6 +86,7 @@ SUBDIR += hex SUBDIR += hns SUBDIR += ical + SUBDIR += ipadic SUBDIR += ircII SUBDIR += iv SUBDIR += japaneseAFM diff --git a/japanese/chasen-base/Makefile b/japanese/chasen-base/Makefile new file mode 100644 index 000000000000..9641d0666d37 --- /dev/null +++ b/japanese/chasen-base/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: chasen-base +# Date created: 23 Jul 2001 +# Whom: kuriyama +# +# $NetBSD: Makefile,v 1.2 1999/06/07 09:54:39 sakamoto Exp $ +# $FreeBSD$ +# + +PORTNAME= chasen +PORTVERSION= 2.2.7 +CATEGORIES= japanese +MASTER_SITES= http://chasen.aist-nara.ac.jp/stable/chasen/ +PKGNAMESUFFIX= -base + +PATCHFILES= chasen-${PORTVERSION}-nmz.diff +PATCH_SITES= ${MASTER_SITES} +PATCH_DIST_STRIP= -p1 + +MAINTAINER= ports@FreeBSD.org + +GNU_CONFIGURE= YES +USE_LIBTOOL= YES + +post-install: + ${MKDIR} ${PREFIX}/share/chasen/dic + +.include <bsd.port.mk> diff --git a/japanese/chasen-base/distinfo b/japanese/chasen-base/distinfo new file mode 100644 index 000000000000..963820e7932d --- /dev/null +++ b/japanese/chasen-base/distinfo @@ -0,0 +1,2 @@ +MD5 (chasen-2.2.7.tar.gz) = e1245a799f5b406e11099f394c682c9e +MD5 (chasen-2.2.7-nmz.diff) = bbafd5af021beeddee11676654a43c81 diff --git a/japanese/chasen-base/pkg-comment b/japanese/chasen-base/pkg-comment new file mode 100644 index 000000000000..55ccb1734ecc --- /dev/null +++ b/japanese/chasen-base/pkg-comment @@ -0,0 +1 @@ +Japanese Morphological Analysis System diff --git a/japanese/chasen-base/pkg-descr b/japanese/chasen-base/pkg-descr new file mode 100644 index 000000000000..3836fbdafc74 --- /dev/null +++ b/japanese/chasen-base/pkg-descr @@ -0,0 +1,3 @@ +Japanese Morphological Analysis System + +WWW: http://chasen.aist-nara.ac.jp/ diff --git a/japanese/chasen-base/pkg-plist b/japanese/chasen-base/pkg-plist new file mode 100644 index 000000000000..4c98c8d26ce4 --- /dev/null +++ b/japanese/chasen-base/pkg-plist @@ -0,0 +1,30 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/01/10 14:45:03 taca Exp $ +bin/chasen +bin/chasen-config +include/chasen.h +lib/libchasen.a +lib/libchasen.so +lib/libchasen.so.0 +libexec/chasen/convary +libexec/chasen/convdic +libexec/chasen/makeint +libexec/chasen/makemat +libexec/chasen/mkary +libexec/chasen/pattool +libexec/chasen/sortdic +@dirrm libexec/chasen +@exec mkdir -p %D/share/chasen/dic >/dev/null 2>&1 || true +@dirrm share/chasen/dic +share/chasen/doc/manual-j.pdf +share/chasen/doc/manual-j.tex +share/chasen/doc/manual.pdf +share/chasen/doc/manual.tex +@dirrm share/chasen/doc +share/chasen/prolog/README.prolog +share/chasen/prolog/chasen.pl +share/chasen/prolog/chasen_user.pl +share/chasen/prolog/jinput.pl +share/chasen/prolog/juman.pl +share/chasen/prolog/utils.pl +@dirrm share/chasen/prolog +@dirrm share/chasen diff --git a/japanese/chasen/Makefile b/japanese/chasen/Makefile index ff886b8c318b..204383429758 100644 --- a/japanese/chasen/Makefile +++ b/japanese/chasen/Makefile @@ -7,39 +7,19 @@ # PORTNAME= chasen -PORTVERSION= 2.02 -PORTREVISION= 3 +PORTVERSION= 2.2.7 CATEGORIES= japanese -MASTER_SITES= ftp://ftp.aist-nara.ac.jp/pub/lab/nlp/tools/chasen/ -DISTNAME= ${PORTNAME}-sys${PORTVERSION}-ipadic2.1 +MASTER_SITES= # empty +DISTFILES= # empty +EXTRACT_ONLY= # empty MAINTAINER= ports@FreeBSD.org -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -MAKE_ARGS= NOPROFILE=true -INSTALLS_SHLIB= yes +RUN_DEPENDS= chasen:${PORTSDIR}/japanese/chasen-base \ + ${LOCALBASE}/share/chasen/dic/ipadic/cforms.cha:${PORTSDIR}/japanese/ipadic -DOCS_EN= README doc/manual.pdf doc/manual.tex -DOCS_JA= CHANGES README.ja doc/manual-j.pdf doc/manual-j.tex +NO_BUILD= YES -post-patch: - ${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/lib/Makefile - -post-build: - @${ECHO_MSG} "Making dictionaries" - @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} dic - -post-install: - ${MKDIR} ${PREFIX}/include/chasen - @cd ${WRKSRC}/lib; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} install -.if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/chasen/ja -.for f in ${DOCS_EN} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/chasen/ -.endfor -.for f in ${DOCS_JA} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/chasen/ja/ -.endfor -.endif +do-install: .include <bsd.port.mk> diff --git a/japanese/chasen/files/Makefile.lib b/japanese/chasen/files/Makefile.lib deleted file mode 100644 index b3e41cd1996e..000000000000 --- a/japanese/chasen/files/Makefile.lib +++ /dev/null @@ -1,32 +0,0 @@ -# $FreeBSD$ - -LIB= chasen -SHLIB_MAJOR?= 0 -SHLIB_MINOR?= 0 -SRCS= connect.c getid.c grammar.c iotool.c katuyou.c zentohan.c lisp.c \ - chalib.c parse.c init.c print.c \ - pat.c patfile.c \ - chfile.c select.c \ - jfgets.c getopt.c -INCS= chadic.h chalib.h pat.h sufary.h - -NOMAN= YES -LIBDIR= ${LOCALBASE}/lib -INCDIR= ${LOCALBASE}/include/chasen - -.include <bsd.lib.mk> - -# For FreeBSD 3.x or older -.if !target(_includeinstall) -_includeinstall: -.if defined(INCS) -.for header in ${INCS} - cd ${.CURDIR} && \ - ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} \ - ${header} ${DESTDIR}${INCDIR} - -.endfor -.endif - -beforeinstall: _includeinstall -.endif diff --git a/japanese/chasen/files/patch-aa b/japanese/chasen/files/patch-aa deleted file mode 100644 index a1cfde037740..000000000000 --- a/japanese/chasen/files/patch-aa +++ /dev/null @@ -1,57 +0,0 @@ ---- Makefile.orig Wed Dec 29 01:12:01 1999 -+++ Makefile Thu Mar 1 18:12:40 2001 -@@ -9,8 +9,8 @@ - # - - # --- commands & flags --CC = gcc --CFLAGS = -O2 -+#CC = gcc -+#CFLAGS = -O2 - CCOUT = - LDFLAGS = - RM = rm -f -@@ -19,8 +19,8 @@ - - # --- installation files and directories - CHASEN = chasen --BINDIR = /usr/local/bin --LIBDIR = /usr/local/lib/chasen -+BINDIR = $(PREFIX)/bin -+LIBDIR = $(PREFIX)/share/chasen - MKDICDIR = $(LIBDIR)/mkchadic - DICDIR = $(LIBDIR)/dic - -@@ -42,7 +42,7 @@ - SHELL = /bin/sh - DEFS = $(KOCHA) $(VGRAM) $(SJIS) $(NO_MMAP) - MAKE = make --MFLAGS = CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" RM="$(RM)" \ -+MFLAGS = CC="$(CC)" CFLAGS="$(CFLAGS) $(DEFS)" LDFLAGS="$(LDFLAGS)" RM="$(RM)" \ - YACC="$(YACC)" CHASEN="$(CHASEN)" CCOUT="$(CCOUT)" \ - NETLIBS="$(NETLIBS)" CHASEN_PORT="$(CHASEN_PORT)" \ - RANLIB="$(RANLIB)" -@@ -74,17 +74,17 @@ - $(MAKE) VGRAM= - - chasen:: -- cd lib; $(MAKE) $(MFLAGS) DEFS="$(DEFS)" -- cd mkchadic; $(MAKE) $(MFLAGS) DEFS="$(DEFS)" -- cd chasen; $(MAKE) $(MFLAGS) DEFS="$(DEFS)" -+ cd lib; $(MAKE) $(MFLAGS) -+ cd mkchadic; $(MAKE) $(MFLAGS) -+ cd chasen; $(MAKE) $(MFLAGS) - - chasen.win:: - cd lib -- $(MAKE) $(MFLAGS) DEFS="$(DEFS)" win -+ $(MAKE) $(MFLAGS) win - cd ..\mkchadic -- $(MAKE) $(MFLAGS) DEFS="$(DEFS)" win -+ $(MAKE) $(MFLAGS) win - cd ..\chasen -- $(MAKE) $(MFLAGS) DEFS="$(DEFS)" win -+ $(MAKE) $(MFLAGS) win - cd .. - - dic:: diff --git a/japanese/chasen/files/patch-ab b/japanese/chasen/files/patch-ab deleted file mode 100644 index 5d31a665936a..000000000000 --- a/japanese/chasen/files/patch-ab +++ /dev/null @@ -1,11 +0,0 @@ ---- chasen/Makefile~ Fri Dec 17 02:53:09 1999 -+++ chasen/Makefile Sun Feb 27 00:11:55 2000 -@@ -5,7 +5,7 @@ - - CP = cp - SHELL = /bin/sh --BINDIR = /usr/local/bin -+BINDIR = $(PREFIX)/bin - RM = rm -f - - LIBDIR = ../lib diff --git a/japanese/chasen/files/patch-ac b/japanese/chasen/files/patch-ac deleted file mode 100644 index c5721618a196..000000000000 --- a/japanese/chasen/files/patch-ac +++ /dev/null @@ -1,11 +0,0 @@ ---- dic/Makefile~ Wed Dec 29 11:19:41 1999 -+++ dic/Makefile Sun Feb 27 00:12:25 2000 -@@ -16,7 +16,7 @@ - TABLE = table.cha - MATRIX = matrix.cha - SHELL = /bin/sh --LIBDIR = /usr/local/lib/chasen -+LIBDIR = $(PREFIX)/share/chasen - DICDIR = $(LIBDIR)/dic - MAKEINT = makeint - MAKE = make diff --git a/japanese/chasen/files/patch-ad b/japanese/chasen/files/patch-ad deleted file mode 100644 index 20ebc84aad0b..000000000000 --- a/japanese/chasen/files/patch-ad +++ /dev/null @@ -1,11 +0,0 @@ ---- mkchadic/Makefile~ Fri Dec 17 02:52:59 1999 -+++ mkchadic/Makefile Sun Feb 27 00:13:05 2000 -@@ -5,7 +5,7 @@ - CP = cp - MV = mv -f - SHELL = /bin/sh --LIBDIR = /usr/local/lib/chasen -+LIBDIR = $(PREFIX)/share/chasen - - MKDICDIR = $(LIBDIR)/mkchadic - LIBDIR = ../lib diff --git a/japanese/chasen/pkg-plist b/japanese/chasen/pkg-plist index 9a7434979106..d0e69760de89 100644 --- a/japanese/chasen/pkg-plist +++ b/japanese/chasen/pkg-plist @@ -1,38 +1,2 @@ -@comment $NetBSD: PLIST,v 1.2 1999/06/07 09:54:39 sakamoto Exp $ -bin/chasen -include/chasen/chadic.h -include/chasen/chalib.h -include/chasen/pat.h -include/chasen/sufary.h -@dirrm include/chasen -lib/libchasen.a -lib/libchasen.so -lib/libchasen.so.0 -share/chasen/dic/Makefile -share/chasen/dic/cforms.cha -share/chasen/dic/chadic.int -share/chasen/dic/chadic.pat -share/chasen/dic/chasenrc -share/chasen/dic/connect.cha -share/chasen/dic/ctypes.cha -share/chasen/dic/grammar.cha -share/chasen/dic/matrix.cha -share/chasen/dic/table.cha -share/chasen/mkchadic/convdic -share/chasen/mkchadic/makeint -share/chasen/mkchadic/makemat -share/chasen/mkchadic/mkary -share/chasen/mkchadic/pattool -share/chasen/mkchadic/sortdic -@dirrm share/chasen/mkchadic -@dirrm share/chasen/dic -@dirrm share/chasen -%%PORTDOCS%%share/doc/chasen/README -%%PORTDOCS%%share/doc/chasen/manual.pdf -%%PORTDOCS%%share/doc/chasen/manual.tex -%%PORTDOCS%%share/doc/chasen/ja/CHANGES -%%PORTDOCS%%share/doc/chasen/ja/README.ja -%%PORTDOCS%%share/doc/chasen/ja/manual-j.pdf -%%PORTDOCS%%share/doc/chasen/ja/manual-j.tex -%%PORTDOCS%%@dirrm share/doc/chasen/ja -%%PORTDOCS%%@dirrm share/doc/chasen +@comment $NetBSD: PLIST,v 1.3 2001/01/07 13:30:58 taca Exp $ +@comment this plist intentionally left empty diff --git a/japanese/ipadic/Makefile b/japanese/ipadic/Makefile new file mode 100644 index 000000000000..aa8c33f8b201 --- /dev/null +++ b/japanese/ipadic/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: ipadic +# Date created: 23 Jul 2001 +# Whom: kuriyama +# +# $NetBSD: Makefile,v 1.10 2001/04/13 14:54:07 kei Exp $ +# $FreeBSD$ +# + +PORTNAME= ipadic +PORTVERSION= 2.4.4 +CATEGORIES= japanese +MASTER_SITES= http://chasen.aist-nara.ac.jp/stable/ipadic/ + +MAINTAINER= ports@FreeBSD.org + +BUILD_DEPENDS= chasen:${PORTSDIR}/japanese/chasen-base + +GNU_CONFIGURE= YES +USE_LIBTOOL= YES + +post-install: + ${INSTALL_DATA} ${WRKSRC}/chasenrc \ + ${PREFIX}/share/chasen/dic/ipadic/chasenrc.example + +.include <bsd.port.mk> diff --git a/japanese/ipadic/distinfo b/japanese/ipadic/distinfo new file mode 100644 index 000000000000..e81a2ff544a4 --- /dev/null +++ b/japanese/ipadic/distinfo @@ -0,0 +1 @@ +MD5 (ipadic-2.4.4.tar.gz) = c45936b371564a9b8af2a265ff712acd diff --git a/japanese/ipadic/files/patch-aa b/japanese/ipadic/files/patch-aa new file mode 100644 index 000000000000..600f936e21bd --- /dev/null +++ b/japanese/ipadic/files/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/01/10 14:47:47 taca Exp $ + +--- configure.in.orig Thu Mar 22 05:41:31 2001 ++++ configure.in +@@ -97,7 +97,7 @@ + CHASEN_GENDATA="matrix.cha table.cha chadic.int chadic.pat chadic.ary" + AC_SUBST(CHASEN_GENDATA) + +-CHASEN_PREDATA="grammar.cha ctypes.cha cforms.cha chasenrc connect.cha Makefile.bat" ++CHASEN_PREDATA="grammar.cha ctypes.cha cforms.cha connect.cha" + AC_SUBST(CHASEN_PREDATA) + + AC_OUTPUT([Makefile chasenrc ipadic.spec doc/Makefile]) diff --git a/japanese/ipadic/files/patch-ab b/japanese/ipadic/files/patch-ab new file mode 100644 index 000000000000..3de932a05908 --- /dev/null +++ b/japanese/ipadic/files/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/01/10 14:47:47 taca Exp $ + +--- configure.orig Fri Mar 23 02:51:03 2001 ++++ configure +@@ -1059,7 +1059,7 @@ + CHASEN_GENDATA="matrix.cha table.cha chadic.int chadic.pat chadic.ary" + + +-CHASEN_PREDATA="grammar.cha ctypes.cha cforms.cha chasenrc connect.cha Makefile.bat" ++CHASEN_PREDATA="grammar.cha ctypes.cha cforms.cha connect.cha" + + + trap '' 1 2 15 diff --git a/japanese/ipadic/pkg-comment b/japanese/ipadic/pkg-comment new file mode 100644 index 000000000000..95f8718d76ca --- /dev/null +++ b/japanese/ipadic/pkg-comment @@ -0,0 +1 @@ +Japanese Morphological Dictionary for ChaSen diff --git a/japanese/ipadic/pkg-descr b/japanese/ipadic/pkg-descr new file mode 100644 index 000000000000..96cf634e2f8e --- /dev/null +++ b/japanese/ipadic/pkg-descr @@ -0,0 +1,3 @@ +Japanese Morphological Dictionary for ChaSen. + +WWW: http://chasen.aist-nara.ac.jp/ diff --git a/japanese/ipadic/pkg-plist b/japanese/ipadic/pkg-plist new file mode 100644 index 000000000000..4d9f070d189e --- /dev/null +++ b/japanese/ipadic/pkg-plist @@ -0,0 +1,20 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/01/10 14:47:47 taca Exp $ +@unexec install-info --delete --info-dir=%D/info %D/info/ipadic-ja.info +info/ipadic-ja.info +info/ipadic-ja.info-1 +info/ipadic-ja.info-2 +info/ipadic-ja.info-3 +@exec install-info --info-dir=%D/info %D/info/ipadic-ja.info +share/chasen/dic/ipadic/cforms.cha +share/chasen/dic/ipadic/chadic.ary +share/chasen/dic/ipadic/chadic.int +share/chasen/dic/ipadic/chadic.pat +@unexec if cmp -s %D/etc/chasenrc %D/share/chasen/dic/ipadic/chasenrc.example; then rm -f %D/etc/chasenrc; else true; fi +share/chasen/dic/ipadic/chasenrc.example +@exec if [ ! -f %D/etc/chasenrc ]; then cp %F %D/etc/chasenrc; fi +share/chasen/dic/ipadic/connect.cha +share/chasen/dic/ipadic/ctypes.cha +share/chasen/dic/ipadic/grammar.cha +share/chasen/dic/ipadic/matrix.cha +share/chasen/dic/ipadic/table.cha +@dirrm share/chasen/dic/ipadic |