aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2013-01-13 10:15:36 +0800
committerkuriyama <kuriyama@FreeBSD.org>2013-01-13 10:15:36 +0800
commitce137f34ded8330fcf5216a89d29f75fb5ba8c03 (patch)
tree2a9a8d3d4e966c337082041df6718eb693407a89 /textproc
parentf472ff500cba9150b077037f3b3fc67ad3d4648e (diff)
downloadfreebsd-ports-gnome-ce137f34ded8330fcf5216a89d29f75fb5ba8c03.tar.gz
freebsd-ports-gnome-ce137f34ded8330fcf5216a89d29f75fb5ba8c03.tar.zst
freebsd-ports-gnome-ce137f34ded8330fcf5216a89d29f75fb5ba8c03.zip
This module will tell you if a number, either in words or as digits,
is a cardinal or ordinal number. This is useful if you e.g. want to distinguish these types of numbers found with Lingua::EN::FindNumber and take different actions. WWW: http://search.cpan.org/dist/Lingua-EN-Number-IsOrdinal/
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/p5-Lingua-EN-Number-IsOrdinal/Makefile23
-rw-r--r--textproc/p5-Lingua-EN-Number-IsOrdinal/distinfo2
-rw-r--r--textproc/p5-Lingua-EN-Number-IsOrdinal/pkg-descr7
-rw-r--r--textproc/p5-Lingua-EN-Number-IsOrdinal/pkg-plist5
5 files changed, 38 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index ca5707754914..7fbf99e73b2f 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -574,6 +574,7 @@
SUBDIR += p5-Lingua-EN-NameParse
SUBDIR += p5-Lingua-EN-NamedEntity
SUBDIR += p5-Lingua-EN-Nickname
+ SUBDIR += p5-Lingua-EN-Number-IsOrdinal
SUBDIR += p5-Lingua-EN-Numbers
SUBDIR += p5-Lingua-EN-Numbers-Easy
SUBDIR += p5-Lingua-EN-Numbers-Ordinate
diff --git a/textproc/p5-Lingua-EN-Number-IsOrdinal/Makefile b/textproc/p5-Lingua-EN-Number-IsOrdinal/Makefile
new file mode 100644
index 000000000000..462c8352bde9
--- /dev/null
+++ b/textproc/p5-Lingua-EN-Number-IsOrdinal/Makefile
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+PORTNAME= Lingua-EN-Number-IsOrdinal
+PORTVERSION= 0.03
+CATEGORIES= textproc perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= kuriyama@FreeBSD.org
+COMMENT= Perl extension to detect if English number is ordinal or cardinal
+
+RUN_DEPENDS= \
+ p5-Lingua-EN-FindNumber>0:${PORTSDIR}/textproc/p5-Lingua-EN-FindNumber
+BUILD_DEPENDS= ${RUN_DEPENDS}
+TEST_DEPENDS= \
+ p5-Test-Fatal>0:${PORTSDIR}/devel/p5-Test-Fatal \
+ p5-Try-Tiny:${PORTSDIR}/lang/p5-Try-Tiny
+
+PERL_CONFIGURE= yes
+
+MAN3= Lingua::EN::Number::IsOrdinal.3
+
+.include <bsd.port.mk>
diff --git a/textproc/p5-Lingua-EN-Number-IsOrdinal/distinfo b/textproc/p5-Lingua-EN-Number-IsOrdinal/distinfo
new file mode 100644
index 000000000000..b267defd9862
--- /dev/null
+++ b/textproc/p5-Lingua-EN-Number-IsOrdinal/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Lingua-EN-Number-IsOrdinal-0.03.tar.gz) = 9e8a1c1115cc9b3c8eb87902a9c154b56a3bea58400ed48856586bea818ac43f
+SIZE (Lingua-EN-Number-IsOrdinal-0.03.tar.gz) = 11131
diff --git a/textproc/p5-Lingua-EN-Number-IsOrdinal/pkg-descr b/textproc/p5-Lingua-EN-Number-IsOrdinal/pkg-descr
new file mode 100644
index 000000000000..11918c74c3f0
--- /dev/null
+++ b/textproc/p5-Lingua-EN-Number-IsOrdinal/pkg-descr
@@ -0,0 +1,7 @@
+This module will tell you if a number, either in words or as digits,
+is a cardinal or ordinal number.
+
+This is useful if you e.g. want to distinguish these types of numbers
+found with Lingua::EN::FindNumber and take different actions.
+
+WWW: http://search.cpan.org/dist/Lingua-EN-Number-IsOrdinal/
diff --git a/textproc/p5-Lingua-EN-Number-IsOrdinal/pkg-plist b/textproc/p5-Lingua-EN-Number-IsOrdinal/pkg-plist
new file mode 100644
index 000000000000..e39fc714fb78
--- /dev/null
+++ b/textproc/p5-Lingua-EN-Number-IsOrdinal/pkg-plist
@@ -0,0 +1,5 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Number/IsOrdinal/.packlist
+%%SITE_PERL%%/Lingua/EN/Number/IsOrdinal.pm
+@dirrmtry %%SITE_PERL%%/Lingua/EN/Number
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Number/IsOrdinal
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Number