mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
Add p5-Module-Pluggable-Ordered 1.2, call module plugins in a
specified order.
This commit is contained in:
parent
123e8f3f97
commit
0ae7c0cad7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117560
@ -868,6 +868,7 @@
|
||||
SUBDIR += p5-Module-Info
|
||||
SUBDIR += p5-Module-Info-File
|
||||
SUBDIR += p5-Module-Pluggable
|
||||
SUBDIR += p5-Module-Pluggable-Ordered
|
||||
SUBDIR += p5-Module-Reload
|
||||
SUBDIR += p5-Module-ScanDeps
|
||||
SUBDIR += p5-Module-Versions-Report
|
||||
|
30
devel/p5-Module-Pluggable-Ordered/Makefile
Normal file
30
devel/p5-Module-Pluggable-Ordered/Makefile
Normal file
@ -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>
|
2
devel/p5-Module-Pluggable-Ordered/distinfo
Normal file
2
devel/p5-Module-Pluggable-Ordered/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (Module-Pluggable-Ordered-1.2.tar.gz) = 0a11301431ad480d1f886ebc0f9dd784
|
||||
SIZE (Module-Pluggable-Ordered-1.2.tar.gz) = 3088
|
@ -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.
|
23
devel/p5-Module-Pluggable-Ordered/files/5.005_03-Ordered.pm
Normal file
23
devel/p5-Module-Pluggable-Ordered/files/5.005_03-Ordered.pm
Normal file
@ -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);
|
5
devel/p5-Module-Pluggable-Ordered/pkg-descr
Normal file
5
devel/p5-Module-Pluggable-Ordered/pkg-descr
Normal file
@ -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/
|
7
devel/p5-Module-Pluggable-Ordered/pkg-plist
Normal file
7
devel/p5-Module-Pluggable-Ordered/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user