diff --git a/japanese/Makefile b/japanese/Makefile index 82dba55021b3..e6f12ce4ed3b 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -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 diff --git a/japanese/p5-Lingua-JA-Romanize-Japanese/Makefile b/japanese/p5-Lingua-JA-Romanize-Japanese/Makefile new file mode 100644 index 000000000000..b373e2bb895b --- /dev/null +++ b/japanese/p5-Lingua-JA-Romanize-Japanese/Makefile @@ -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 diff --git a/japanese/p5-Lingua-JA-Romanize-Japanese/distinfo b/japanese/p5-Lingua-JA-Romanize-Japanese/distinfo new file mode 100644 index 000000000000..f54303f544bf --- /dev/null +++ b/japanese/p5-Lingua-JA-Romanize-Japanese/distinfo @@ -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 diff --git a/japanese/p5-Lingua-JA-Romanize-Japanese/files/patch-lib_Lingua_JA_Romanize_DictJA.pm b/japanese/p5-Lingua-JA-Romanize-Japanese/files/patch-lib_Lingua_JA_Romanize_DictJA.pm new file mode 100644 index 000000000000..ffb0e6888b52 --- /dev/null +++ b/japanese/p5-Lingua-JA-Romanize-Japanese/files/patch-lib_Lingua_JA_Romanize_DictJA.pm @@ -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; + } diff --git a/japanese/p5-Lingua-JA-Romanize-Japanese/pkg-descr b/japanese/p5-Lingua-JA-Romanize-Japanese/pkg-descr new file mode 100644 index 000000000000..0e4f55e3f172 --- /dev/null +++ b/japanese/p5-Lingua-JA-Romanize-Japanese/pkg-descr @@ -0,0 +1,3 @@ +Romanization of Japanese language. + +WWW: https://metacpan.org/release/Lingua-JA-Romanize-Japanese diff --git a/japanese/p5-Lingua-JA-Romanize-Japanese/pkg-message b/japanese/p5-Lingua-JA-Romanize-Japanese/pkg-message new file mode 100644 index 000000000000..7491dd51db9b --- /dev/null +++ b/japanese/p5-Lingua-JA-Romanize-Japanese/pkg-message @@ -0,0 +1,10 @@ +[ +{ type: install + message: <update();' +EOM +} +] diff --git a/japanese/p5-Lingua-JA-Romanize-Japanese/pkg-plist b/japanese/p5-Lingua-JA-Romanize-Japanese/pkg-plist new file mode 100644 index 000000000000..8cf0a829ce7e --- /dev/null +++ b/japanese/p5-Lingua-JA-Romanize-Japanese/pkg-plist @@ -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