diff options
author | clsung <clsung@FreeBSD.org> | 2006-10-05 04:52:44 +0000 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2006-10-05 04:52:44 +0000 |
commit | b8708a5096f90f9de69aa7bdc6e7596a6bc7bc5b (patch) | |
tree | 89e9913732222ffe12bebacce841d298b29d0aa2 | |
parent | dea1a99d372ba2e9b5111c24dd0097456cbb67f9 (diff) | |
download | FreeBSD-ports-b8708a5096f90f9de69aa7bdc6e7596a6bc7bc5b.zip FreeBSD-ports-b8708a5096f90f9de69aa7bdc6e7596a6bc7bc5b.tar.gz |
Add p5-Lingua-ZH-HanDetect 0.04, guess Chinese text\'s variant and
encoding.
PR: ports/103585
Submitted by: Gea-Suan Lin <gslin at gslin.org>
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/p5-Lingua-ZH-HanDetect/Makefile | 22 | ||||
-rw-r--r-- | chinese/p5-Lingua-ZH-HanDetect/distinfo | 3 | ||||
-rw-r--r-- | chinese/p5-Lingua-ZH-HanDetect/pkg-descr | 12 | ||||
-rw-r--r-- | chinese/p5-Lingua-ZH-HanDetect/pkg-plist | 8 |
5 files changed, 46 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index b072934..795a520 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -93,6 +93,7 @@ SUBDIR += p5-Encode-HanExtra SUBDIR += p5-Lingua-Han-Utils SUBDIR += p5-Lingua-ZH-BPMFConvert + SUBDIR += p5-Lingua-ZH-HanDetect SUBDIR += p5-Lingua-ZH-Keywords SUBDIR += p5-Lingua-ZH-Numbers SUBDIR += p5-Lingua-ZH-Summarize diff --git a/chinese/p5-Lingua-ZH-HanDetect/Makefile b/chinese/p5-Lingua-ZH-HanDetect/Makefile new file mode 100644 index 0000000..7ffa017 --- /dev/null +++ b/chinese/p5-Lingua-ZH-HanDetect/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: p5-Lingua-ZH-HanDetect +# Date created: 2006-09-25 +# Whom: Gea-Suan Lin <gslin@gslin.org> +# +# $FreeBSD$ +# + +PORTNAME= Lingua-ZH-HanDetect +PORTVERSION= 0.04 +CATEGORIES= chinese perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Lingua +PKGNAMEPREFIX= p5- + +MAINTAINER= gslin@gslin.org +COMMENT= Guess Chinese text\'s variant and encoding + +PERL_CONFIGURE= yes + +MAN3= Lingua::ZH::HanDetect.3 + +.include <bsd.port.mk> diff --git a/chinese/p5-Lingua-ZH-HanDetect/distinfo b/chinese/p5-Lingua-ZH-HanDetect/distinfo new file mode 100644 index 0000000..0b32bf5 --- /dev/null +++ b/chinese/p5-Lingua-ZH-HanDetect/distinfo @@ -0,0 +1,3 @@ +MD5 (Lingua-ZH-HanDetect-0.04.tar.gz) = bb86e8119d0d745013e45208468e34cc +SHA256 (Lingua-ZH-HanDetect-0.04.tar.gz) = 92cff3451d13103afbdca1268c3dc51ab93343233a06b63d45f11d9a53d29aec +SIZE (Lingua-ZH-HanDetect-0.04.tar.gz) = 4874 diff --git a/chinese/p5-Lingua-ZH-HanDetect/pkg-descr b/chinese/p5-Lingua-ZH-HanDetect/pkg-descr new file mode 100644 index 0000000..258f804 --- /dev/null +++ b/chinese/p5-Lingua-ZH-HanDetect/pkg-descr @@ -0,0 +1,12 @@ +Lingua::ZH::HanDetect uses statistical measures to test a text string +to see if it's in Traditional or Simplified Chinese, as well as which +encoding it is in. + +If the string does not contain Chinese characters, both the encoding +and variant values will be set to the empty string. + +This module is needed because the various encodings for Chinese text +tend to occupy the similar byte ranges, rendering Encode::Guess +ineffective. + +WWW: http://search.cpan.org/dist/Lingua-ZH-HanDetect/ diff --git a/chinese/p5-Lingua-ZH-HanDetect/pkg-plist b/chinese/p5-Lingua-ZH-HanDetect/pkg-plist new file mode 100644 index 0000000..0b47d95 --- /dev/null +++ b/chinese/p5-Lingua-ZH-HanDetect/pkg-plist @@ -0,0 +1,8 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH/HanDetect/.packlist +%%SITE_PERL%%/Lingua/ZH/HanDetect.pm +@dirrmtry %%SITE_PERL%%/Lingua/ZH +@dirrmtry %%SITE_PERL%%/Lingua +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH/HanDetect +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua |