Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2018 01:06:40 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r473172 - in head/devel/p5-Canary-Stability: . files
Message-ID:  <201806240106.w5O16ew4061327@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806240106.w5O16ew4061327>