Date: Thu, 31 Jul 2003 15:44:13 +0200 (CEST) From: Mathieu Arnold <m@absolight.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: demon@FreeBSD.org Subject: ports/55115: update devel/p5-Module-Build Message-ID: <20030731134413.A5FC67E85@aragorn.reaumur.absolight.net> Resent-Message-ID: <200307311350.h6VDoCAn072756@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55115 >Category: ports >Synopsis: update devel/p5-Module-Build >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jul 31 06:50:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Mathieu Arnold >Release: FreeBSD 4.8-RELEASE i386 >Organization: Absolight >Environment: System: FreeBSD aragorn.reaumur.absolight.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Fri Jul 18 12:38:14 CEST 2003 root@aragorn.reaumur.absolight.net:/usr/obj/usr/src/sys/ARAGORN i386 >Description: Update devel/p5-Module-Build to 0.19_03 Man page generation works with all 3 perls. PREFIX is respected provided you use ${PORTSDIR}/devel/p5-Module-Build/inc.build.mk in Makefile. * Fixed a problem with the 'install_path' parameter given to 'Build.PL' being lost in subsequent actions. * The installation process will now create man(1) and man(3) pages from POD in modules & scripts, and install them. * version_from_file() now ignores $VERSION variables that are defined in POD or comments. It can still be tricked by $VERSIONs in string literals, though. * The code to find packages in module files now uses Steve's scanning method (above) to skip package-declaration-lookalikes in POD or comments. * The 'disttest' action will now propagate its @INC settings to its subprocesses. * Added a notes() feature, which helps share data transparently between the Build.PL and t/*.t scripts. (XXX needs documentation) >How-To-Repeat: >Fix: The use of inc.build.mk is the best I could think of. Tell me what you believe the best could be. All ports depending on Module::Build to build would have to be updated so that they include their newly born man pages. It should not be a problem as I seem to be the only one with perl ports depending on it. btw, portlint was a bit picky with the patch, saying that the $File may be interpreted as a CVS token. I don't think it would as there is not $ after it, but maybe -ko would not harm. --- p5-Module-Build-0.19_1.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/devel/p5-Module-Build/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- Makefile 10 Jul 2003 16:08:00 -0000 1.4 +++ Makefile 31 Jul 2003 13:30:03 -0000 @@ -7,20 +7,40 @@ PORTNAME= Module-Build PORTVERSION= 0.19 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} -MASTER_SITE_SUBDIR= Module +MASTER_SITE_SUBDIR= Module/KWILLIAMS PKGNAMEPREFIX= p5- +DISTNAME= ${PORTNAME}-${PORTVERSION}_03 MAINTAINER= demon@FreeBSD.org COMMENT= Build and install Perl modules BUILD_DEPENDS= ${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \ - ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML + ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML \ + ${SITE_PERL}/Pod/Man.pm:${PORTSDIR}/textproc/p5-podlators RUN_DEPENDS= ${BUILD_DEPENDS} PERL_CONFIGURE= yes +MAN3= Module::Build.3 \ + Module::Build::Base.3 \ + Module::Build::Compat.3 \ + Module::Build::Cookbook.3 \ + Module::Build::PPMMaker.3 \ + Module::Build::Platform::Amiga.3 \ + Module::Build::Platform::Default.3 \ + Module::Build::Platform::EBCDIC.3 \ + Module::Build::Platform::MPEiX.3 \ + Module::Build::Platform::MacOS.3 \ + Module::Build::Platform::RiscOS.3 \ + Module::Build::Platform::Unix.3 \ + Module::Build::Platform::VMS.3 \ + Module::Build::Platform::VOS.3 \ + Module::Build::Platform::Windows.3 \ + Module::Build::Platform::darwin.3 + .include <bsd.port.pre.mk> .if ${PERL_LEVEL} > 500600 @@ -30,4 +50,5 @@ BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec .endif +.include "inc.build.mk" .include <bsd.port.post.mk> Index: distinfo =================================================================== RCS file: /home/ncvs/ports/devel/p5-Module-Build/distinfo,v retrieving revision 1.2 diff -u -r1.2 distinfo --- distinfo 10 Jul 2003 16:08:00 -0000 1.2 +++ distinfo 31 Jul 2003 13:30:03 -0000 @@ -1 +1 @@ -MD5 (Module-Build-0.19.tar.gz) = c1647888d63033446583f9697fb7b426 +MD5 (Module-Build-0.19_03.tar.gz) = 7aa7e0775485ea29b7b1ef5dbf9c37bc Index: inc.build.mk =================================================================== RCS file: inc.build.mk diff -N inc.build.mk --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ inc.build.mk 31 Jul 2003 13:30:03 -0000 @@ -0,0 +1,33 @@ +# $FreeBSD$ +# To be used by modules using Module::Build + +.if ${PORTNAME} != Module-Build +BUILD_DEPENDS+= ${SITE_PERL}/Module/Build.pm:${PORTSDIR}/devel/p5-Module-Build +.endif + +ALL_TARGET?= all +CONFIGURE_SCRIPT= Build.PL +BUILD_SCRIPT= Build +CONFIGURE_ARGS+= install_path=lib="${PREFIX}/${SITE_PERL:S|^${LOCALBASE}/||}" \ + install_path=arch="${PREFIX}/${SITE_PERL:S|^${LOCALBASE}/||}/${PERL_ARCH}" \ + install_path=script="${PREFIX}/bin" \ + install_path=bin="${PREFIX}/bin" \ + install_path=libdoc="${MAN3PREFIX}/man/man3" \ + install_path=bindoc="${MAN1PREFIX}/man/man1" + +do-configure: + @cd ${CONFIGURE_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} \ + ${PERL5} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} + +do-build: +.if ${ALL_TARGET:Mall} == all + @cd ${BUILD_WRKSRC} && ${PERL5} ./${BUILD_SCRIPT} +.endif +.if ${ALL_TARGET:Mtest} == test + @cd ${BUILD_WRKSRC} && ${PERL5} ./${BUILD_SCRIPT} test +.endif + +do-install: + @cd ${INSTALL_WRKSRC} && ${PERL5} ./${BUILD_SCRIPT} ${INSTALL_TARGET} + Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/devel/p5-Module-Build/pkg-plist,v retrieving revision 1.2 diff -u -r1.2 pkg-plist --- pkg-plist 10 Jul 2003 16:08:00 -0000 1.2 +++ pkg-plist 31 Jul 2003 13:30:03 -0000 @@ -1,19 +1,19 @@ %%SITE_PERL%%/Module/Build.pm -%%SITE_PERL%%/Module/Build/Compat.pm %%SITE_PERL%%/Module/Build/Base.pm -%%SITE_PERL%%/Module/Build/PPMMaker.pm +%%SITE_PERL%%/Module/Build/Compat.pm %%SITE_PERL%%/Module/Build/Cookbook.pm -%%SITE_PERL%%/Module/Build/Platform/darwin.pm -%%SITE_PERL%%/Module/Build/Platform/MacOS.pm -%%SITE_PERL%%/Module/Build/Platform/RiscOS.pm -%%SITE_PERL%%/Module/Build/Platform/VOS.pm -%%SITE_PERL%%/Module/Build/Platform/Windows.pm -%%SITE_PERL%%/Module/Build/Platform/Unix.pm +%%SITE_PERL%%/Module/Build/PPMMaker.pm %%SITE_PERL%%/Module/Build/Platform/Amiga.pm +%%SITE_PERL%%/Module/Build/Platform/Default.pm %%SITE_PERL%%/Module/Build/Platform/EBCDIC.pm %%SITE_PERL%%/Module/Build/Platform/MPEiX.pm +%%SITE_PERL%%/Module/Build/Platform/MacOS.pm +%%SITE_PERL%%/Module/Build/Platform/RiscOS.pm +%%SITE_PERL%%/Module/Build/Platform/Unix.pm %%SITE_PERL%%/Module/Build/Platform/VMS.pm -%%SITE_PERL%%/Module/Build/Platform/Default.pm +%%SITE_PERL%%/Module/Build/Platform/VOS.pm +%%SITE_PERL%%/Module/Build/Platform/Windows.pm +%%SITE_PERL%%/Module/Build/Platform/darwin.pm @dirrm %%SITE_PERL%%/Module/Build/Platform @dirrm %%SITE_PERL%%/Module/Build @unexec rmdir %D/%%SITE_PERL%%/Module 2>/dev/null || true Index: files/patch-Module-Build-Base.pm =================================================================== RCS file: files/patch-Module-Build-Base.pm diff -N files/patch-Module-Build-Base.pm --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-Module-Build-Base.pm 31 Jul 2003 13:30:03 -0000 @@ -0,0 +1,11 @@ +--- lib/Module/Build/Base.pm.orig Thu Jul 24 20:41:52 2003 ++++ lib/Module/Build/Base.pm Wed Jul 30 15:59:22 2003 +@@ -1198,7 +1198,7 @@ + my $dir = $self->localize_file_path($spec); + next unless -e $dir; + do { $files{$_} = $_ if $self->contains_pod( $_ ) } +- for @{ $self->rscan_dir( $dir, sub { -f $File::Find::name } ) }; ++ for @{ $self->rscan_dir( $dir ) }; + } + return \%files; + } --- p5-Module-Build-0.19_1.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030731134413.A5FC67E85>