pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/p5-Lingua-EN-Words2Nums Adding package for CP...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/52660a487984
branches:  trunk
changeset: 620991:52660a487984
user:      sno <sno%pkgsrc.org@localhost>
date:      Wed Jul 03 16:06:25 2013 +0000

description:
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:

 textproc/p5-Lingua-EN-Words2Nums/DESCR    |   6 ++++++
 textproc/p5-Lingua-EN-Words2Nums/Makefile |  22 ++++++++++++++++++++++
 textproc/p5-Lingua-EN-Words2Nums/distinfo |   5 +++++
 3 files changed, 33 insertions(+), 0 deletions(-)

diffs (45 lines):

diff -r c6b5dbbff18d -r 52660a487984 textproc/p5-Lingua-EN-Words2Nums/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-Lingua-EN-Words2Nums/DESCR    Wed Jul 03 16:06:25 2013 +0000
@@ -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 -r c6b5dbbff18d -r 52660a487984 textproc/p5-Lingua-EN-Words2Nums/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-Lingua-EN-Words2Nums/Makefile Wed Jul 03 16:06:25 2013 +0000
@@ -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@localhost
+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 -r c6b5dbbff18d -r 52660a487984 textproc/p5-Lingua-EN-Words2Nums/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-Lingua-EN-Words2Nums/distinfo Wed Jul 03 16:06:25 2013 +0000
@@ -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



Home | Main Index | Thread Index | Old Index