svn commit: r473172 - in head/devel/p5-Canary-Stability: . files
Adam Weinberger
adamw at FreeBSD.org
Sun Jun 24 01:06:41 UTC 2018
Author: adamw
Date: Sun Jun 24 01:06:40 2018
New Revision: 473172
URL: https://svnweb.freebsd.org/changeset/ports/473172
Log:
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.
Added:
head/devel/p5-Canary-Stability/files/
head/devel/p5-Canary-Stability/files/Stability.pm (contents, props changed)
Modified:
head/devel/p5-Canary-Stability/Makefile
Modified: head/devel/p5-Canary-Stability/Makefile
==============================================================================
--- head/devel/p5-Canary-Stability/Makefile Sun Jun 24 01:06:12 2018 (r473171)
+++ head/devel/p5-Canary-Stability/Makefile Sun Jun 24 01:06:40 2018 (r473172)
@@ -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>
Added: head/devel/p5-Canary-Stability/files/Stability.pm
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Canary-Stability/files/Stability.pm Sun Jun 24 01:06:40 2018 (r473172)
@@ -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;
More information about the svn-ports-head
mailing list