summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@FreeBSD.org>2006-05-25 19:41:00 +0000
committeraaron <aaron@FreeBSD.org>2006-05-25 19:41:00 +0000
commit35439f40057055839df04d593ed81f8e09795828 (patch)
tree818750b989c35fc260e8d677a8a2e5632e7dd402
parentbff30d54276e1a2ff4db466673145c93b7cce8d7 (diff)
downloadFreeBSD-ports-35439f40057055839df04d593ed81f8e09795828.zip
FreeBSD-ports-35439f40057055839df04d593ed81f8e09795828.tar.gz
Adding port textproc/p5-Text-Unaccent, Remove accents from a string.
Approved by: tobez (implicit)
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/p5-Text-Unaccent/Makefile29
-rw-r--r--textproc/p5-Text-Unaccent/distinfo3
-rw-r--r--textproc/p5-Text-Unaccent/files/patch-Makefile.PL11
-rw-r--r--textproc/p5-Text-Unaccent/pkg-descr7
-rw-r--r--textproc/p5-Text-Unaccent/pkg-plist7
6 files changed, 58 insertions, 0 deletions
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 <aaron@FreeBSD.org>
+#
+# $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 <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= requires at least Perl 5.6.0. Please install lang/perl5.8 and try again
+.endif
+
+.include <bsd.port.post.mk>
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 <loic@senga.org>
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
OpenPOWER on IntegriCloud