- Add p5-Types-Core 0.1.4
Types::Core provides syntax symplifier for type checking. It allows easy, non-quoted usage of types as literals, and allows the standard type names to be used as true/false check routines of references. For the most basic functions, they take either 0 or 1 arguments. If 1 parameter, then they test it to see if the ref is of the given type (blessed or not). If false, undef is returned, of true, the ref, itself is returned. For no args, they return literals of themselves, allowing the named strings to be used as Literals without quotes. WWW: http://search.cpan.org/dist/Types-Core/
This commit is contained in:
parent
6e46bd38f5
commit
ca23825fd8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377291
5 changed files with 47 additions and 0 deletions
|
@ -3122,6 +3122,7 @@
|
|||
SUBDIR += p5-Type-Tie
|
||||
SUBDIR += p5-Type-Tiny
|
||||
SUBDIR += p5-Type-Tiny-XS
|
||||
SUBDIR += p5-Types-Core
|
||||
SUBDIR += p5-Types-Path-Tiny
|
||||
SUBDIR += p5-Types-Serialiser
|
||||
SUBDIR += p5-UDCode
|
||||
|
|
30
devel/p5-Types-Core/Makefile
Normal file
30
devel/p5-Types-Core/Makefile
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Types-Core
|
||||
PORTVERSION= 0.1.4
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
MASTER_SITE_SUBDIR= CPAN:LAWALSH
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Core types defined as tests and literals
|
||||
|
||||
LICENSE= ART10 GPLv1
|
||||
LICENSE_COMB= dual
|
||||
|
||||
BUILD_DEPENDS= p5-Xporter>=0.0.7:${PORTSDIR}/devel/p5-Xporter \
|
||||
p5-mem>=0.4.3:${PORTSDIR}/devel/p5-mem
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
|
||||
USE_PERL5= configure
|
||||
USES= perl5
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 502000
|
||||
BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.82:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
devel/p5-Types-Core/distinfo
Normal file
2
devel/p5-Types-Core/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (Types-Core-0.1.4.tar.gz) = ec21ebd3c992fdf0283c455f8d3428851706198f33d90f2576212be5fd7b3061
|
||||
SIZE (Types-Core-0.1.4.tar.gz) = 14199
|
12
devel/p5-Types-Core/pkg-descr
Normal file
12
devel/p5-Types-Core/pkg-descr
Normal file
|
@ -0,0 +1,12 @@
|
|||
Types::Core provides syntax symplifier for type checking. It allows easy,
|
||||
non-quoted usage of types as literals, and allows the standard type names to be
|
||||
used as true/false check routines of references.
|
||||
|
||||
For the most basic functions, they take either 0 or 1 arguments. If 1 parameter,
|
||||
then they test it to see if the ref is of the given type (blessed or not). If
|
||||
false, undef is returned, of true, the ref, itself is returned.
|
||||
|
||||
For no args, they return literals of themselves, allowing the named strings to
|
||||
be used as Literals without quotes.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Types-Core/
|
2
devel/p5-Types-Core/pkg-plist
Normal file
2
devel/p5-Types-Core/pkg-plist
Normal file
|
@ -0,0 +1,2 @@
|
|||
%%SITE_PERL%%/Types/Core.pm
|
||||
%%PERL5_MAN3%%/Types::Core.3.gz
|
Loading…
Reference in a new issue