diff options
author | sno <sno@pkgsrc.org> | 2013-07-03 16:06:25 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2013-07-03 16:06:25 +0000 |
commit | 877aa98ca52e9a48e7fb1d12ee0a9233b42172f9 (patch) | |
tree | c7d27ce3dbdac59b258853545f3be11e498f41e4 /textproc | |
parent | d0f9aa833b3b105963a8ae1b37e44bcdd95c3ca7 (diff) | |
download | pkgsrc-877aa98ca52e9a48e7fb1d12ee0a9233b42172f9.tar.gz |
Adding package for CPAN distribution Lingua-EN-Words2Nums version 0.18
into textproc/p5-Lingua-EN-Words2Nums.
This module 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.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/p5-Lingua-EN-Words2Nums/DESCR | 6 | ||||
-rw-r--r-- | textproc/p5-Lingua-EN-Words2Nums/Makefile | 22 | ||||
-rw-r--r-- | textproc/p5-Lingua-EN-Words2Nums/distinfo | 5 |
3 files changed, 33 insertions, 0 deletions
diff --git a/textproc/p5-Lingua-EN-Words2Nums/DESCR b/textproc/p5-Lingua-EN-Words2Nums/DESCR new file mode 100644 index 00000000000..d7bde54350e --- /dev/null +++ b/textproc/p5-Lingua-EN-Words2Nums/DESCR @@ -0,0 +1,6 @@ +This module 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. diff --git a/textproc/p5-Lingua-EN-Words2Nums/Makefile b/textproc/p5-Lingua-EN-Words2Nums/Makefile new file mode 100644 index 00000000000..6227860ce47 --- /dev/null +++ b/textproc/p5-Lingua-EN-Words2Nums/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2013/07/03 16:06:25 sno Exp $ + +DISTNAME= Lingua-EN-Words2Nums-0.18 +PKGNAME= p5-${DISTNAME} +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Lingua/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Lingua-EN-Words2Nums/ +COMMENT= Perl module to convert English text to numbers +LICENSE= ${PERL5_LICENSE} + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +USE_LANGUAGES= # empty + +PERL5_PACKLIST= auto/Lingua/EN/Words2Nums/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" + +# TODO: also package Lingua-DE-Sentence, Lingua-HE-Sentence diff --git a/textproc/p5-Lingua-EN-Words2Nums/distinfo b/textproc/p5-Lingua-EN-Words2Nums/distinfo new file mode 100644 index 00000000000..35c1224abbe --- /dev/null +++ b/textproc/p5-Lingua-EN-Words2Nums/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2013/07/03 16:06:25 sno Exp $ + +SHA1 (Lingua-EN-Words2Nums-0.18.tar.gz) = bf0ecf389d9a937dd7465cdeb194c7a6462609bf +RMD160 (Lingua-EN-Words2Nums-0.18.tar.gz) = d9552bc29987dd23d565f2db529c34c315f3e0bc +Size (Lingua-EN-Words2Nums-0.18.tar.gz) = 7417 bytes |