Neutralize Canary::Stability entirely
As time goes on, the uselessness of this module only increases. Previously, a short-circuit was used to return early from import(), but there's no point in even wasting time to compile it anymore. Instead, when ACTIVATE is off, replace the module entirely with a much more functional stub.
This commit is contained in:
parent
4b951d08b7
commit
04e573a0ac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473172
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= Canary-Stability
|
||||
PORTVERSION= 2012
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
MASTER_SITE_SUBDIR= CPAN:MLEHMANN
|
||||
@ -19,9 +20,8 @@ USE_PERL5= configure
|
||||
OPTIONS_DEFINE= ACTIVATE
|
||||
ACTIVATE_DESC= Enable Canary::Stability functionality
|
||||
|
||||
# Just skip everything in this module unless activated
|
||||
# Install an empty stub
|
||||
post-patch-ACTIVATE-off:
|
||||
@${REINPLACE_CMD} -e '/^sub import {/s/$$/ return 1; /' \
|
||||
${WRKSRC}/Stability.pm
|
||||
${CP} ${FILESDIR}/Stability.pm ${WRKSRC}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
19
devel/p5-Canary-Stability/files/Stability.pm
Normal file
19
devel/p5-Canary-Stability/files/Stability.pm
Normal file
@ -0,0 +1,19 @@
|
||||
=head1 NAME
|
||||
|
||||
Canary::Stability - Stub to prevent checking perl compatibility for "schmorp" modules
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use Canary::Stability;
|
||||
|
||||
=head1 PURPOSE
|
||||
|
||||
This is a stub module that neutralizes the original Canary::Stability
|
||||
module. That module is a relic of a strange notion that "schmorp" should
|
||||
prevent people from using any Perl released after 2015.
|
||||
|
||||
=cut
|
||||
|
||||
package Canary::Stability;
|
||||
|
||||
1;
|
Loading…
Reference in New Issue
Block a user