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. PR: ports/26875
This commit is contained in:
parent
4dcbaf4ca4
commit
c4e3d79cbc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42006
@ -84,6 +84,7 @@
|
||||
SUBDIR += p5-Error
|
||||
SUBDIR += p5-Expect
|
||||
SUBDIR += p5-F77
|
||||
SUBDIR += p5-Switch
|
||||
SUBDIR += p5-Tcl
|
||||
SUBDIR += p5-ePerl
|
||||
SUBDIR += pbasic
|
||||
|
25
lang/p5-Switch/Makefile
Normal file
25
lang/p5-Switch/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
# New ports collection makefile for: lang/p5-Switch
|
||||
# Date created: 26 April 2001
|
||||
# Whom: Anton Berezin <tobez@tobez.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Switch
|
||||
PORTVERSION= 2.02
|
||||
CATEGORIES= lang perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= ../by-authors/id/DCONWAY
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= tobez@tobez.org
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Filter/Util/Call.pm:${PORTSDIR}/devel/p5-Filter
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= Switch.3
|
||||
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
||||
|
||||
.include <bsd.port.mk>
|
1
lang/p5-Switch/distinfo
Normal file
1
lang/p5-Switch/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (Switch-2.02.tar.gz) = 91e1d2dfb0b78e7a8ab1451f685fb94b
|
1
lang/p5-Switch/pkg-comment
Normal file
1
lang/p5-Switch/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Switch - A switch statement for Perl
|
9
lang/p5-Switch/pkg-descr
Normal file
9
lang/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.
|
||||
|
||||
-Anton
|
||||
<tobez@tobez.org>
|
4
lang/p5-Switch/pkg-plist
Normal file
4
lang/p5-Switch/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Switch/.packlist
|
||||
lib/perl5/site_perl/%%PERL_VER%%/demo.pl
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Switch.pm
|
||||
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Switch 2>/dev/null || true
|
Loading…
Reference in New Issue
Block a user