summaryrefslogtreecommitdiffstats
path: root/textproc/p5-Text-Capitalize
diff options
context:
space:
mode:
authoraaron <aaron@FreeBSD.org>2006-02-17 23:36:38 +0000
committeraaron <aaron@FreeBSD.org>2006-02-17 23:36:38 +0000
commitc3eb15f4ec6fff5d6e3f222741d667c2ce68e6f1 (patch)
tree5624f3bd07819e769d8303568a8bde1df73405c4 /textproc/p5-Text-Capitalize
parente532e7e79046e32d142fe32f81c8b09ca3e9ab05 (diff)
downloadFreeBSD-ports-c3eb15f4ec6fff5d6e3f222741d667c2ce68e6f1.zip
FreeBSD-ports-c3eb15f4ec6fff5d6e3f222741d667c2ce68e6f1.tar.gz
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)
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 0000000..fe0b53a
--- /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 0000000..7e4c4d2
--- /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 0000000..3b67857
--- /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 0000000..41b5f84
--- /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 0000000..54027e3
--- /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
OpenPOWER on IntegriCloud