MYMETA-CPANFILE(1p)
β¨ 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, yourcpanfilewill 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::CPANfilecpanfileApp::mymeta_requires
ngl bestie, this page came fromperl v5.36.0, dated2022-11-19β and the manual name on the tin isMYMETA-CPANFILE(1p). go forth and generate thatcpanfileπβ¨π
π¦ where this page comes from
- debian bookworm: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmodule-cpanfile-perl 1.1004-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms