From 4d5dc1b29bbc53d94b94520a479183118921f171 Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Tue, 11 Jul 2006 20:42:43 +0000 Subject: [PATCH] Add p5-Regexp-Common-profanity_us 2.2, provide regexes for U.S. profanity. PR: ports/100070 Submitted by: Gea-Suan Lin --- textproc/Makefile | 1 + .../p5-Regexp-Common-profanity_us/Makefile | 26 +++++++++++++++++++ .../p5-Regexp-Common-profanity_us/distinfo | 3 +++ .../p5-Regexp-Common-profanity_us/pkg-descr | 21 +++++++++++++++ .../p5-Regexp-Common-profanity_us/pkg-plist | 10 +++++++ 5 files changed, 61 insertions(+) create mode 100644 textproc/p5-Regexp-Common-profanity_us/Makefile create mode 100644 textproc/p5-Regexp-Common-profanity_us/distinfo create mode 100644 textproc/p5-Regexp-Common-profanity_us/pkg-descr create mode 100644 textproc/p5-Regexp-Common-profanity_us/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index 718f25f215be..be9fafef8a47 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -415,6 +415,7 @@ SUBDIR += p5-RTF-Writer SUBDIR += p5-Regex-PreSuf SUBDIR += p5-Regexp-Common + SUBDIR += p5-Regexp-Common-profanity_us SUBDIR += p5-Regexp-Log SUBDIR += p5-Regexp-Log-Common SUBDIR += p5-SGMLSpm diff --git a/textproc/p5-Regexp-Common-profanity_us/Makefile b/textproc/p5-Regexp-Common-profanity_us/Makefile new file mode 100644 index 000000000000..913b02f1b62a --- /dev/null +++ b/textproc/p5-Regexp-Common-profanity_us/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: p5-Regexp-Common-profanity_us +# Date created: 2006-07-11 +# Whom: Gea-Suan Lin +# +# $FreeBSD$ +# + +PORTNAME= Regexp-Common-profanity_us +PORTVERSION= 2.2 +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Regexp +PKGNAMEPREFIX= p5- + +MAINTAINER= gslin@gslin.org +COMMENT= Provide regexes for U.S. profanity + +BUILD_DEPENDS= ${SITE_PERL}/Regexp/Common.pm:${PORTSDIR}/textproc/p5-Regexp-Common +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Regexp::Common::profanity_us.3 \ + Regexp::Profanity::US.3 + +.include diff --git a/textproc/p5-Regexp-Common-profanity_us/distinfo b/textproc/p5-Regexp-Common-profanity_us/distinfo new file mode 100644 index 000000000000..1cd79c6fd13f --- /dev/null +++ b/textproc/p5-Regexp-Common-profanity_us/distinfo @@ -0,0 +1,3 @@ +MD5 (Regexp-Common-profanity_us-2.2.tar.gz) = 863b9847c70d6fd319d3766b9728447d +SHA256 (Regexp-Common-profanity_us-2.2.tar.gz) = bd8069e7e56569809d69008bc8509c812213d87f6730c03c344e3ec6e1a627ee +SIZE (Regexp-Common-profanity_us-2.2.tar.gz) = 5912 diff --git a/textproc/p5-Regexp-Common-profanity_us/pkg-descr b/textproc/p5-Regexp-Common-profanity_us/pkg-descr new file mode 100644 index 000000000000..de103e5f018b --- /dev/null +++ b/textproc/p5-Regexp-Common-profanity_us/pkg-descr @@ -0,0 +1,21 @@ +Instead of a dry technical overview, I am going to explain the +structure of this module based on its history. I consult at a company +that generates customer leads primarily by having websites that +attract people (e.g. lowering loan values, selling cars, buying real +estate, etc.). For some reason we get more than our fair share of +profane leads. For this reason I was told to write a profanity checker. + +For the data that I was dealing with, the profanity was most often in +the email address or in the first or last name, so I naively started +filtering profanity with a set of regexps for that sort of data. Note +that both names and email addresses are unlike what you are reading +now: they are not whitespace-separated text, but are instead labels. + +Therefore full support for profanity checking should work in 2 +entirely different contexts: labels (email, names) and text (what you +are reading). Because open-source is driven by demand and I have no +need for detecting profanity in text, only label is implemented at the +moment. And you know the next sentence: "patches welcome" :) + +Author: T. M. Brannon, tbone@cpan.org +WWW: http://search.cpan.org/dist/Regexp-Common-profanity_us/ diff --git a/textproc/p5-Regexp-Common-profanity_us/pkg-plist b/textproc/p5-Regexp-Common-profanity_us/pkg-plist new file mode 100644 index 000000000000..cc83cf14b212 --- /dev/null +++ b/textproc/p5-Regexp-Common-profanity_us/pkg-plist @@ -0,0 +1,10 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Common/profanity_us/.packlist +%%SITE_PERL%%/Regexp/Common/profanity_us.pm +%%SITE_PERL%%/Regexp/Profanity/US.pm +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Common/profanity_us +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Common +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp +@dirrmtry %%SITE_PERL%%/Regexp/Common +@dirrmtry %%SITE_PERL%%/Regexp/Profanity +@dirrmtry %%SITE_PERL%%/Regexp