tokuhirom / Minilla

Authorizing tool for CPAN modules
https://metacpan.org/release/Minilla
Other
97 stars 65 forks source link

How to bundle text files with library #214

Closed kidambisrinivas closed 7 years ago

kidambisrinivas commented 7 years ago

How do I bundle text files with a library so that when I install with cpanm or carton, I get the text file in the same path.

Example library like this: https://github.com/gisle/mozilla-ca/tree/master/lib/Mozilla/CA

syohex commented 7 years ago

It is enough to git add. You can check by MANIFEST file which is generated by minil build.

skaji commented 7 years ago

Put them in share directory, and use https://metacpan.org/pod/File::ShareDir

kidambisrinivas commented 7 years ago

Yes, the File::Share solution worked for me

https://metacpan.org/pod/File::Share

Thanks

cxw42 commented 5 years ago

@kidambisrinivas Would you be willing to share your solution? I am using the ExtUtils::MakeMaker profile. I see that I can use File::ShareDir::Install in Makefile.PL to copy the share files. However, I do not see how to tell Minilla to use File::ShareDir::Install. Also, I do not see instructions in the generated Makefile to copy the files. Do I need to create a Share.PL file or something? Or is install_share not supported with EUMM? Thank you!

Edit I see - ModuleBuild supports share here. Minilla::ModuleMaker::ExtUtilsMakeMaker does not appear to. I will open that as a new issue unless I am missing something obvious.