import devel/p5-Switch, ok jasper
Switch.pm provides the syntax and semantics for an explicit case mechanism for Perl. The syntax is minimal, introducing only the keywords "switch" and "case" and conforming to the general pattern of existing Perl control structures. The semantics are particularly rich, allowing any one (or more) of nearly 30 forms of matching to be used when comparing a switch value with its various cases. This is from CPAN and works the same as a deprecated function in Perl base which will be removed in a future version.
This commit is contained in:
parent
a578b37381
commit
e42866aeea
17
devel/p5-Switch/Makefile
Normal file
17
devel/p5-Switch/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/10/09 17:11:31 sthen Exp $
|
||||
|
||||
COMMENT= switch statement for Perl
|
||||
|
||||
MODULES= cpan
|
||||
DISTNAME= Switch-2.16
|
||||
CATEGORIES= devel
|
||||
|
||||
# Artistic
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
CPAN_AUTHOR= RGARCIA
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-Switch/distinfo
Normal file
2
devel/p5-Switch/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (Switch-2.16.tar.gz) = MIyPJ/KVkGd4GG8UxikZI5BXMLRrqHnDpo//gcN9+dg=
|
||||
SIZE (Switch-2.16.tar.gz) = 13185
|
9
devel/p5-Switch/pkg/DESCR
Normal file
9
devel/p5-Switch/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
Switch.pm provides the syntax and semantics for an explicit case
|
||||
mechanism for Perl. The syntax is minimal, introducing only the
|
||||
keywords "switch" and "case" and conforming to the general pattern
|
||||
of existing Perl control structures. The semantics are particularly
|
||||
rich, allowing any one (or more) of nearly 30 forms of matching to
|
||||
be used when comparing a switch value with its various cases.
|
||||
|
||||
This is from CPAN and works the same as a deprecated function in
|
||||
Perl base which will be removed in a future version.
|
3
devel/p5-Switch/pkg/PLIST
Normal file
3
devel/p5-Switch/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/10/09 17:11:31 sthen Exp $
|
||||
${P5SITE}/Switch.pm
|
||||
@man man/man3p/Switch.3p
|
Loading…
Reference in New Issue
Block a user