Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need Help: Instaling perl modules as part of a larger packag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
wallace1819
Apprentice
Apprentice


Joined: 17 Aug 2002
Posts: 195
Location: VT

PostPosted: Thu Mar 24, 2011 3:29 pm    Post subject: Need Help: Instaling perl modules as part of a larger packag Reply with quote

Howdy,

I'm working on an ebuild for an application that consists of a number of perl scripts. The application ships with some custom .pm files related to the application.

The modules are called:
OFPC::CXDB
OFPC::Config
OFPC::Common
OFPC::Parse
OFPC::Request

I'm trying to figure out two things:

1. Where should these be installed? The install docs for the app suggest "/usr/local/lib/site_perl" so I'm guessing that the ebuild should put them in "/usr/<lib_dir>/perl5/site_perl/" maybe "/usr/lib64/perl5/site_perl/OFPC/"?

My structure looks like this for that dir:

/usr/lib64/perl5/site_perl/5.12.2/x86_64-linux/

so I'm not sure if /usr/lib64/perl5/site_perl/OFPC/" is appropriate.


2. Once I identify the correct location, what is the preferred method of getting them in there? I know that there is a perl-modules.eclass (have not found much for docs about this though), but I'm not sure it is the right method for this case. Looks like it is more geared to ebuilds specifically for perl modules.


Hand-holding welcomed :) but if anyone knows of another ebuild that does something similar (ships with it's own perl modules that are installed) that I can use as an example, that is all I probably need.

Thx,
Wally
_________________
--


@XXXXXX{====================>
They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety.

- Benjamin Franklin, 1755
Back to top
View user's profile Send private message
wallace1819
Apprentice
Apprentice


Joined: 17 Aug 2002
Posts: 195
Location: VT

PostPosted: Fri Mar 25, 2011 7:09 pm    Post subject: Reply with quote

hmmm.... no official answer yet, so this is how I'm doing it right now...

Code:

inherit perl-modules

dodir ${SITE_ARCH}/OFPC || die
insinto ${SITE_ARCH}/OFPC || die
doins OFPC/*.pm || die
fperms 444 OFPC/*.pm || die


_________________
--


@XXXXXX{====================>
They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety.

- Benjamin Franklin, 1755
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum