On Wed, Mar 28, 2012 at 11:03 AM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Mar 28, 2012 at 10:58:03AM -0400, Paul Tomblin wrote:<br>
>    Is there any documentation somewhere on how to package up the extensions - not how to write<br>
>    them, but how to do the other stuff like the Makefile.PL and META.yml so that it installs. I<br>
>    tried just copying the Makefile.PL and MANIFEST and META.yml from another project, but my html<br>
>    files didn't copy over. (I'm just starting the project, so all I have to install is some html<br>
>    mock-ups.)<br>
<br>
</div>Several of us use Dist-Zilla-MintingProfile-RTx which will generate<br>
a Makefile.PL and some other boring parts of RT extensions. You also<br>
need Module-Install-RTx on your development box so that the pieces<br>
of the extension that know where to put files for RT are included in<br>
the tarball.<br><font color="#888888"><br></font></blockquote><div><br></div><div>Ok, I installed Dist-Zilla-MintingProfile-RTx using "perl -MCPAN -e shell", and it dragged in about a zillion required modules.  Now the <a href="http://dzil.org">dzil.org</a> page says that I use "dzil new" to create a new directory to get started, and I just need to do "dzil  new RTx::FooBar", but I get a bunch of warnings:</div>
<div><div>dzil new   RTx::CareFirst</div><div>[DZ] making target dir /home/ptomblin/src/rt-extension-carefirst/RTx-CareFirst</div><div>[DZ] writing files to /home/ptomblin/src/rt-extension-carefirst/RTx-CareFirst</div><div>
[DZ] guessing dist's main_module is lib/RTx/CareFirst.pm</div><div>[DZ] no license data in config, no %Rights stash, couldn't make a good guess at license from Pod; giving up</div><div>[DZ] no license data in config, no %Rights stash, couldn't make a good guess at license from Pod; giving up at /usr/local/lib/perl/5.12.4/Moose/Meta/Method/Delegation.pm line 110</div>
</div><div><br></div><div>and then it creates a directory RTx-FooBar, and in that an empty dist.ini file and skeleton lib/RTx/FooBar.pm.  I couldn't find any documentation on how to generate this "%Rights stash" or config.</div>
<div><br></div><div>So instead I tried following the manual page on <a href="http://search.cpan.org/~falcone/Dist-Zilla-MintingProfile-RTx-0.05/lib/Dist/Zilla/MintingProfile/RTx.pm">http://search.cpan.org/~falcone/Dist-Zilla-MintingProfile-RTx-0.05/lib/Dist/Zilla/MintingProfile/RTx.pm</a> and so I tried </div>
<div>"dzil new -P RTx RTx::FooBar" and instead I got even more errors and warnings:</div><div><div>[DZ] making target dir /home/ptomblin/src/rt-extension-carefirst/RTx-FooBar</div><div>[DZ] Unable to find main_module in the distribution</div>
<div>[DZ] We tried to guess 'lib/RTx/FooBar.pm' but no file like that existed</div><div>[DZ] Upon further inspection we didn't find any files in your dist, did you add any?</div><div>[DZ] Cannot continue without a main_module</div>
<div>[DZ] No %User stash and no copyright holder; can't determine dist author; configure author or a %User section</div><div>[DZ] No %User stash and no copyright holder; can't determine dist author; configure author or a %User section at /usr/local/lib/perl/5.12.4/Moose/Meta/Method/Delegation.pm line 110</div>
</div><div><br></div><div>and this time the RTx-FooBar directory is empty.  I feel like I'm trying to learn how to swim, and I keep getting thrown into the shark tank.  Can somebody please point me towards the shallow (non shark infested) end?</div>
<div><br></div></div><br clear="all"><div><br></div>-- <br><a href="http://www.linkedin.com/in/paultomblin">http://www.linkedin.com/in/paultomblin</a><br><a href="http://careers.stackoverflow.com/ptomblin">http://careers.stackoverflow.com/ptomblin</a><br>
<br>