summaryrefslogtreecommitdiff
path: root/devel/p5-Module-Build
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-02-24 22:38:41 +0000
committerjlam <jlam@pkgsrc.org>2005-02-24 22:38:41 +0000
commitcc44d0be98aabb64601c3d29f432f4c367d294a2 (patch)
treec96cdee8b1fc0edeb3e3d598eb735386e2aeae9c /devel/p5-Module-Build
parent2fc640fd96763871e652242bb17a5d29baa4672a (diff)
downloadpkgsrc-cc44d0be98aabb64601c3d29f432f4c367d294a2.tar.gz
* Teach devel/p5-Module-Build to write .packlists just like MakeMaker.pm
does. This allows us to use dynamic PLISTs for Perl modules that are built using Module::Build. Bump the PKGREVISION of p5-Module-Build to 1. * Drop the use of PERL5_USES_MODULE_BUILD and introduce a new variable PERL5_MODULE_TYPE that is either "MakeMaker" or "Module::Build" that names the framework used to build/install the module. * Split out the variables set in perl5/buildlink3.mk that are also used by perl5/module.mk into a new file perl5/vars.mk. Move some PERL5_* variable definitions from pkgsrc/mk/bsd.pkg.use.mk into perl5/vars.mk. This just centralizes the common PERL5_* definitions into a single file location. * Convert the known packages that use Module::Build to set PERL5_MODULE_TYPE and PERL5_PACKLIST: devel/p5-Class-Container devel/p5-Exception-Class devel/p5-Log-Dispatch devel/p5-Array-Compare textproc/p5-Pod-Coverage www/p5-Apache-Session-Wrapper www/p5-MasonX-Request-WithApacheSession
Diffstat (limited to 'devel/p5-Module-Build')
-rw-r--r--devel/p5-Module-Build/Makefile22
-rw-r--r--devel/p5-Module-Build/PLIST47
-rw-r--r--devel/p5-Module-Build/distinfo3
-rw-r--r--devel/p5-Module-Build/patches/patch-aa16
4 files changed, 26 insertions, 62 deletions
diff --git a/devel/p5-Module-Build/Makefile b/devel/p5-Module-Build/Makefile
index f1279d5af14..af8206ae256 100644
--- a/devel/p5-Module-Build/Makefile
+++ b/devel/p5-Module-Build/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.5 2005/02/19 12:40:47 wiz Exp $
-#
+# $NetBSD: Makefile,v 1.6 2005/02/24 22:38:42 jlam Exp $
DISTNAME= Module-Build-0.2608
PKGNAME= p5-${DISTNAME}
SVR4_PKGNAME= p5mob
+PKGREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Module/}
@@ -13,18 +13,10 @@ COMMENT= Build and install Perl modules
DEPENDS+= p5-YAML-[0-9]*:../../textproc/p5-YAML
-USE_PERL5= YES
-
-do-configure:
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PERL5} Build.PL
-
-do-build:
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build
-
-do-test:
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build test
-
-do-install:
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install
+USE_BUILDLINK3= yes
+BUILDING_MODULE_BUILD= yes
+PERL5_MODULE_TYPE= Module::Build
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Module/Build/.packlist
+.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Module-Build/PLIST b/devel/p5-Module-Build/PLIST
index 11b13de37d1..74f0df3f0ef 100644
--- a/devel/p5-Module-Build/PLIST
+++ b/devel/p5-Module-Build/PLIST
@@ -1,46 +1 @@
-@comment $NetBSD: PLIST,v 1.5 2005/02/19 12:40:47 wiz Exp $
-bin/config_data
-${PERL5_SITELIB}/Module/Build.pm
-${PERL5_SITELIB}/Module/Build/Base.pm
-${PERL5_SITELIB}/Module/Build/Compat.pm
-${PERL5_SITELIB}/Module/Build/ConfigData.pm
-${PERL5_SITELIB}/Module/Build/Cookbook.pm
-${PERL5_SITELIB}/Module/Build/PPMMaker.pm
-${PERL5_SITELIB}/Module/Build/Platform/Amiga.pm
-${PERL5_SITELIB}/Module/Build/Platform/Default.pm
-${PERL5_SITELIB}/Module/Build/Platform/EBCDIC.pm
-${PERL5_SITELIB}/Module/Build/Platform/MPEiX.pm
-${PERL5_SITELIB}/Module/Build/Platform/MacOS.pm
-${PERL5_SITELIB}/Module/Build/Platform/RiscOS.pm
-${PERL5_SITELIB}/Module/Build/Platform/Unix.pm
-${PERL5_SITELIB}/Module/Build/Platform/VMS.pm
-${PERL5_SITELIB}/Module/Build/Platform/VOS.pm
-${PERL5_SITELIB}/Module/Build/Platform/Windows.pm
-${PERL5_SITELIB}/Module/Build/Platform/aix.pm
-${PERL5_SITELIB}/Module/Build/Platform/cygwin.pm
-${PERL5_SITELIB}/Module/Build/Platform/darwin.pm
-${PERL5_SITELIB}/Module/Build/Platform/os2.pm
-${PERL5_SITELIB}/Module/Build/PodParser.pm
-lib/perl5/site_perl/man/man3/Module::Build.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Base.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Compat.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::ConfigData.3
-lib/perl5/site_perl/man/man3/Module::Build::Cookbook.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::PPMMaker.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::Amiga.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::Default.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::EBCDIC.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::MPEiX.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::MacOS.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::RiscOS.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::Unix.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::VMS.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::VOS.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::Windows.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::aix.3
-lib/perl5/site_perl/man/man3/Module::Build::Platform::cygwin.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::darwin.3.gz
-lib/perl5/site_perl/man/man3/Module::Build::Platform::os2.3
-man/man1/config_data.1
-@dirrm ${PERL5_SITELIB}/Module/Build/Platform
-@dirrm ${PERL5_SITELIB}/Module/Build
+@comment $NetBSD: PLIST,v 1.6 2005/02/24 22:38:42 jlam Exp $
diff --git a/devel/p5-Module-Build/distinfo b/devel/p5-Module-Build/distinfo
index 4cb6a9e4d9a..d51edd6f86d 100644
--- a/devel/p5-Module-Build/distinfo
+++ b/devel/p5-Module-Build/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2005/02/23 22:24:27 agc Exp $
+$NetBSD: distinfo,v 1.5 2005/02/24 22:38:42 jlam Exp $
SHA1 (Module-Build-0.2608.tar.gz) = 49cb2093e478247689c3745b9beb72e88d8d9d72
RMD160 (Module-Build-0.2608.tar.gz) = 456e34e36ae4d4cb996f00013bf570faf6bd50cf
Size (Module-Build-0.2608.tar.gz) = 126273 bytes
+SHA1 (patch-aa) = da2ddb73bccbb3be77ff8141adf07a324851a3a4
diff --git a/devel/p5-Module-Build/patches/patch-aa b/devel/p5-Module-Build/patches/patch-aa
new file mode 100644
index 00000000000..abe78628a94
--- /dev/null
+++ b/devel/p5-Module-Build/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.3 2005/02/24 22:38:42 jlam Exp $
+
+--- lib/Module/Build/Base.pm.orig 2005-01-26 20:48:56.000000000 -0500
++++ lib/Module/Build/Base.pm
+@@ -2386,6 +2386,11 @@ sub install_map {
+ }
+
+ $map{read} = ''; # To keep ExtUtils::Install quiet
++
++ # Write the packlist into the same place as ExtUtils::MakeMaker.
++ my $archdir = $self->install_destination('arch');
++ my $ext = File::Spec->catdir(split /::/, $self->{properties}{module_name});
++ $map{write} = File::Spec->catdir($archdir, 'auto', $ext, '.packlist');
+
+ return \%map;
+ }