develooper Front page | perl.perl5.porters | Postings from April 2003

Re: META.yml [Was: Re: [PATCH Encode 1.93] pre-1.94 patch]

Thread Previous
From:
Dan Kogai
Date:
April 25, 2003 00:28
Subject:
Re: META.yml [Was: Re: [PATCH Encode 1.93] pre-1.94 patch]
Message ID:
7C035144-76EF-11D7-A504-000393AE4244@dan.co.jp
On Friday, April 25, 2003, at 04:10  PM, Jarkko Hietaniemi wrote:
>> Okay, looks like MakeMaker autogenerates this and appended onto
>> MANIFEST when I did "bleedperl Makefile.PL". Schwern, should this stay
>> in MANIFEST or is this a prereq for MakeMaker 6.10_03?
>
> I think such autogeneration, and mucking with MANIFEST, is bad, at
> least by default.  (Besides, I think META.yml is something from
> Module::Build: why is MakeMaker futzing with it...?)

I confess I don't know where the heck this META.yml so I did a little 
observation

* MATA.yml never appears by "perl5.8.0 Makefile.PL".  This is only 
prevalent after "bleedperl Makefile.PL" then "make tardist".

"bleedperl Makefile.PL" puts this into Makefile.

> # --- MakeMaker metafile section:
> metafile :
>         $(NOECHO) $(ECHO) '#XXXXXXX This is a prototype!!!  It will 
> change in th
> e future!!! XXXXX#' > META.yml
>         $(NOECHO) $(ECHO) 'name:         Encode' >> META.yml
>         $(NOECHO) $(ECHO) 'version:      1.93' >> META.yml
>         $(NOECHO) $(ECHO) 'version_from: Encode.pm' >> META.yml
>         $(NOECHO) $(ECHO) 'installdirs:  perl' >> META.yml
>         $(NOECHO) $(ECHO) 'requires:' >> META.yml
>         $(NOECHO) $(ECHO) '' >> META.yml
>         $(NOECHO) $(ECHO) 'distribution_type: module' >> META.yml
>         $(NOECHO) $(ECHO) 'generated_by: ExtUtils::MakeMaker version 
> 6.10_03' >>
>  META.yml
>
> # --- MakeMaker metafile_addtomanifest section:
> metafile_addtomanifest:
>         $(NOECHO) $(PERLRUN) -MExtUtils::Manifest=maniadd -e 
> 'maniadd({q{META.ym
> l} => q{Module meta-data in YAML}});'

And looks like these sections get executed when you "make tardist",

> > make -n tardist
> echo '#XXXXXXX This is a prototype!!!  It will change in the future!!! 
> XXXXX#' > META.yml
> echo 'name:         Encode' >> META.yml
> echo 'version:      1.93' >> META.yml
> echo 'version_from: Encode.pm' >> META.yml
> echo 'installdirs:  perl' >> META.yml
> echo 'requires:' >> META.yml
> echo '' >> META.yml
> echo 'distribution_type: module' >> META.yml
> echo 'generated_by: ExtUtils::MakeMaker version 6.10_03' >> META.yml
> /usr/home/dankogai/bleedperl/bin/perl5.9.0 
> -MExtUtils::Manifest=maniadd -e 'maniadd({q{META.yml} => q{Module 
> meta-data in YAML}});'
> rm -rf Encode-1.93
> /usr/home/dankogai/bleedperl/bin/perl5.9.0 
> "-MExtUtils::Manifest=manicopy,maniread"  -e 
> "manicopy(maniread(),'Encode-1.93', 'best');"
> /bin/sh -c true
> /bin/sh -c true
> tar cvf Encode-1.93.tar Encode-1.93
> rm -rf Encode-1.93
> gzip -9f Encode-1.93.tar
> /bin/sh -c true
> /bin/sh -c true

Is this by intention, Schwern?

Dan the Encode Maintainer


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About