Gentoo Archives: gentoo-dev

From: Corentin Chary <corentin.chary@×××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Gentoo Janitor scripts
Date: Mon, 20 Feb 2012 17:03:59
Message-Id: CAHR064hRyxGuRD3VbQjNb5_5NOVJqpbJ7Ckad22gv9_oU2EaFQ@mail.gmail.com
1 Hi,
2 Since I plan to use the remote remote-id tag for euscan, and I already
3 use SRC_URI but I'd like all ebuild to use mirrors, I've wrote to
4 scripts to cleanup your ebuilds and metadata.
5 There are available here: https://github.com/iksaif/portage-janitor
6 Here is what you can do with them:
7
8 python remoteids.py --diff pycuda Test-Tester Alien-SDL ostinato
9 --- a/dev-python/pycuda/metadata.xml
10 +++ b/dev-python/pycuda/metadata.xml
11 @@ -4,4 +4,7 @@
12 <maintainer>
13 <email>spock@g.o</email>
14 </maintainer>
15 + <upstream>
16 + <remote-id type="pypi">pycuda</remote-id>
17 + </upstream>
18 </pkgmetadata>
19 --- a/dev-perl/Alien-SDL/metadata.xml
20 +++ b/dev-perl/Alien-SDL/metadata.xml
21 @@ -7,4 +7,7 @@
22 <email>ssuominen@g.o</email>
23 <name>Samuli Suominen</name>
24 </maintainer>
25 + <upstream>
26 + <remote-id type="cpan">Alien-SDL</remote-id>
27 + </upstream>
28 </pkgmetadata>
29 --- a/net-analyzer/ostinato/metadata.xml
30 +++ b/net-analyzer/ostinato/metadata.xml
31 @@ -7,5 +7,7 @@
32 </maintainer>
33 <longdescription lang="en">
34 </longdescription>
35 + <upstream>
36 + <remote-id type="google-code">ostinato</remote-id>
37 + </upstream>
38 </pkgmetadata>
39
40
41 $ eix -C dev-python --only-names | python mirrors.py --diff
42 --- a/dev-python/asciitable/asciitable-0.8.0.ebuild
43 +++ b/dev-python/asciitable/asciitable-0.8.0.ebuild
44 @@ -11,7 +11,7 @@
45
46 DESCRIPTION="An extensible ASCII table reader"
47 HOMEPAGE="http://pypi.python.org/pypi/asciitable
48 http://cxc.harvard.edu/contrib/asciitable"
49 -SRC_URI="http://pypi.python.org/packages/source/a/${PN}/${P}.tar.gz"
50 +SRC_URI="mirror://pypi/a/${PN}/${P}.tar.gz"
51
52 LICENSE="GPL-2"
53 SLOT="0"
54 --- a/dev-python/cosmolopy/cosmolopy-0.1.102.ebuild
55 +++ b/dev-python/cosmolopy/cosmolopy-0.1.102.ebuild
56 @@ -15,7 +15,7 @@
57
58 DESCRIPTION="Cosmology routines built on NumPy/SciPy"
59 HOMEPAGE="http://roban.github.com/CosmoloPy/
60 http://pypi.python.org/pypi/CosmoloPy"
61 -SRC_URI="http://pypi.python.org/packages/source/C/${MY_PN}/${MY_P}.tar.gz"
62 +SRC_URI="mirror://pypi/C/${MY_PN}/${MY_P}.tar.gz"
63
64 LICENSE="MIT"
65 SLOT="0"
66
67
68 Feel free to test them, and if they are broken I'll gladly accept a patch :).
69
70 Maybe some bits could be integrated to repoman...
71
72 Thanks,
73
74 --
75 Corentin Chary
76 http://xf.iksaif.net

Replies

Subject Author
[gentoo-dev] Re: Gentoo Janitor scripts Corentin Chary <corentin.chary@×××××.com>
Re: [gentoo-dev] Gentoo Janitor scripts "Paweł Hajdan