Subject: CVS commit: pkgsrc
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 05/18/2005 22:42:07
Module Name:	pkgsrc
Committed By:	jlam
Date:		Wed May 18 22:42:07 UTC 2005

Modified Files:
	pkgsrc/lang/libperl: buildlink3.mk
	pkgsrc/lang/perl5: buildlink3.mk module.mk
	pkgsrc/mk: bsd.pkg.use.mk
	pkgsrc/mk/tools: perl.mk
Added Files:
	pkgsrc/lang/perl5: version.mk

Log Message:
Goal:	Remove USE_PERL5 from pkgsrc.
Plan:
	(1) Change USE_PERL5=build into USE_TOOLS+=perl.
	(2) Change all other USE_PERL5 into including perl5/buildlink3.mk.

Possibly, for packages that don't actually build anything with perl,
but merely require it for the perl interpreter, we can instead do:

	USE_TOOLS+=		perl
	TOOLS_DEPMETHOD.perl=	DEPENDS

but this is more verbose than simply including the perl5/buildlink3.mk
file.

Move the PERL5_REQD computation into a lang/perl5/version.mk file,
and only do the USE_PERL5 logic in bsd.pkg.use.mk if we're not using
the new tools framework.  This consolidates all of the perl-handling
into two places -- lang/perl5 and mk/tools/perl.mk.


To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 pkgsrc/lang/libperl/buildlink3.mk
cvs rdiff -r1.19 -r1.20 pkgsrc/lang/perl5/buildlink3.mk
cvs rdiff -r1.44 -r1.45 pkgsrc/lang/perl5/module.mk
cvs rdiff -r0 -r1.1 pkgsrc/lang/perl5/version.mk
cvs rdiff -r1.13 -r1.14 pkgsrc/mk/bsd.pkg.use.mk
cvs rdiff -r1.11 -r1.12 pkgsrc/mk/tools/perl.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.