diff options
author | Lars Thegler <lth@FreeBSD.org> | 2004-08-29 11:54:05 +0000 |
---|---|---|
committer | Lars Thegler <lth@FreeBSD.org> | 2004-08-29 11:54:05 +0000 |
commit | 0ae7c0cad7010d5cb457ff16733584ff0050345b (patch) | |
tree | 6556493cb1b3107639229233a08b105522c6d1e7 /devel/p5-Module-Pluggable-Ordered | |
parent | - Only use SDL support if WITHOUT_MPEG4IP is not defined (diff) |
Add p5-Module-Pluggable-Ordered 1.2, call module plugins in a
specified order.
Diffstat (limited to 'devel/p5-Module-Pluggable-Ordered')
-rw-r--r-- | devel/p5-Module-Pluggable-Ordered/Makefile | 30 | ||||
-rw-r--r-- | devel/p5-Module-Pluggable-Ordered/distinfo | 2 | ||||
-rw-r--r-- | devel/p5-Module-Pluggable-Ordered/files/5.005_03-Makefile.PL | 7 | ||||
-rw-r--r-- | devel/p5-Module-Pluggable-Ordered/files/5.005_03-Ordered.pm | 23 | ||||
-rw-r--r-- | devel/p5-Module-Pluggable-Ordered/pkg-descr | 5 | ||||
-rw-r--r-- | devel/p5-Module-Pluggable-Ordered/pkg-plist | 7 |
6 files changed, 74 insertions, 0 deletions
diff --git a/devel/p5-Module-Pluggable-Ordered/Makefile b/devel/p5-Module-Pluggable-Ordered/Makefile new file mode 100644 index 000000000000..7aaec2af663d --- /dev/null +++ b/devel/p5-Module-Pluggable-Ordered/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: p5-Module-Pluggable-Ordered +# Date created: 2004-08-29 +# Whom: Lars Thegler <lth@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= Module-Pluggable-Ordered +PORTVERSION= 1.2 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Module +PKGNAMEPREFIX= p5- + +MAINTAINER= lth@FreeBSD.org +COMMENT= Call module plugins in a specified order + +BUILD_DEPENDS= ${SITE_PERL}/Module/Pluggable.pm:${PORTSDIR}/devel/p5-Module-Pluggable \ + ${SITE_PERL}/UNIVERSAL/require.pm:${PORTSDIR}/devel/p5-UNIVERSAL-exports +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Module::Pluggable::Ordered.3 + +.include <bsd.port.pre.mk> +.if ${PERL_LEVEL} <= 500503 +EXTRA_PATCHES= ${PATCHDIR}/5.005_03-* +.endif +.include <bsd.port.post.mk> diff --git a/devel/p5-Module-Pluggable-Ordered/distinfo b/devel/p5-Module-Pluggable-Ordered/distinfo new file mode 100644 index 000000000000..720a16571d44 --- /dev/null +++ b/devel/p5-Module-Pluggable-Ordered/distinfo @@ -0,0 +1,2 @@ +MD5 (Module-Pluggable-Ordered-1.2.tar.gz) = 0a11301431ad480d1f886ebc0f9dd784 +SIZE (Module-Pluggable-Ordered-1.2.tar.gz) = 3088 diff --git a/devel/p5-Module-Pluggable-Ordered/files/5.005_03-Makefile.PL b/devel/p5-Module-Pluggable-Ordered/files/5.005_03-Makefile.PL new file mode 100644 index 000000000000..4604bdd45a22 --- /dev/null +++ b/devel/p5-Module-Pluggable-Ordered/files/5.005_03-Makefile.PL @@ -0,0 +1,7 @@ +--- Makefile.PL.orig Sun Aug 29 11:39:28 2004 ++++ Makefile.PL Sun Aug 29 11:39:33 2004 +@@ -1,4 +1,3 @@ +-use 5.006; + use ExtUtils::MakeMaker; + # See lib/ExtUtils/MakeMaker.pm for details of how to influence + # the contents of the Makefile that is written. diff --git a/devel/p5-Module-Pluggable-Ordered/files/5.005_03-Ordered.pm b/devel/p5-Module-Pluggable-Ordered/files/5.005_03-Ordered.pm new file mode 100644 index 000000000000..fa1eea3be51e --- /dev/null +++ b/devel/p5-Module-Pluggable-Ordered/files/5.005_03-Ordered.pm @@ -0,0 +1,23 @@ +--- Ordered.pm.orig Sat Jul 17 16:57:11 2004 ++++ Ordered.pm Sun Aug 29 11:46:19 2004 +@@ -1,10 +1,8 @@ + package Module::Pluggable::Ordered; +-use 5.006; + use strict; +-use warnings; + require Module::Pluggable; + use UNIVERSAL::require; +-our $VERSION = '1.2'; ++use vars qw($VERSION); $VERSION = '1.2'; + + sub import { + my ($self, %args) = @_; +@@ -32,7 +30,7 @@ + $_->require for @plugins; + + my $order_name = "${name}_order"; +- for my $class (sort { $a->$order_name <=> $b->$order_name } ++ for my $class (sort { $a->$order_name() <=> $b->$order_name() } + grep { $_->can($order_name) } + @plugins) { + $class->$name(@args); diff --git a/devel/p5-Module-Pluggable-Ordered/pkg-descr b/devel/p5-Module-Pluggable-Ordered/pkg-descr new file mode 100644 index 000000000000..42b301c17e05 --- /dev/null +++ b/devel/p5-Module-Pluggable-Ordered/pkg-descr @@ -0,0 +1,5 @@ +This module behaves exactly the same as Module::Pluggable, supporting +all of its options, but also mixes in the call_plugins method to +your class. + +WWW: http://search.cpan.org/dist/Module-Pluggable-Ordered/ diff --git a/devel/p5-Module-Pluggable-Ordered/pkg-plist b/devel/p5-Module-Pluggable-Ordered/pkg-plist new file mode 100644 index 000000000000..ef09091ea739 --- /dev/null +++ b/devel/p5-Module-Pluggable-Ordered/pkg-plist @@ -0,0 +1,7 @@ +%%SITE_PERL%%/Module/Pluggable/Ordered.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Module/Pluggable/Ordered/.packlist +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Module/Pluggable/Ordered 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Module/Pluggable 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Module 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/Module/Pluggable 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/Module 2>/dev/null || true |