aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authoraaron <aaron@FreeBSD.org>2006-06-19 09:32:20 +0800
committeraaron <aaron@FreeBSD.org>2006-06-19 09:32:20 +0800
commit810c995e968c54eea3f55d06fdac0677fe1761cc (patch)
treefc70f30b1851ba92737dd2c79c02f7417b2950b4 /japanese
parent1a1d732d9e5abb910e0219d8ce4400a4b9775c60 (diff)
downloadfreebsd-ports-gnome-810c995e968c54eea3f55d06fdac0677fe1761cc.tar.gz
freebsd-ports-gnome-810c995e968c54eea3f55d06fdac0677fe1761cc.tar.zst
freebsd-ports-gnome-810c995e968c54eea3f55d06fdac0677fe1761cc.zip
Adding port japanese/p5-Lingua-JA-Numbers, Converts numeric values into
their Japanese string equivalents and vice versa. Approved by: tobez (implicit)
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/p5-Lingua-JA-Numbers/Makefile28
-rw-r--r--japanese/p5-Lingua-JA-Numbers/distinfo3
-rw-r--r--japanese/p5-Lingua-JA-Numbers/pkg-descr16
-rw-r--r--japanese/p5-Lingua-JA-Numbers/pkg-plist7
5 files changed, 55 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index c47065611355..12d55b799754 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -276,6 +276,7 @@
SUBDIR += p5-Date-Japanese-Holiday
SUBDIR += p5-FormValidator-Simple-Plugin-Number-Phone-JP
SUBDIR += p5-Jcode
+ SUBDIR += p5-Lingua-JA-Numbers
SUBDIR += p5-MeCab
SUBDIR += p5-Number-Phone-JP
SUBDIR += p5-PDFJ
diff --git a/japanese/p5-Lingua-JA-Numbers/Makefile b/japanese/p5-Lingua-JA-Numbers/Makefile
new file mode 100644
index 000000000000..603cdcfa301f
--- /dev/null
+++ b/japanese/p5-Lingua-JA-Numbers/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: p5-Lingua-JA-Numbers
+# Date created: 18 Jun 2006
+# Whom: Aaron Dalton <aaron@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Lingua-JA-Numbers
+PORTVERSION= 0.04
+CATEGORIES= japanese perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Lingua
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= aaron@FreeBSD.org
+COMMENT= Converts numeric values to and from their Japanese string equivalents
+
+MAN3= Lingua::JA::Numbers.3
+
+PERL_CONFIGURE= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500801 # as set by vendor
+IGNORE= requires at least Perl 5.8.1. Please install lang/perl5.8 and try again
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/japanese/p5-Lingua-JA-Numbers/distinfo b/japanese/p5-Lingua-JA-Numbers/distinfo
new file mode 100644
index 000000000000..0f783f353708
--- /dev/null
+++ b/japanese/p5-Lingua-JA-Numbers/distinfo
@@ -0,0 +1,3 @@
+MD5 (Lingua-JA-Numbers-0.04.tar.gz) = de7398b3207d0e97fdb48cb1b43f371d
+SHA256 (Lingua-JA-Numbers-0.04.tar.gz) = 18ce961f239096c0702b0aeab4ea4cf2e6461123145e4c1e29baa7f9cb474cde
+SIZE (Lingua-JA-Numbers-0.04.tar.gz) = 11712
diff --git a/japanese/p5-Lingua-JA-Numbers/pkg-descr b/japanese/p5-Lingua-JA-Numbers/pkg-descr
new file mode 100644
index 000000000000..45f40ddc7a00
--- /dev/null
+++ b/japanese/p5-Lingua-JA-Numbers/pkg-descr
@@ -0,0 +1,16 @@
+This module converts Japanese text in UTF-8 (or romaji in ascii) to
+number, AND vice versa. Though this pod is in English and all examples are
+in romaji to make http://search.cpan.org/ happy, this module does accept
+Japanese in UTF-8. Try the code below to see it.
+
+ perl -MLingua::JA::Numbers \
+ -e '$y="\x{4e8c}\x{5343}\x{4e94}"; printf "(C) %d Dan Kogai\n", ja2num($y)'
+
+CAVEAT
+
+DO NOT BE CONFUSED WITH Lingua::JA::Number by Mike Schilli. This module is
+far more comprehensive. As of 0.03, it even does its to_string() upon
+request.
+
+WWW: http://search.cpan.org/dist/Lingua-JA-Numbers
+Author: Dan Kogai <dankogai@intra>
diff --git a/japanese/p5-Lingua-JA-Numbers/pkg-plist b/japanese/p5-Lingua-JA-Numbers/pkg-plist
new file mode 100644
index 000000000000..0b4f6f636248
--- /dev/null
+++ b/japanese/p5-Lingua-JA-Numbers/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/Lingua/JA/Numbers.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/JA/Numbers/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/JA/Numbers
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/JA
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua
+@dirrmtry %%SITE_PERL%%/Lingua/JA
+@dirrmtry %%SITE_PERL%%/Lingua