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/
35 lines
963 B
Makefile
35 lines
963 B
Makefile
# 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>
|