Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can a Ebuild call g-cpan? [dev]
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
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1646

PostPosted: Fri Oct 05, 2012 5:37 pm    Post subject: Can a Ebuild call g-cpan? [dev] Reply with quote

I have been tinkering with a custom web-app ebuild that uses quite a few perl modules not in portage.
I am curious if it would make sense to have the ebuild run g-cpan to build the dependencies rather than maintain a overlay.
Are there or have there ever been ebuilds that do this?
I am looking for an example.
Seems like it might make maintaining perl easier.
Thanks in advance.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9506
Location: beyond the rim

PostPosted: Mon Oct 08, 2012 6:20 am    Post subject: Reply with quote

Ebuilds can't call g-cpan, or any other tool that calls back into portage (emerge, ebuild, repoman, equery, ...).
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1646

PostPosted: Tue Oct 09, 2012 5:59 pm    Post subject: Reply with quote

OK Thanks.
It would be cool if portage could somehow call g-cpan.
Say I need Rose-DB-Object I could make my ebuild depend on
virtual/perl-Rose-DB-Object
Portage could see that Rose-DB-Object is not in the tree and it will build it with g-cpan
making a perl-gcpan/Rose-DB-Object and a virtual/perl-Rose-DB-Object.

Or perhaps if a ebuild depends on anything perl-gcpan/* call g-cpan to install those deps.
_________________
Donate to Gentoo
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