From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-51044-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1SL8Qm-0002Ps-BZ
	for garchives@archives.gentoo.org; Fri, 20 Apr 2012 07:39:00 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id A82C2E0759;
	Fri, 20 Apr 2012 07:38:46 +0000 (UTC)
Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id 8B527E05D5
	for <gentoo-dev@lists.gentoo.org>; Fri, 20 Apr 2012 07:37:58 +0000 (UTC)
Received: by iagk10 with SMTP id k10so17160723iag.40
        for <gentoo-dev@lists.gentoo.org>; Fri, 20 Apr 2012 00:37:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        bh=tJhXLY/Tu43pSqE87g1czL1ymlmrQAifudH0iTr26n8=;
        b=btxyU/elaGMlaQOgkMilRXLdSm/tESNafSAqaIJomqxIRbcK82VukaQBI2Au80UZ3g
         uGIsInSykpqgiojaBLGjqZMPJXqVPc6IGgzWz3RJNbaZpNgWFrItmAwOxJHAXs/k2gpH
         /Igiahv9IOckxC0uohsh64fxdbep4QkpDwiiRAPTs+m3k5w+D0/5zEO5F1VlEThvQ6gA
         X5Y3m9wlM7x7wdiiUzhB4rp5eJ30R9NQIScEjdU46MwEMugb6BiFOyjDwxkLRwb3zE8B
         OsL6tHjzx4UPaiGX6JQj0IdBBUGTTYbx9XRbIHNs21AZIjbmhdqbp9nRd0zEvlL3Axfk
         rTPA==
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.50.186.166 with SMTP id fl6mr4821063igc.47.1334907478066; Fri,
 20 Apr 2012 00:37:58 -0700 (PDT)
Received: by 10.42.197.5 with HTTP; Fri, 20 Apr 2012 00:37:58 -0700 (PDT)
In-Reply-To: <20120419153111.GD24273@falgoret>
References: <20120419153111.GD24273@falgoret>
Date: Fri, 20 Apr 2012 19:37:58 +1200
Message-ID: <CAATnKFAvR6Tio7zrAK9bA7nPz1vgXFS4emm6n_nifrRkcDm=ug@mail.gmail.com>
Subject: Re: [gentoo-dev] RFC: Add new remote-id types in metadata.dtd
From: Kent Fredric <kentfredric@gmail.com>
To: gentoo-dev@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 0fc2fe76-c749-4dc4-8f3c-73722ee1e7fe
X-Archives-Hash: ccdfb755e088addf93dbf62ad1955d79

On 20 April 2012 03:31, Corentin Chary <corentin.chary@gmail.com> wrote:
> Add rubygems, github, gitorious, pecl, pear, bitbucket.
> All of them are handled by my remoteids.py script.
>
> ref: https://bugs.gentoo.org/show_bug.cgi?id=3D406287
> ref: https://github.com/iksaif/portage-janitor/blob/master/remoteids.py
>
> --- a/metadata/dtd/metadata.dtd 2010-03-02 18:52:11.000000000 +0100
> +++ b/metadata/dtd/metadata.dtd 2012-04-19 14:22:14.077954310 +0200
> @@ -61,7 +61,7 @@
> =C2=A0 =C2=A0 <!ELEMENT bugs-to (#PCDATA)>
> =C2=A0 =C2=A0 <!-- specify a type of package identification tracker -->
> =C2=A0 =C2=A0 <!ELEMENT remote-id (#PCDATA)>
> - =C2=A0 =C2=A0 =C2=A0<!ATTLIST remote-id type (freshmeat|sourceforge|sou=
rceforge-jp|cpan|vim|google-code|ctan|pypi|rubyforge|cran) #REQUIRED>
> + =C2=A0 =C2=A0 =C2=A0<!ATTLIST remote-id type (freshmeat|sourceforge|sou=
rceforge-jp|cpan|vim|google-code|ctan|pypi|rubyforge|cran|rubygems|github|g=
itorious|pecl|pear|bitbucket) #REQUIRED>
>
> =C2=A0 <!-- category/package information for cross-linking in description=
s
> =C2=A0 =C2=A0 and useflag descriptions -->
>
> --
> Corentin Chary
> http://xf.iksaif.net/


I suggested last week on #gentoo-perl that it might be nice to have
'cpan' and 'cpan-module'  ( or something like that ) to disambiguate 2
queryable terms. ( where 'cpan'  =3D> 'the package name on cpan' )

For some purposes, its most convenient to use the distribution name,
and for other purposes, (ie: cpan clients) its more convenient to use
a Module name, and its not easy to translate between the two, as
Module names sometimes switch between packages  they're shipped in.

For instance, a while ago, the BioPerl module was shipped in a
distribution 'bioperl' , which has only recently been changed to
BioPerl


http://api.metacpan.org/release/_search?q=3Ddistribution:bioperl&fields=3Da=
rchive,author,date,download_url

http://api.metacpan.org/release/_search?q=3Ddistribution:BioPerl&fields=3Da=
rchive,author,date,download_url

vs


http://api.metacpan.org/module/_search?q=3Dmodule.name:Bio\:\:Perl&fields=
=3Ddistribution,author,release



--=20
Kent

perl -e=C2=A0 "print substr( \"edrgmaM=C2=A0 SPA NOcomil.ic\\@tfrken\", \$_=
 * 3,
3 ) for ( 9,8,0,7,1,6,5,4,3,2 );"

http://kent-fredric.fox.geek.nz