Add p5-Syntax-Keyword-Try: Add try/catch/finally syntax to Perl
This module provides a syntax plugin that implements exception-handling semantics in a form familiar to users of other languages, being built on a block labeled with the try keyword, followed by at least one of a catch or finally block. Syntax similar to this module has now been added to core perl, starting at version 5.34.0. If you are writing new code, it is suggested that you instead use the Feature::Compat::Try module instead, as that will enable the core feature on those supported perl versions, falling back to Syntax::Keyword::Try on older perls.
This commit is contained in:
parent
a49f6edd48
commit
2ce33cf882
|
@ -0,0 +1,10 @@
|
|||
This module provides a syntax plugin that implements exception-handling
|
||||
semantics in a form familiar to users of other languages, being built on
|
||||
a block labeled with the try keyword, followed by at least one of a
|
||||
catch or finally block.
|
||||
|
||||
Syntax similar to this module has now been added to core perl, starting
|
||||
at version 5.34.0. If you are writing new code, it is suggested that you
|
||||
instead use the Feature::Compat::Try module instead, as that will enable
|
||||
the core feature on those supported perl versions, falling back to
|
||||
Syntax::Keyword::Try on older perls.
|
|
@ -0,0 +1,20 @@
|
|||
# $NetBSD: Makefile,v 1.1 2024/02/03 18:49:53 schmonz Exp $
|
||||
|
||||
DISTNAME= Syntax-Keyword-Try-0.29
|
||||
PKGNAME= p5-${DISTNAME}
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/P/PE/PEVANS/}
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://metacpan.org/pod/Syntax::Keyword::Try
|
||||
COMMENT= Add try/catch/finally syntax to Perl
|
||||
LICENSE= ${PERL5_LICENSE}
|
||||
|
||||
DEPENDS+= p5-XS-Parse-Keyword>=0.06:../../devel/p5-XS-Parse-Keyword
|
||||
TEST_DEPENDS+= p5-Test2-Suite-[0-9]*:../../devel/p5-Test2-Suite
|
||||
|
||||
PERL5_PACKLIST= auto/Syntax/Keyword/Try/.packlist
|
||||
PERL5_MODULE_TYPE= Module::Build
|
||||
|
||||
.include "../../lang/perl5/module.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -0,0 +1,4 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2024/02/03 18:49:53 schmonz Exp $
|
||||
@comment TODO: to fill this file with the file listing:
|
||||
@comment TODO: 1. run "/opt/pkg/bin/bmake package"
|
||||
@comment TODO: 2. run "/opt/pkg/bin/bmake print-PLIST"
|
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1 2024/02/03 18:49:53 schmonz Exp $
|
||||
|
||||
BLAKE2s (Syntax-Keyword-Try-0.29.tar.gz) = bd400a67730124cfc2547530a7816c2449f993e8ba0b3a30f48543842f504b18
|
||||
SHA512 (Syntax-Keyword-Try-0.29.tar.gz) = 269ea66916c39852262bc60b1661e90adf55489f1369a745a3c3ba24dd4335203a46d8bf8ddd39dcdefc4ae3314ce06b1fa7956d0a4bd23bba6fb809adaa1814
|
||||
Size (Syntax-Keyword-Try-0.29.tar.gz) = 45060 bytes
|
Loading…
Reference in New Issue