Adding port devel/p5-Carp-Assert-More, Convenience wrappers around
Carp::Assert. Approved by: tobez (implicit)
This commit is contained in:
parent
6c1d55ba97
commit
addbc6f779
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165366
@ -763,6 +763,7 @@
|
||||
SUBDIR += p5-Cache-Simple-TimedExpiry
|
||||
SUBDIR += p5-Calendar-Simple
|
||||
SUBDIR += p5-Carp-Assert
|
||||
SUBDIR += p5-Carp-Assert-More
|
||||
SUBDIR += p5-Carp-Clan
|
||||
SUBDIR += p5-Carp-Datum
|
||||
SUBDIR += p5-Cdk
|
||||
|
34
devel/p5-Carp-Assert-More/Makefile
Normal file
34
devel/p5-Carp-Assert-More/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
# New ports collection makefile for: p5-Carp-Assert-More
|
||||
# Date created: 13 Jun 2006
|
||||
# Whom: Aaron Dalton <aaron@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Carp-Assert-More
|
||||
PORTVERSION= 1.12
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= Carp
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= aaron@FreeBSD.org
|
||||
COMMENT= Convenience wrappers around Carp::Assert
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/Carp/Assert.pm:${PORTSDIR}/devel/p5-Carp-Assert \
|
||||
${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple \
|
||||
${SITE_PERL}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils \
|
||||
${SITE_PERL}/Test/Exception.pm:${PORTSDIR}/devel/p5-Test-Exception
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
MAN3= Carp::Assert::More.3
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 500600 # inherited from devel/p5-Test-Exception
|
||||
IGNORE= requires at least Perl 5.6 due to dependencies. Please install lang/perl5.8 and try again
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
devel/p5-Carp-Assert-More/distinfo
Normal file
3
devel/p5-Carp-Assert-More/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (Carp-Assert-More-1.12.tar.gz) = dbd6a0fcbff5f00d2e39b77322036d3f
|
||||
SHA256 (Carp-Assert-More-1.12.tar.gz) = d9d3312aa99f036eab24a5e195ea6796a24c5a8135310b451f408350c13733d5
|
||||
SIZE (Carp-Assert-More-1.12.tar.gz) = 8371
|
20
devel/p5-Carp-Assert-More/pkg-descr
Normal file
20
devel/p5-Carp-Assert-More/pkg-descr
Normal file
@ -0,0 +1,20 @@
|
||||
Carp::Assert::More is a set of wrappers around the Carp::Assert functions
|
||||
to make the habit of writing assertions even easier.
|
||||
|
||||
Everything in here is effectively syntactic sugar. There's no technical
|
||||
reason to use
|
||||
|
||||
assert_isa( $foo, 'HTML::Lint' );
|
||||
|
||||
instead of
|
||||
|
||||
assert( defined $foo );
|
||||
assert( ref($foo) eq 'HTML::Lint' );
|
||||
|
||||
other than readability and simplicity of the code.
|
||||
|
||||
My intent here is to make common assertions easy so that we as programmers
|
||||
have no excuse to not use them.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Carp-Assert-More
|
||||
Author: Andy Lester
|
7
devel/p5-Carp-Assert-More/pkg-plist
Normal file
7
devel/p5-Carp-Assert-More/pkg-plist
Normal file
@ -0,0 +1,7 @@
|
||||
%%SITE_PERL%%/Carp/Assert/More.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Carp/Assert/More/.packlist
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Carp/Assert/More
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Carp/Assert
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Carp
|
||||
@dirrmtry %%SITE_PERL%%/Carp/Assert
|
||||
@dirrmtry %%SITE_PERL%%/Carp
|
Loading…
Reference in New Issue
Block a user