Re: Wrapper for backwards compatibility

Pete Houston <[email protected]> Wed, 24 Mar 2021 22:57:15 +0000
Newsgroups gmane.comp.lang.perl.modules.extutils-makemaker.devel
Organization Openstrike
Message-ID <[email protected]>
--eJnRUKwClWJh1Khz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 24, 2021 at 10:22:12PM +0100, Leon Timmermans wrote:
> It sounds like a terrible idea. Most of all I'm not sure what problem
> that would solve.

The problem is the boilerplate sitting in every Makefile.PL to ensure it
is backwards-compatible with older EUMM versions. Not a huge problem I
grant you but certainly a bunch of repeated code like this which ideally
would be abstracted away into a single location.

	delete $MF{MIN_PERL_VERSION} if $ExtUtils::MakeMaker::VERSION < 6.48;
	delete $MF{META_MERGE}       if $ExtUtils::MakeMaker::VERSION < 6.46;
	delete $MF{LICENSE}          if $ExtUtils::MakeMaker::VERSION < 6.31;

etc.

> Writing Makefile.PL by hand is painful, that's why most people (who
> aren't experts) use tools like Dist::Zilla nowadays.

YMMV. I find writing Makefile.PL by hand to be much less painful than
using Dist::Zilla.

Pete
--=20
Openstrike - improving business through open source
https://www.openstrike.co.uk/ or call 01722 770036

--eJnRUKwClWJh1Khz
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAmBbw8sACgkQdzfnYmsKt51YRwCfUvcLA1p+Q2m7yW7JX42R5kkw
d6oAoNQU1LcSSgY//xaKSwk9W0giHAxf
=DehH
-----END PGP SIGNATURE-----

--eJnRUKwClWJh1Khz--