On 07/07/2014 00:47, shawn wilson wrote:
> How do I change emerge/ebuild from using cpan to metacpan to a local repo?
> 
> I see mirror://cpan/foo and I figure SRC_URI gets scraped and changed
> (I'm guessing this happens somewhere in python since I don't see
> anything happening to SRC_URI in perl-module.eclass). I just want to
> use metacpan for all of my packages, but I'm sure some would want to
> use a local repo as well and I can't figure out how.
> 
> I tried using the old method of:
> SRC_URI="mirror://www.metacpan.org/authors/id/K/KW/KWMAK/Chart/Gnuplot/${P}.tar.gz"
> 
> but that errors:
> b89c521c6177 Chart-Gnuplot # ebuild Chart-Gnuplot-0.21.0.ebuild manifest
> Appending /usr/local/src/gentoo-portage-overlay to PORTDIR_OVERLAY...
>>>> Downloading 
>>>> 'http://distfiles.gentoo.org/distfiles/Chart-Gnuplot-0.21.tar.gz'
> --2014-07-06 22:44:10--
> http://distfiles.gentoo.org/distfiles/Chart-Gnuplot-0.21.tar.gz
> Resolving distfiles.gentoo.org... 216.165.129.135, 156.56.247.195,
> 64.50.236.52, ...
> Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
> HTTP request sent, awaiting response... 404 Not Found
> 2014-07-06 22:44:10 ERROR 404: Not Found.
> 
> !!! Couldn't download 'Chart-Gnuplot-0.21.tar.gz'. Aborting.
> !!! Fetch failed for Chart-Gnuplot-0.21.tar.gz, can't update Manifest
> 
> Maybe there's two questions here - first being why it's looking at
> distfiles.gentoo.org instead of the SRC_URI I provided and how to
> change where cpan points.
> 
> 
> 


It's trying to fetch sources from distfiles.gentoo.org because that is
the default location for sources.


Where does that ebuild for Chart-Gnuplot come from? It isn't in the
tree; is it an ebuild you made, or from an overlay?

I have some auto-generated local ebuilds here that I made ages ago using
some automated cpan<->ebuild tool that was in portage. Unfortunately I
don;t recall the name :-) but here's the guts of what it built:


MODULE_AUTHOR=MANOWAR
MODULE_VERSION=0.20
inherit perl-module

DESCRIPTION="Authen::Radius - provide simple Radius client facilities"

DEPEND="dev-lang/perl"

MY_P=RadiusPerl-${PV}
SRC_URI="mirror://cpan/authors/id/M/MA/MANOWAR/${MY_P}.tar.gz"



I *think* the magic is all in "inherit perl-module"



-- 
Alan McKinnon
alan.mckin...@gmail.com


Reply via email to