diff --git a/devel/p5-Switch/Makefile b/devel/p5-Switch/Makefile new file mode 100644 index 00000000000..7c65bc69e09 --- /dev/null +++ b/devel/p5-Switch/Makefile @@ -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 diff --git a/devel/p5-Switch/distinfo b/devel/p5-Switch/distinfo new file mode 100644 index 00000000000..54535279a3e --- /dev/null +++ b/devel/p5-Switch/distinfo @@ -0,0 +1,2 @@ +SHA256 (Switch-2.16.tar.gz) = MIyPJ/KVkGd4GG8UxikZI5BXMLRrqHnDpo//gcN9+dg= +SIZE (Switch-2.16.tar.gz) = 13185 diff --git a/devel/p5-Switch/pkg/DESCR b/devel/p5-Switch/pkg/DESCR new file mode 100644 index 00000000000..193dba6e3f6 --- /dev/null +++ b/devel/p5-Switch/pkg/DESCR @@ -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. diff --git a/devel/p5-Switch/pkg/PLIST b/devel/p5-Switch/pkg/PLIST new file mode 100644 index 00000000000..2c83cb56d6f --- /dev/null +++ b/devel/p5-Switch/pkg/PLIST @@ -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