| View previous topic :: View next topic |
| Author |
Message |
turtles Veteran


Joined: 31 Dec 2004 Posts: 1146 Location: (44.057116, -123.103394)
|
Posted: Fri Oct 05, 2012 5:37 pm Post subject: Can a Ebuild call g-cpan? [dev] |
|
|
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. _________________ Perl 5.16 now 3 bugs away |
|
| Back to top |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 8862 Location: beyond the rim
|
Posted: Mon Oct 08, 2012 6:20 am Post subject: |
|
|
| Ebuilds can't call g-cpan, or any other tool that calls back into portage (emerge, ebuild, repoman, equery, ...). |
|
| Back to top |
|
 |
turtles Veteran


Joined: 31 Dec 2004 Posts: 1146 Location: (44.057116, -123.103394)
|
Posted: Tue Oct 09, 2012 5:59 pm Post subject: |
|
|
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. _________________ Perl 5.16 now 3 bugs away |
|
| Back to top |
|
 |
|