MYMETA-CPANFILE(1p)

πŸ“¦
version 1.1004 Β· 2 versions
  • 1.1004 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.1004 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

mymeta-cpanfile β€” bestie, this lil icon dumps a cpanfile straight out of your (MY)META files πŸ’– (and yeah, the manual page you're reading is MYMETA-CPANFILE(1p), from the User Contributed Perl Documentation corner of the internet 🫢)


🌸 SYNOPSIS 🌸

perl Makefile.PL # or Build.PL
mymeta-cpanfile

# Skip configures phase and suggests type
mymeta-cpanfile --no-configure --no-suggests

# Include empty blcok for phases without prereqs
mymeta-cpanfile --include-empty

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea β˜• this script reads the prereqs metadata out of your MYMETA files in the current directory, and then prints a cpanfile that represents all those prereqs. literally that simple, and it ate πŸ”₯

it's giving migration era β€” super useful when you wanna move over to using cpanfile from your existing Makefile.PL or Build.PL that already has its dependency specification all filled in. no cap, it just does it for you πŸ’β€β™€οΈ

this script is distributed with Module::CPANfile since version 0.9021 β€” yes bestie, 0.9021, write that down πŸ“


✨ OPTIONS ✨

  • --configure, --build, --test, --runtime, --develop β€” these pick which phase you wanna include/exclude πŸ‘‘ by default every single phase is included, but you can drop some by slapping a --no- prefix on them, like --no-configure. bye phase πŸšͺ
  • --requires, --recommends, --suggests, --conflicts β€” same vibe but for the type πŸŽ€ defaults to including all types, and you exclude some by going --no- again, like --no-conflicts. yes ma'am, --no- is the move πŸ’…
  • --include-empty β€” so by default, phases that have zero prereqs just don't get dumped (ghosted πŸ’€). but if you hand over this option, your cpanfile will have an empty block like this:
on test => sub {

};

defaults to false. periodt ✨


πŸ¦‹ AUTHOR πŸ¦‹

Tatsuhiko Miyagawa β€” the legend, the moment, the main character 🫢


🌈 SEE ALSO 🌈

  • Module::CPANfile
  • cpanfile
  • App::mymeta_requires

ngl bestie, this page came from perl v5.36.0, dated 2022-11-19 β€” and the manual name on the tin is MYMETA-CPANFILE(1p). go forth and generate that cpanfile πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from