aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-Text-Capitalize
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-02-17 23:36:38 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-02-17 23:36:38 +0000
commit3c581302ffadc116588cf4c9c2d37da2bb199cc5 (patch)
treeff8d76e1110ac8dd29ba189f999b24b25363e602 /textproc/p5-Text-Capitalize
parent2f8cc71f2455321542b1e74a82824e14c925c81d (diff)
downloadports-3c581302ffadc116588cf4c9c2d37da2bb199cc5.tar.gz
ports-3c581302ffadc116588cf4c9c2d37da2bb199cc5.zip
Add p5-Text-Capitalize 0.5, capitalize strings ("to WORK AS titles"
becomes "To Work as Titles"). PR: ports/92856 Submitted by: Dmitry Marakasov <amdmi3@mail.ru> Approved by: tobez (implicit)
Notes
Notes: svn path=/head/; revision=156241
Diffstat (limited to 'textproc/p5-Text-Capitalize')
-rw-r--r--textproc/p5-Text-Capitalize/Makefile28
-rw-r--r--textproc/p5-Text-Capitalize/distinfo3
-rw-r--r--textproc/p5-Text-Capitalize/files/patch-t-lib-__title-tests.pm12
-rw-r--r--textproc/p5-Text-Capitalize/pkg-descr13
-rw-r--r--textproc/p5-Text-Capitalize/pkg-plist5
5 files changed, 61 insertions, 0 deletions
diff --git a/textproc/p5-Text-Capitalize/Makefile b/textproc/p5-Text-Capitalize/Makefile
new file mode 100644
index 000000000000..fe0b53af4b3b
--- /dev/null
+++ b/textproc/p5-Text-Capitalize/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: p5-Text-Capitalize
+# Date created: 24 Nov 2005
+# Whom: Dmitry Marakasov <amdmi3@mail.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Text-Capitalize
+PORTVERSION= 0.5
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Text
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= amdmi3@mail.ru
+COMMENT= Capitalize strings ("to WORK AS titles" becomes "To Work as Titles")
+
+PERL_CONFIGURE= yes
+
+MAN3= Text::Capitalize.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= requires at least Perl5.6
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/p5-Text-Capitalize/distinfo b/textproc/p5-Text-Capitalize/distinfo
new file mode 100644
index 000000000000..7e4c4d2478e2
--- /dev/null
+++ b/textproc/p5-Text-Capitalize/distinfo
@@ -0,0 +1,3 @@
+MD5 (Text-Capitalize-0.5.tar.gz) = 84cd0d46101c0a45673c33443c6673d0
+SHA256 (Text-Capitalize-0.5.tar.gz) = 87c3a2465ee624cab9331cab8e11ec2c7cdcf58e10bd5cba0f2ec36b415d753c
+SIZE (Text-Capitalize-0.5.tar.gz) = 20414
diff --git a/textproc/p5-Text-Capitalize/files/patch-t-lib-__title-tests.pm b/textproc/p5-Text-Capitalize/files/patch-t-lib-__title-tests.pm
new file mode 100644
index 000000000000..3b6785706e38
--- /dev/null
+++ b/textproc/p5-Text-Capitalize/files/patch-t-lib-__title-tests.pm
@@ -0,0 +1,12 @@
+--- t/lib/__title_tests.pm.orig Thu Feb 17 22:02:22 2005
++++ t/lib/__title_tests.pm Sun Feb 5 21:46:10 2006
+@@ -34,6 +34,9 @@
+
+ $VERSION = '0.4'; # to match Text::Capitalize version
+
++use POSIX qw(locale_h);
++setlocale(LC_ALL, 'fr_FR.ISO8859-1');
++
+ # Some possibly useful test case strings.
+ # The %expect_* series below is what's actually used by "make test"
+
diff --git a/textproc/p5-Text-Capitalize/pkg-descr b/textproc/p5-Text-Capitalize/pkg-descr
new file mode 100644
index 000000000000..41b5f8439fcf
--- /dev/null
+++ b/textproc/p5-Text-Capitalize/pkg-descr
@@ -0,0 +1,13 @@
+Text::Capitalize provides a few different flavors of procedures for
+title-like formatting for strings.
+
+For the "capitalize" function Title-like (written by Stanislaw Y.
+Pusep) formatting consists of ensuring that the first letter of
+each word is uppercase, and that the rest is lowercase.
+
+The "capitalize_title" function tries to get closer to English title
+capitalization rules where only the "important" words are supposed
+to be capitalized. There are also some customization features
+provided to allow the user to choose variant rules.
+
+WWW: http://search.cpan.org/dist/Text-Capitalize/
diff --git a/textproc/p5-Text-Capitalize/pkg-plist b/textproc/p5-Text-Capitalize/pkg-plist
new file mode 100644
index 000000000000..54027e39ab52
--- /dev/null
+++ b/textproc/p5-Text-Capitalize/pkg-plist
@@ -0,0 +1,5 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/Capitalize/.packlist
+%%SITE_PERL%%/Text/Capitalize.pm
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text/Capitalize
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Text
+@dirrmtry %%SITE_PERL%%/Text