Re: [gentoo-dev] Gentoo Janitor scripts

2012-02-29 Thread Corentin Chary
On Mon, Feb 27, 2012 at 4:10 PM, "Paweł Hajdan, Jr."
 wrote:
> On 2/20/12 6:03 PM, Corentin Chary wrote:
>> 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 @@
>>         
>>                 sp...@gentoo.org
>>         
>> +        
>> +                pycuda
>> +        
>>  
>>
>> Maybe some bits could be integrated to repoman...
>
> I second that, those remoteids.py changes LGTM (look good to me).
>
> As always, I second any effort to make those useful things part of
> "official Gentoo".
>

Fix remote ids bug: https://bugs.gentoo.org/show_bug.cgi?id=406287
Fix mirrors bug: https://bugs.gentoo.org/show_bug.cgi?id=405533

-- 
Corentin Chary
http://xf.iksaif.net



Re: [gentoo-dev] Gentoo Janitor scripts

2012-02-27 Thread Paweł Hajdan, Jr.
On 2/20/12 6:03 PM, Corentin Chary wrote:
> 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 @@
> 
> sp...@gentoo.org
> 
> +
> +pycuda
> +
>  
>
> Maybe some bits could be integrated to repoman...

I second that, those remoteids.py changes LGTM (look good to me).

As always, I second any effort to make those useful things part of
"official Gentoo".



signature.asc
Description: OpenPGP digital signature


[gentoo-dev] Gentoo Janitor scripts

2012-02-20 Thread Corentin Chary
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 @@

sp...@gentoo.org

+
+pycuda
+
 
--- a/dev-perl/Alien-SDL/metadata.xml
+++ b/dev-perl/Alien-SDL/metadata.xml
@@ -7,4 +7,7 @@
 ssuomi...@gentoo.org
 Samuli Suominen
   
+  
+Alien-SDL
+  
 
--- a/net-analyzer/ostinato/metadata.xml
+++ b/net-analyzer/ostinato/metadata.xml
@@ -7,5 +7,7 @@



+
+ostinato
+
 


$ 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