New port: devel/p5-Task-Weaken, Ensure that a platform has weaken support

This commit is contained in:
Lars Balker Rasmussen 2007-04-06 08:21:03 +00:00
parent 922ad0cb2d
commit b140e96e01
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189342
5 changed files with 59 additions and 0 deletions

View File

@ -1469,6 +1469,7 @@
SUBDIR += p5-Sys-Syscall
SUBDIR += p5-System2
SUBDIR += p5-Taint-Runtime
SUBDIR += p5-Task-Weaken
SUBDIR += p5-Term-ANSIColor
SUBDIR += p5-Term-ANSIScreen
SUBDIR += p5-Term-Animation

View File

@ -0,0 +1,26 @@
# Ports collection makefile for: p5-Task-Weaken
# Date created: Apr 5, 2007
# Whom: lbr@freebsd.org
#
# $FreeBSD$
#
PORTNAME= Task-Weaken
PORTVERSION= 0.99
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Task
PKGNAMEPREFIX= p5-
MAINTAINER= lbr@FreeBSD.org
COMMENT= Ensure that a platform has weaken support
PERL_CONFIGURE= yes
MAN3= Task::Weaken.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500805
IGNORE= requires at least Perl 5.8.5. (Re-)install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (Task-Weaken-0.99.tar.gz) = 92de456b6d1be928428babb7ebcdc6c1
SHA256 (Task-Weaken-0.99.tar.gz) = bc1bd0fa3c77eb090f4a7dbeca349a503d686471fbd1fc5ffa8c07f2ab785e0e
SIZE (Task-Weaken-0.99.tar.gz) = 19917

View File

@ -0,0 +1,23 @@
One recurring problem in modules that use Scalar::Util's weaken function is
that it is not present in the pure-perl variant.
While this isn't necesarily always a problem in a straight CPAN-based Perl
environment, some operating system distributions only include the pure-Perl
versions, don't include the XS version, and so weaken is then "missing" from
the platform, despite passing a dependency on Scalar::Util successfully.
Most notably this is RedHat Linux at time of writing, but other come and go
and do the same thing, hence "recurring problem".
The normal solution is to manually write tests in each distribution to ensure
that weaken is available.
This restores the functionality testing to a dependency you do once in your
Makefile.PL, rather than something you have to write extra tests for each
time you write a module.
It should also help make the package auto-generators for the various
operating systems play more nicely, because it introduces a dependency that
they have to have a proper weaken in order to work.
WWW: http://search.cpan.org/dist/Task-Weaken/

View File

@ -0,0 +1,6 @@
%%SITE_PERL%%/Task/Weaken.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Task/Weaken/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Task/Weaken
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Task
@dirrmtry %%SITE_PERL%%/Task/Weaken
@dirrmtry %%SITE_PERL%%/Task