New port: japanese/p5-Lingua-JA-Romanize-Japanese: Romanization of Japanese language

Romanization of Japanese language.

WWW: https://metacpan.org/release/Lingua-JA-Romanize-Japanese

PR:		242355
Submitted by:	Tomohiro Hosaka <bokutin@bokut.in>
This commit is contained in:
Kurt Jaeger 2019-12-11 19:28:29 +00:00
parent c5f2af686b
commit 4c87e602b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519832
7 changed files with 79 additions and 0 deletions

View File

@ -200,6 +200,7 @@
SUBDIR += p5-Lingua-JA-Moji
SUBDIR += p5-Lingua-JA-Numbers
SUBDIR += p5-Lingua-JA-Regular-Unicode
SUBDIR += p5-Lingua-JA-Romanize-Japanese
SUBDIR += p5-Lingua-JA-Summarize-Extract
SUBDIR += p5-MeCab
SUBDIR += p5-Number-Phone-JP

View File

@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= Lingua-JA-Romanize-Japanese
PORTVERSION= 0.23
CATEGORIES= japanese perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR=CPAN:KAWASAKI
PKGNAMEPREFIX= p5-
MAINTAINER= bokutin@bokut.in
COMMENT= Romanization of Japanese language
LICENSE= GPLv2+
BUILD_DEPENDS= p5-libwww>=0:www/p5-libwww
USES= perl5
USE_PERL5= configure
NO_ARCH= yes
MAKE_ENV+= DISABLE_DIC_DOWNLOAD=1
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1574739437
SHA256 (Lingua-JA-Romanize-Japanese-0.23.tar.gz) = f3b0926b52576a20701fe0353a068de58f2054d41447811df82a84b897a09699
SIZE (Lingua-JA-Romanize-Japanese-0.23.tar.gz) = 41202

View File

@ -0,0 +1,24 @@
--- lib/Lingua/JA/Romanize/DictJA.pm.orig 2008-01-20 09:56:38 UTC
+++ lib/Lingua/JA/Romanize/DictJA.pm
@@ -58,10 +58,11 @@ $VERSION = "0.23";
use Lingua::JA::Romanize::Kana;
use ExtUtils::MakeMaker;
use Fcntl;
+use File::Temp;
use IO::File;
my $PERL581 = 1 if ( $] >= 5.008001 );
-my $FETCH_CACHE = "skk";
+my $FETCH_CACHE = File::Temp->newdir;
my $DICT_DB = 'Japanese.bdb';
my $DIC_SMALL = [ qw(
skk/SKK-JISYO.S
@@ -130,7 +131,7 @@ sub update {
my $cand = defined $IO::Zlib::VERSION ? $DIC_GZIPED : $DIC_LARGE;
print "\t", $_, "\n" foreach (@$cand);
my $mess = 'Do you wish to download these files?';
- my $yes = ExtUtils::MakeMaker::prompt( $mess, 'y' );
+ my $yes = ExtUtils::MakeMaker::prompt( $mess, $ENV{DISABLE_DIC_DOWNLOAD} ? 'n' : 'y' );
if ( $yes eq 'y' ) {
$diclist = $cand;
}

View File

@ -0,0 +1,3 @@
Romanization of Japanese language.
WWW: https://metacpan.org/release/Lingua-JA-Romanize-Japanese

View File

@ -0,0 +1,10 @@
[
{ type: install
message: <<EOM
The dictionary included in this package is created from skk/SKK-JISYO.S included in the official tarball.
To update using a dictionary published online, execute the command below.
perl -MLingua::JA::Romanize::DictJA -e 'Lingua::JA::Romanize::DictJA->update();'
EOM
}
]

View File

@ -0,0 +1,15 @@
%%SITE_PERL%%/Lingua/JA/Romanize/Base.pm
%%SITE_PERL%%/Lingua/JA/Romanize/DictJA.pm
%%SITE_PERL%%/Lingua/JA/Romanize/Japanese.bdb
%%SITE_PERL%%/Lingua/JA/Romanize/Japanese.pm
%%SITE_PERL%%/Lingua/JA/Romanize/Juman.pm
%%SITE_PERL%%/Lingua/JA/Romanize/Kana.pm
%%SITE_PERL%%/Lingua/JA/Romanize/Kana/Hepburn.pm
%%SITE_PERL%%/Lingua/JA/Romanize/MeCab.pm
%%PERL5_MAN3%%/Lingua::JA::Romanize::Base.3.gz
%%PERL5_MAN3%%/Lingua::JA::Romanize::DictJA.3.gz
%%PERL5_MAN3%%/Lingua::JA::Romanize::Japanese.3.gz
%%PERL5_MAN3%%/Lingua::JA::Romanize::Juman.3.gz
%%PERL5_MAN3%%/Lingua::JA::Romanize::Kana.3.gz
%%PERL5_MAN3%%/Lingua::JA::Romanize::Kana::Hepburn.3.gz
%%PERL5_MAN3%%/Lingua::JA::Romanize::MeCab.3.gz