diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2005-05-30 03:10:29 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2005-05-30 03:10:29 +0000 |
commit | 2550cf46918b96510e3c81bb278e18b9246934d9 (patch) | |
tree | 7e41a89bc8121fc67b3fc8da6958dffd333ea65e /japanese | |
parent | c7ebfe1a6b3e68b4351fe05c95fca2b7519839f3 (diff) | |
download | FreeBSD-ports-2550cf46918b96510e3c81bb278e18b9246934d9.zip FreeBSD-ports-2550cf46918b96510e3c81bb278e18b9246934d9.tar.gz |
Add mecab-razil , yet Another Part-of-Speech and Morphological Analyzer
with razil patch.
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/Makefile | 1 | ||||
-rw-r--r-- | japanese/mecab-razil/Makefile | 50 | ||||
-rw-r--r-- | japanese/mecab-razil/distinfo | 6 | ||||
-rw-r--r-- | japanese/mecab-razil/pkg-descr | 4 | ||||
-rw-r--r-- | japanese/mecab-razil/pkg-plist | 3 |
5 files changed, 64 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile index bd48817..1d9d06c 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -208,6 +208,7 @@ SUBDIR += man-doc SUBDIR += marumoji-fonts SUBDIR += mecab + SUBDIR += mecab-razil SUBDIR += mell SUBDIR += mendexk-euc SUBDIR += mendexk-sjis diff --git a/japanese/mecab-razil/Makefile b/japanese/mecab-razil/Makefile new file mode 100644 index 0000000..c424f5f --- /dev/null +++ b/japanese/mecab-razil/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: mecab-razil +# Date created: 2 April 2003 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= ${MECAB_PORTNAME} +PORTVERSION= ${MECAB_PORTVERSION} +CATEGORIES= japanese textproc +MASTER_SITES= http://chasen.org/~taku/software/mecab/src/ \ + http://chasen.naist.jp/stable/ipadic/:ipadic +PKGNAMESUFFIX= -razil +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + ${IPADIC_DISTNAME}${EXTRACT_SUFX}:ipadic + +PATCH_SITES= http://dev.razil.jp/archive/ +PATCHFILES= mecab-0.81.mte.patch +PATCH_DIST_STRIP= -p1 + +MAINTAINER= kuriyama@FreeBSD.org +COMMENT= Yet Another Part-of-Speech and Morphological Analyzer with razil patch + +LIB_DEPENDS= mecab.0:${MECAB_PORTDIR} + +USE_PERL5_BUILD= yes +USE_REINPLACE= yes +USE_LIBTOOL_VER=15 +INSTALLS_SHLIB= yes +CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" + +IPADIC_DISTNAME= ipadic-2.5.1 + +.include "${.CURDIR}/../mecab/Makefile.common" + +post-extract: + ${LN} -s ${WRKDIR}/${IPADIC_DISTNAME} ${WRKSRC}/dic/ + +post-patch: + ${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \ + -e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT} + ${REINPLACE_CMD} -e 's/mecab\.la/mecab-razil.la/g' \ + ${WRKSRC}/src/Makefile.in + +do-install: + @${INSTALL_DATA} ${WRKSRC}/src/.libs/libmecab-razil.a ${PREFIX}/lib/ + @${INSTALL_DATA} ${WRKSRC}/src/.libs/libmecab-razil.so.0 ${PREFIX}/lib/ + @${LN} -s libmecab-razil.so.0 ${PREFIX}/lib/libmecab-razil.so + +.include <bsd.port.mk> diff --git a/japanese/mecab-razil/distinfo b/japanese/mecab-razil/distinfo new file mode 100644 index 0000000..49abf58 --- /dev/null +++ b/japanese/mecab-razil/distinfo @@ -0,0 +1,6 @@ +MD5 (mecab-0.81.tar.gz) = c38a9b4551abc623d7f13d7e5a5d668e +SIZE (mecab-0.81.tar.gz) = 358596 +MD5 (ipadic-2.5.1.tar.gz) = 18c37ad9d02aa79e9f9ce752ee4ecea6 +SIZE (ipadic-2.5.1.tar.gz) = 4212891 +MD5 (mecab-0.81.mte.patch) = 6d2fb3ba54ecdba18f3c5436a21a538b +SIZE (mecab-0.81.mte.patch) = 20881 diff --git a/japanese/mecab-razil/pkg-descr b/japanese/mecab-razil/pkg-descr new file mode 100644 index 0000000..935b1b1 --- /dev/null +++ b/japanese/mecab-razil/pkg-descr @@ -0,0 +1,4 @@ +MeCab: Yet Another Part-of-Speech and Morphological Analyzer with razil patch + +Author: Taku Kudoh <taku-ku@is.aist-nara.ac.jp> +WWW: http://chasen.org/~taku/software/mecab/ diff --git a/japanese/mecab-razil/pkg-plist b/japanese/mecab-razil/pkg-plist new file mode 100644 index 0000000..dfd22fc --- /dev/null +++ b/japanese/mecab-razil/pkg-plist @@ -0,0 +1,3 @@ +lib/libmecab-razil.a +lib/libmecab-razil.so +lib/libmecab-razil.so.0 |