From 2901e7dcabda4ecbdaeeb06160aeb2a8a61c5e55 Mon Sep 17 00:00:00 2001 From: sunpoet Date: Wed, 12 Oct 2011 18:21:11 +0000 Subject: - Add p5-Text-Padding 1.110170 Text::Padding provides a simple way to align a text on the left, right or center. If left & right are easy to achieve (see sprintf()), i found no cpan module that achieved a simple text centering. Well, of course, Perl6::Form provides it, but it's incredibly slow during startup / destroy time. And Text::Reform was segfaulting during destroy time. Hence this module, which aims to provide only those 3 methods. WWW: http://search.cpan.org/dist/Text-Padding/ --- textproc/Makefile | 1 + textproc/p5-Text-Padding/Makefile | 35 +++++++++++++++++++++++++++++++++++ textproc/p5-Text-Padding/distinfo | 2 ++ textproc/p5-Text-Padding/pkg-descr | 9 +++++++++ textproc/p5-Text-Padding/pkg-plist | 2 ++ 5 files changed, 49 insertions(+) create mode 100644 textproc/p5-Text-Padding/Makefile create mode 100644 textproc/p5-Text-Padding/distinfo create mode 100644 textproc/p5-Text-Padding/pkg-descr create mode 100644 textproc/p5-Text-Padding/pkg-plist (limited to 'textproc') diff --git a/textproc/Makefile b/textproc/Makefile index e21f31dc71dc..4e3af0df87c4 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -792,6 +792,7 @@ SUBDIR += p5-Text-Ngram SUBDIR += p5-Text-Ngrams SUBDIR += p5-Text-Original + SUBDIR += p5-Text-Padding SUBDIR += p5-Text-ParagraphDiff SUBDIR += p5-Text-ParseWords SUBDIR += p5-Text-Patch diff --git a/textproc/p5-Text-Padding/Makefile b/textproc/p5-Text-Padding/Makefile new file mode 100644 index 000000000000..e0834309c086 --- /dev/null +++ b/textproc/p5-Text-Padding/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: p5-Text-Padding +# Date created: 2011-10-10 +# Whom: Sunpoet Po-Chuan Hsieh +# +# $FreeBSD$ +# + +PORTNAME= Text-Padding +PORTVERSION= 1.110.170 +CATEGORIES= textproc perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- +DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Simple way of formatting a text + +BUILD_DEPENDS= p5-Moose>=0:${PORTSDIR}/devel/p5-Moose \ + p5-MooseX-Has-Sugar>=0:${PORTSDIR}/devel/p5-MooseX-Has-Sugar \ + p5-Text-Truncate>=0:${PORTSDIR}/textproc/p5-Text-Truncate +RUN_DEPENDS= p5-Moose>=0:${PORTSDIR}/devel/p5-Moose \ + p5-MooseX-Has-Sugar>=0:${PORTSDIR}/devel/p5-MooseX-Has-Sugar \ + p5-Text-Truncate>=0:${PORTSDIR}/textproc/p5-Text-Truncate + +PERL_MODBUILD= 5.12.0+ + +MAN3= Text::Padding.3 + +.include + +.if ${PERL_LEVEL} < 501001 +TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple +.endif + +.include diff --git a/textproc/p5-Text-Padding/distinfo b/textproc/p5-Text-Padding/distinfo new file mode 100644 index 000000000000..3bf3548641cf --- /dev/null +++ b/textproc/p5-Text-Padding/distinfo @@ -0,0 +1,2 @@ +SHA256 (Text-Padding-1.110170.tar.gz) = 6339581dcb1103e35addb5609c0f13403f1cce39c1b4c496657260b393af8ca6 +SIZE (Text-Padding-1.110170.tar.gz) = 12969 diff --git a/textproc/p5-Text-Padding/pkg-descr b/textproc/p5-Text-Padding/pkg-descr new file mode 100644 index 000000000000..041936440eb3 --- /dev/null +++ b/textproc/p5-Text-Padding/pkg-descr @@ -0,0 +1,9 @@ +Text::Padding provides a simple way to align a text on the left, right or +center. If left & right are easy to achieve (see sprintf()), i found no cpan +module that achieved a simple text centering. Well, of course, Perl6::Form +provides it, but it's incredibly slow during startup / destroy time. And +Text::Reform was segfaulting during destroy time. + +Hence this module, which aims to provide only those 3 methods. + +WWW: http://search.cpan.org/dist/Text-Padding/ diff --git a/textproc/p5-Text-Padding/pkg-plist b/textproc/p5-Text-Padding/pkg-plist new file mode 100644 index 000000000000..ca44b4713676 --- /dev/null +++ b/textproc/p5-Text-Padding/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Text/Padding.pm +@dirrmtry %%SITE_PERL%%/Text -- cgit