Hi, Since I plan to use the remote remote-id tag for euscan, and I already use SRC_URI but I'd like all ebuild to use mirrors, I've wrote to scripts to cleanup your ebuilds and metadata. There are available here: https://github.com/iksaif/portage-janitor Here is what you can do with them:
python remoteids.py --diff pycuda Test-Tester Alien-SDL ostinato --- a/dev-python/pycuda/metadata.xml +++ b/dev-python/pycuda/metadata.xml @@ -4,4 +4,7 @@ <maintainer> <email>sp...@gentoo.org</email> </maintainer> + <upstream> + <remote-id type="pypi">pycuda</remote-id> + </upstream> </pkgmetadata> --- a/dev-perl/Alien-SDL/metadata.xml +++ b/dev-perl/Alien-SDL/metadata.xml @@ -7,4 +7,7 @@ <email>ssuomi...@gentoo.org</email> <name>Samuli Suominen</name> </maintainer> + <upstream> + <remote-id type="cpan">Alien-SDL</remote-id> + </upstream> </pkgmetadata> --- a/net-analyzer/ostinato/metadata.xml +++ b/net-analyzer/ostinato/metadata.xml @@ -7,5 +7,7 @@ </maintainer> <longdescription lang="en"> </longdescription> + <upstream> + <remote-id type="google-code">ostinato</remote-id> + </upstream> </pkgmetadata> $ eix -C dev-python --only-names | python mirrors.py --diff --- a/dev-python/asciitable/asciitable-0.8.0.ebuild +++ b/dev-python/asciitable/asciitable-0.8.0.ebuild @@ -11,7 +11,7 @@ DESCRIPTION="An extensible ASCII table reader" HOMEPAGE="http://pypi.python.org/pypi/asciitable http://cxc.harvard.edu/contrib/asciitable" -SRC_URI="http://pypi.python.org/packages/source/a/${PN}/${P}.tar.gz" +SRC_URI="mirror://pypi/a/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" --- a/dev-python/cosmolopy/cosmolopy-0.1.102.ebuild +++ b/dev-python/cosmolopy/cosmolopy-0.1.102.ebuild @@ -15,7 +15,7 @@ DESCRIPTION="Cosmology routines built on NumPy/SciPy" HOMEPAGE="http://roban.github.com/CosmoloPy/ http://pypi.python.org/pypi/CosmoloPy" -SRC_URI="http://pypi.python.org/packages/source/C/${MY_PN}/${MY_P}.tar.gz" +SRC_URI="mirror://pypi/C/${MY_PN}/${MY_P}.tar.gz" LICENSE="MIT" SLOT="0" Feel free to test them, and if they are broken I'll gladly accept a patch :). Maybe some bits could be integrated to repoman... Thanks, -- Corentin Chary http://xf.iksaif.net