From d06129f516ed0e9793c743407d87c7768e4926b3 Mon Sep 17 00:00:00 2001 From: Automaton Date: Thu, 20 Dec 2012 00:37:09 +0100 Subject: [PATCH] Import textproc/p5-Text-Language-Guess version 0.02 --- textproc/p5-Text-Language-Guess/Makefile | 28 +++++++++++++++++++++++ textproc/p5-Text-Language-Guess/distinfo | 2 ++ textproc/p5-Text-Language-Guess/pkg-descr | 14 ++++++++++++ textproc/p5-Text-Language-Guess/pkg-plist | 8 +++++++ 4 files changed, 52 insertions(+) create mode 100644 textproc/p5-Text-Language-Guess/Makefile create mode 100644 textproc/p5-Text-Language-Guess/distinfo create mode 100644 textproc/p5-Text-Language-Guess/pkg-descr create mode 100644 textproc/p5-Text-Language-Guess/pkg-plist diff --git a/textproc/p5-Text-Language-Guess/Makefile b/textproc/p5-Text-Language-Guess/Makefile new file mode 100644 index 00000000000..72a073cf471 --- /dev/null +++ b/textproc/p5-Text-Language-Guess/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: textproc/p5-Text-Language-Guess +# Date created: 2006-09-25 +# Whom: Masahiro Teramoto +# +# $FreeBSD: ports/textproc/p5-Text-Language-Guess/Makefile,v 1.6 2012/11/17 06:02:10 svnexp Exp $ +# + +PORTNAME= Text-Language-Guess +PORTVERSION= 0.02 +CATEGORIES= textproc perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:MSCHILLI +PKGNAMEPREFIX= p5- + +MAINTAINER= markun@onohara.to +COMMENT= Trained module to guess a document's language + +BUILD_DEPENDS= p5-Log-Log4perl>=1.0:${PORTSDIR}/devel/p5-Log-Log4perl \ + p5-Text-ExtractWords>=0:${PORTSDIR}/textproc/p5-Text-ExtractWords \ + p5-Lingua-StopWords>=0:${PORTSDIR}/textproc/p5-Lingua-StopWords +RUN_DEPENDS:= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN1= language-guess.1 +MAN3= Text::Language::Guess.3 + +.include diff --git a/textproc/p5-Text-Language-Guess/distinfo b/textproc/p5-Text-Language-Guess/distinfo new file mode 100644 index 00000000000..d0d53eddcdb --- /dev/null +++ b/textproc/p5-Text-Language-Guess/distinfo @@ -0,0 +1,2 @@ +SHA256 (Text-Language-Guess-0.02.tar.gz) = 12ef612c1de0451367d403db73723446b836e2e10adeec5e9386b7baa8ede12f +SIZE (Text-Language-Guess-0.02.tar.gz) = 5377 diff --git a/textproc/p5-Text-Language-Guess/pkg-descr b/textproc/p5-Text-Language-Guess/pkg-descr new file mode 100644 index 00000000000..ae84f962328 --- /dev/null +++ b/textproc/p5-Text-Language-Guess/pkg-descr @@ -0,0 +1,14 @@ +Text::Language::Guess guesses a document's language. Its implementation +is simple: Using "Text::ExtractWords" and "Lingua::StopWords" from CPAN, +it determines how many of the known stopwords the document contains for +each language supported by "Lingua::StopWords". + +Each word in the document recognized as stopword of a particular +language scores one point for this language. + +The "language_guess()" function takes a document as a parameter and +returns the abbreviation of the language that it is most likely written +in. + +Author: Mike Schilli +WWW: http://search.cpan.org/dist/Text-Language-Guess/ diff --git a/textproc/p5-Text-Language-Guess/pkg-plist b/textproc/p5-Text-Language-Guess/pkg-plist new file mode 100644 index 00000000000..0ea5b36b135 --- /dev/null +++ b/textproc/p5-Text-Language-Guess/pkg-plist @@ -0,0 +1,8 @@ +bin/language-guess +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/Language/Guess/.packlist +%%SITE_PERL%%/Text/Language/Guess.pm +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/Language/Guess +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/Language +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text +@dirrmtry %%SITE_PERL%%/Text/Language +@dirrmtry %%SITE_PERL%%/Text -- 2.41.0