Add p5-MooseX-Meta-TypeConstraint-Mooish 0.001, translate Moo-style

constraints to Moose-style.
This commit is contained in:
Lars Thegler 2016-03-30 20:54:33 +00:00
parent 069ed66efc
commit 8d2aba4dfd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=412195
5 changed files with 41 additions and 0 deletions

View file

@ -2724,6 +2724,7 @@
SUBDIR += p5-MooseX-Log-Log4perl
SUBDIR += p5-MooseX-MarkAsMethods
SUBDIR += p5-MooseX-Meta-TypeConstraint-ForceCoercion
SUBDIR += p5-MooseX-Meta-TypeConstraint-Mooish
SUBDIR += p5-MooseX-MetaDescription
SUBDIR += p5-MooseX-Method-Signatures
SUBDIR += p5-MooseX-MethodAttributes

View file

@ -0,0 +1,26 @@
# $FreeBSD$
PORTNAME= MooseX-Meta-TypeConstraint-Mooish
PORTVERSION= 0.001
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= lth@FreeBSD.org
COMMENT= Translate Moo-style constraints to Moose-style
LICENSE= LGPL21
BUILD_DEPENDS= p5-Moose>=0:${PORTSDIR}/devel/p5-Moose \
p5-Try-Tiny>=0:${PORTSDIR}/lang/p5-Try-Tiny \
p5-namespace-autoclean>=0.24:${PORTSDIR}/devel/p5-namespace-autoclean
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Test-CheckDeps>=0.010:${PORTSDIR}/devel/p5-Test-CheckDeps \
p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal \
p5-Test-Moose-More>=0.028:${PORTSDIR}/devel/p5-Test-Moose-More \
p5-aliased>=0:${PORTSDIR}/devel/p5-aliased
USES= perl5
USE_PERL5= configure
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (MooseX-Meta-TypeConstraint-Mooish-0.001.tar.gz) = 48ce292333c4f151aead6b087cc0f82139fb003d7785dc4ad8b1181c692067ca
SIZE (MooseX-Meta-TypeConstraint-Mooish-0.001.tar.gz) = 25545

View file

@ -0,0 +1,8 @@
Moose type constraints are expected to return true if the value
passes the constraint, and false otherwise; Moo "constraints", on
the other hand, die if validation fails.
This metaclass allows for Moo-style constraints; it will wrap them
and translate their Moo into a dialect Moose understands.
WWW: https://metacpan.org/release/MooseX-Meta-TypeConstraint-Mooish

View file

@ -0,0 +1,4 @@
%%SITE_PERL%%/MooseX/Meta/TypeConstraint/Mooish.pm
%%SITE_PERL%%/MooseX/TraitFor/Meta/TypeConstraint/Mooish.pm
%%PERL5_MAN3%%/MooseX::Meta::TypeConstraint::Mooish.3.gz
%%PERL5_MAN3%%/MooseX::TraitFor::Meta::TypeConstraint::Mooish.3.gz