diff --git a/devel/Makefile b/devel/Makefile index d179d77d0e43..ad83c969ea28 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1308,6 +1308,7 @@ SUBDIR += p5-Sub-Exporter SUBDIR += p5-Sub-Install SUBDIR += p5-Sub-Installer + SUBDIR += p5-Sub-Multi SUBDIR += p5-Sub-Name SUBDIR += p5-Sub-Override SUBDIR += p5-Sub-Uplevel diff --git a/devel/p5-Sub-Multi/Makefile b/devel/p5-Sub-Multi/Makefile new file mode 100644 index 000000000000..6fc13ec88fc1 --- /dev/null +++ b/devel/p5-Sub-Multi/Makefile @@ -0,0 +1,27 @@ +# ex:ts=8 +# Ports collection makefile for: Sub::Multi +# Date created: Aug 1, 2006 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= Sub-Multi +PORTVERSION= 0.002 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= perl@FreeBSD.org +COMMENT= Data::Bind-based multi-sub dispatch + +BUILD_DEPENDS= p5-Class-Multimethods-Pure>=0.11:${PORTSDIR}/devel/p5-Class-Multimethods-Pure \ + p5-Data-Bind>=0.26:${PORTSDIR}/devel/p5-Data-Bind \ + p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Sub::Multi.3 + +.include diff --git a/devel/p5-Sub-Multi/distinfo b/devel/p5-Sub-Multi/distinfo new file mode 100644 index 000000000000..a2a1e512e8d5 --- /dev/null +++ b/devel/p5-Sub-Multi/distinfo @@ -0,0 +1,3 @@ +MD5 (Sub-Multi-0.002.tar.gz) = ebfee488846c3756b7a2fb418bb64707 +SHA256 (Sub-Multi-0.002.tar.gz) = bdb703ae47141dfbadc02ee415062ae0a61bfc7198bf3cab321a9a3132b0bb64 +SIZE (Sub-Multi-0.002.tar.gz) = 12583 diff --git a/devel/p5-Sub-Multi/pkg-descr b/devel/p5-Sub-Multi/pkg-descr new file mode 100644 index 000000000000..53deeb57ef1a --- /dev/null +++ b/devel/p5-Sub-Multi/pkg-descr @@ -0,0 +1,10 @@ +Perl6 allows multiple subs and methods with the same name, differing only in +their signature. + + multi sub bar (Dog $foo) {?} + multi sub bar (Cat $foo) {?} + +Dispatching will happen based on the runtime signature of the subroutine or +method call. + +WWW: http://search.cpan.org/dist/Sub-Multi/ diff --git a/devel/p5-Sub-Multi/pkg-plist b/devel/p5-Sub-Multi/pkg-plist new file mode 100644 index 000000000000..4405cb19471a --- /dev/null +++ b/devel/p5-Sub-Multi/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/Sub/Multi.pm +@dirrmtry %%SITE_PERL%%/Sub +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sub/Multi/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sub/Multi +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sub