From 35439f40057055839df04d593ed81f8e09795828 Mon Sep 17 00:00:00 2001 From: aaron Date: Thu, 25 May 2006 19:41:00 +0000 Subject: Adding port textproc/p5-Text-Unaccent, Remove accents from a string. Approved by: tobez (implicit) --- textproc/Makefile | 1 + textproc/p5-Text-Unaccent/Makefile | 29 +++++++++++++++++++++++ textproc/p5-Text-Unaccent/distinfo | 3 +++ textproc/p5-Text-Unaccent/files/patch-Makefile.PL | 11 +++++++++ textproc/p5-Text-Unaccent/pkg-descr | 7 ++++++ textproc/p5-Text-Unaccent/pkg-plist | 7 ++++++ 6 files changed, 58 insertions(+) create mode 100644 textproc/p5-Text-Unaccent/Makefile create mode 100644 textproc/p5-Text-Unaccent/distinfo create mode 100644 textproc/p5-Text-Unaccent/files/patch-Makefile.PL create mode 100644 textproc/p5-Text-Unaccent/pkg-descr create mode 100644 textproc/p5-Text-Unaccent/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index 51bf3d3..567e962 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -489,6 +489,7 @@ SUBDIR += p5-Text-Template SUBDIR += p5-Text-Textile SUBDIR += p5-Text-Tmpl + SUBDIR += p5-Text-Unaccent SUBDIR += p5-Text-VimColor SUBDIR += p5-Text-WikiFormat SUBDIR += p5-Text-WordDiff diff --git a/textproc/p5-Text-Unaccent/Makefile b/textproc/p5-Text-Unaccent/Makefile new file mode 100644 index 0000000..f0cafbf --- /dev/null +++ b/textproc/p5-Text-Unaccent/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: p5-Text-Unaccent +# Date created: 25 May 2006 +# Whom: Aaron Dalton +# +# $FreeBSD$ +# + +PORTNAME= Text-Unaccent +PORTVERSION= 1.08 +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Text +PKGNAMEPREFIX= p5- + +MAINTAINER= aaron@FreeBSD.org +COMMENT= Remove accents from a string + +MAN3= Text::Unaccent.3 + +USE_ICONV= yes +PERL_CONFIGURE= yes + +.include + +.if ${PERL_LEVEL} < 500600 +IGNORE= requires at least Perl 5.6.0. Please install lang/perl5.8 and try again +.endif + +.include diff --git a/textproc/p5-Text-Unaccent/distinfo b/textproc/p5-Text-Unaccent/distinfo new file mode 100644 index 0000000..ba42331 --- /dev/null +++ b/textproc/p5-Text-Unaccent/distinfo @@ -0,0 +1,3 @@ +MD5 (Text-Unaccent-1.08.tar.gz) = 9ac9b28cbb66f4829a50d563ace79cb5 +SHA256 (Text-Unaccent-1.08.tar.gz) = 278e6efc9b24f3699c961efb36ebe602a3408b541572017dee131d152728732b +SIZE (Text-Unaccent-1.08.tar.gz) = 84476 diff --git a/textproc/p5-Text-Unaccent/files/patch-Makefile.PL b/textproc/p5-Text-Unaccent/files/patch-Makefile.PL new file mode 100644 index 0000000..1ec42a3 --- /dev/null +++ b/textproc/p5-Text-Unaccent/files/patch-Makefile.PL @@ -0,0 +1,11 @@ +--- Makefile.PL.orig Thu May 25 13:35:31 2006 ++++ Makefile.PL Thu May 25 13:35:57 2006 +@@ -26,6 +26,6 @@ + 'OBJECT' => '$(O_FILES)', + 'DEFINE' => '-DHAVE_CONFIG_H', + 'C' => [ 'Unaccent.c', 'unac.c' ], +- 'LIBS' => [ '-liconv' ], +- 'INC' => '-I.', ++ 'LIBS' => [ '-L/usr/local/lib -liconv' ], ++ 'INC' => '-I. -I/usr/local/include', + ); diff --git a/textproc/p5-Text-Unaccent/pkg-descr b/textproc/p5-Text-Unaccent/pkg-descr new file mode 100644 index 0000000..a221395 --- /dev/null +++ b/textproc/p5-Text-Unaccent/pkg-descr @@ -0,0 +1,7 @@ +Text::Unaccent is a module that remove accents from a string. unac_string +converts the input string from the specified charset to UTF-16 and call +unac_string_utf16 to return the unaccented equivalent. The conversion from +and to UTF-16 is done with iconv(1). + + WWW: http://search.cpan.org/dist/Text-Unaccent +Author: Loic Dachary diff --git a/textproc/p5-Text-Unaccent/pkg-plist b/textproc/p5-Text-Unaccent/pkg-plist new file mode 100644 index 0000000..3b4de41 --- /dev/null +++ b/textproc/p5-Text-Unaccent/pkg-plist @@ -0,0 +1,7 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/Text/Unaccent.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/Unaccent/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/Unaccent/Unaccent.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/Unaccent/Unaccent.so +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/Unaccent +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Text -- cgit v1.1