From 1f39ce7be054daf86e0fdc144959863a3eabd080 Mon Sep 17 00:00:00 2001 From: seb Date: Fri, 23 Jan 2009 11:03:27 +0000 Subject: Update from version 0.75 to version 0.76. Pkgsrc changes: - Add patch on Makefile.PL so that the generated Makefile does not require gmake Upstream changes: 0.76 * Class::MOP::Method::Generated - Added new private methods to support code generation, which are being used by Moose and can be used by MooseX authors. (mst) - Generated methods are now generated with a #line directive reflecting the source of the generated method. (nothingmuch) * Class::MOP::Class - Clarified documentation of methods that return Class::MOP::Method objects. (doy) * Class::MOP - Clarified documentation of the metaclass cache methods. (Sartak) * Tests - Add test showing how the xs Class::MOP::is_class_loaded can be made to operate differently to the pure perl version (t0m) --- devel/p5-Class-MOP/Makefile | 4 ++-- devel/p5-Class-MOP/distinfo | 9 ++++---- devel/p5-Class-MOP/patches/patch-aa | 45 +++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 devel/p5-Class-MOP/patches/patch-aa diff --git a/devel/p5-Class-MOP/Makefile b/devel/p5-Class-MOP/Makefile index c5272325ed4..dae6404ad40 100644 --- a/devel/p5-Class-MOP/Makefile +++ b/devel/p5-Class-MOP/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.14 2009/01/04 09:30:39 seb Exp $ +# $NetBSD: Makefile,v 1.15 2009/01/23 11:03:27 seb Exp $ # -DISTNAME= Class-MOP-0.75 +DISTNAME= Class-MOP-0.76 PKGNAME= p5-${DISTNAME} CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Class/} diff --git a/devel/p5-Class-MOP/distinfo b/devel/p5-Class-MOP/distinfo index aae2d4e8d7c..8bf2e6e9f01 100644 --- a/devel/p5-Class-MOP/distinfo +++ b/devel/p5-Class-MOP/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.12 2009/01/04 09:30:39 seb Exp $ +$NetBSD: distinfo,v 1.13 2009/01/23 11:03:27 seb Exp $ -SHA1 (Class-MOP-0.75.tar.gz) = 5a82f42276cad55a40219ed90c3c92bed89e563b -RMD160 (Class-MOP-0.75.tar.gz) = 5e20f02701e6cd2a70a795f85d74371d450b43dd -Size (Class-MOP-0.75.tar.gz) = 153042 bytes +SHA1 (Class-MOP-0.76.tar.gz) = c1b47c91cd9f6c414e8a049f71c39283020c4926 +RMD160 (Class-MOP-0.76.tar.gz) = 3557b12b9d7d61035fa4ec5dd5d9485c2b1eab7a +Size (Class-MOP-0.76.tar.gz) = 154409 bytes +SHA1 (patch-aa) = 1d54e67e537c9e956292ef7499c662d3528a9519 diff --git a/devel/p5-Class-MOP/patches/patch-aa b/devel/p5-Class-MOP/patches/patch-aa new file mode 100644 index 00000000000..d0221efdb5a --- /dev/null +++ b/devel/p5-Class-MOP/patches/patch-aa @@ -0,0 +1,45 @@ +$NetBSD: patch-aa,v 1.1 2009/01/23 11:03:27 seb Exp $ + +Avoid GNU make inference rules extension (applied upstream). + +--- Makefile.PL.orig 2009-01-22 22:20:41.000000000 +0000 ++++ Makefile.PL +@@ -130,9 +130,7 @@ sub is_maintainer { + sub get_pp_tests { + opendir my $dh, 't' or die "Cannot read t: $!"; + +- return map { +- File::Spec->catfile('t', "pp_${_}") +- } grep { $_ !~ /^99/ } grep {/^\d.+\.t$/} readdir $dh; ++ return grep { $_ !~ /^99/ } grep {/^\d.+\.t$/} readdir $dh; + } + + # This is EUMM voodoo +@@ -149,9 +147,17 @@ sub init { + package MY; + + sub postamble { +- my $pp_tests = join q{ }, ::get_pp_tests(); ++ my @test_files = ::get_pp_tests(); ++ my $pp_tests = join q{ }, map { File::Spec->catfile('t', "pp_${_}") } @test_files; ++ my @pp_test_targets = join qq{\n}, map { ++ my $source = File::Spec->catfile('t', ${_}); ++ File::Spec->catfile('t', "pp_${_}") . q{: } ++ . qq{$source t/header_pp.inc\n\t} ++ . q{$(NOECHO) $(ABSPERLRUN) "-MExtUtils::Command" -e cat t/header_pp.inc } ++ . $source . q{ > $@} . qq{\n} ++ } @test_files; + my $test_dep = $::has_compiler && ::is_maintainer() +- ? 'pure_all :: pp_tests' ++ ? qq{pure_all :: pp_tests\n} . join qq{\n}, @pp_test_targets + : ''; + + return <<"EOM" +@@ -159,7 +165,5 @@ pp_tests: ${pp_tests} + + ${test_dep} + +-t/pp_%: t/% t/header_pp.inc +-\t\$(NOECHO) \$(ABSPERLRUN) "-MExtUtils::Command" -e cat t/header_pp.inc \$< > \$@ + EOM + } -- cgit v1.2.3