diff --git a/textproc/Makefile b/textproc/Makefile index 3ea9e32c2a29..d8a79cdc5f97 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -576,6 +576,7 @@ SUBDIR += p5-Lingua-EN-Summarize SUBDIR += p5-Lingua-EN-Syllable SUBDIR += p5-Lingua-EN-Tagger + SUBDIR += p5-Lingua-EN-Words2Nums SUBDIR += p5-Lingua-Ident SUBDIR += p5-Lingua-Identify SUBDIR += p5-Lingua-Ispell diff --git a/textproc/p5-Lingua-EN-Words2Nums/Makefile b/textproc/p5-Lingua-EN-Words2Nums/Makefile new file mode 100644 index 000000000000..16c2e683433e --- /dev/null +++ b/textproc/p5-Lingua-EN-Words2Nums/Makefile @@ -0,0 +1,20 @@ +# Created by: Sunpoet Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= Lingua-EN-Words2Nums +PORTVERSION= 0.18 +CATEGORIES= textproc perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Convert English text to numbers + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +PERL_CONFIGURE= yes + +MAN3= Lingua::EN::Words2Nums.3 + +.include diff --git a/textproc/p5-Lingua-EN-Words2Nums/distinfo b/textproc/p5-Lingua-EN-Words2Nums/distinfo new file mode 100644 index 000000000000..f97568daceab --- /dev/null +++ b/textproc/p5-Lingua-EN-Words2Nums/distinfo @@ -0,0 +1,2 @@ +SHA256 (Lingua-EN-Words2Nums-0.18.tar.gz) = 686556797cd2a4eaa066f19bbf03ab25c06278292c9ead2f187dfd9031ea1d85 +SIZE (Lingua-EN-Words2Nums-0.18.tar.gz) = 7417 diff --git a/textproc/p5-Lingua-EN-Words2Nums/pkg-descr b/textproc/p5-Lingua-EN-Words2Nums/pkg-descr new file mode 100644 index 000000000000..6e7aa127ab23 --- /dev/null +++ b/textproc/p5-Lingua-EN-Words2Nums/pkg-descr @@ -0,0 +1,8 @@ +Lingua::EN::Words2Nums converts English text into numbers. It supports both +ordinal and cardinal numbers, negative numbers, and very large numbers. + +The main subroutine, which is exported by default, is words2nums(). This +subroutine, when fed a string, will attempt to convert it into a number. If it +succeeds, the number will be returned. If it fails, it returns undef. + +WWW: http://search.cpan.org/dist/Lingua-EN-Words2Nums/ diff --git a/textproc/p5-Lingua-EN-Words2Nums/pkg-plist b/textproc/p5-Lingua-EN-Words2Nums/pkg-plist new file mode 100644 index 000000000000..4f5a6d275f8a --- /dev/null +++ b/textproc/p5-Lingua-EN-Words2Nums/pkg-plist @@ -0,0 +1,7 @@ +%%SITE_PERL%%/Lingua/EN/Words2Nums.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Words2Nums/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Words2Nums +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua +@dirrmtry %%SITE_PERL%%/Lingua/EN +@dirrmtry %%SITE_PERL%%/Lingua