Re: [gentoo-dev] where to put *.pm files

2005-05-26 Thread Rene Zbinden
Thanks for the help! I put it here: http://bugs.gentoo.org/show_bug.cgi?id=94060 On Wednesday 25 May 2005 11:12, Michael Cummings wrote: > Well, first off, how does the program look for the perl modules? If it > isn't suggesting that you place them in your @INC, then it is most likely > loading th

Re: [gentoo-dev] where to put *.pm files

2005-05-26 Thread Rene Zbinden
Thanks, but unfortunately it is not on CPAN. On Wednesday 25 May 2005 23:32, Drake Wyrm wrote: > Rene Zbinden <[EMAIL PROTECTED]> wrote: > > I am writing a new ebuild. The program contains a perlscript > > (mainprog.pl) which needs two perl modules like (module1.pm > > module2.pm) > > > > I will

Re: [gentoo-dev] where to put *.pm files

2005-05-25 Thread Jan Kundrát
Drake Wyrm wrote: > Is this a package that is currently on CPAN? If so, I have a relatively > useful skeleton for writing CPAN ebuilds. I was able to install several > CPAN packages this way. In the ebuild, you'll need to edit or delete any > line marked with "XXX", but that will likely be all you

Re: [gentoo-dev] where to put *.pm files

2005-05-25 Thread Drake Wyrm
Rene Zbinden <[EMAIL PROTECTED]> wrote: > I am writing a new ebuild. The program contains a perlscript > (mainprog.pl) which needs two perl modules like (module1.pm > module2.pm) > > I will put mainprog.pl in /usr/bin but where do I put the two modules. > Shall I put them in /usr/share/programenam

Re: [gentoo-dev] where to put *.pm files

2005-05-25 Thread Michael Cummings
Perl modules needs to go under /path/to/perl-version/vendor_perl/ in that case (vendor_perl being the key). You can call perl within a function to get the perl version/vendor_path (see eclass). And i'm going to leave the comment on submitting ebuilds dangling lest i start a flame war :) On Wed

Re: [gentoo-dev] where to put *.pm files

2005-05-25 Thread Rene Zbinden
Yes the program looks in @INC for the modules and no the name of the program is not mainprog.pl. How can I put the two modules in the @INC the gentoo way. I saw that there is a perl eclass, but I am not sure how to use it correctly. I will file a Bug when the program works. Or should I already fi

Re: [gentoo-dev] where to put *.pm files

2005-05-25 Thread Michael Cummings
Well, first off, how does the program look for the perl modules? If it isn't suggesting that you place them in your @INC, then it is most likely loading them directly. So it all depends on how the main script (please tell me it isn't really called mainprog.pl) tries to load those modules as to

[gentoo-dev] where to put *.pm files

2005-05-24 Thread Rene Zbinden
Hi I am writing a new ebuild. The program contains a perlscript (mainprog.pl) which needs two perl modules like (module1.pm module2.pm) I will put mainprog.pl in /usr/bin but where do I put the two modules. Shall I put them in /usr/share/programename and put that to the perl path? -- cheers,