aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2011-10-13 02:21:11 +0800
committersunpoet <sunpoet@FreeBSD.org>2011-10-13 02:21:11 +0800
commit2901e7dcabda4ecbdaeeb06160aeb2a8a61c5e55 (patch)
treec9306a4c0b8210fb1a8a28802882c684110183f6 /textproc
parent8a7e5752943548cabf815cf0487efd8d26952f89 (diff)
downloadfreebsd-ports-gnome-2901e7dcabda4ecbdaeeb06160aeb2a8a61c5e55.tar.gz
freebsd-ports-gnome-2901e7dcabda4ecbdaeeb06160aeb2a8a61c5e55.tar.zst
freebsd-ports-gnome-2901e7dcabda4ecbdaeeb06160aeb2a8a61c5e55.zip
- 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/
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/p5-Text-Padding/Makefile35
-rw-r--r--textproc/p5-Text-Padding/distinfo2
-rw-r--r--textproc/p5-Text-Padding/pkg-descr9
-rw-r--r--textproc/p5-Text-Padding/pkg-plist2
5 files changed, 49 insertions, 0 deletions
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 <sunpoet@FreeBSD.org>
+#
+# $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 <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501001
+TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
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