[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: Re: [gentoo-dev] Re: Re: [GLEP] Use EAPI-suffixed ebuilds (.ebuild-EAPI)
From: Federico Ferri <xaero () inwind ! it>
Date: 2007-12-29 23:16:22
Message-ID: 4776D546.803 () inwind ! it
[Download RAW message or body]
Ciaran McCreesh ha scritto:
> On Thu, 27 Dec 2007 18:03:27 +0000
> Roy Marples <roy@marples.name> wrote:
>
>> Using your analogy you should then recognise that there is a strong
>> dislike for pink and should seek a new colour that allows the building
>> of said extensions.
>>
>
> And what colour would that be? We've already ruled out purple, brown
> and yellow, and no-one has yet found any other colour of paint.
>
sorry if this has already suggested.
my idea is to use shebang; the advantage in using shebang is that file
doesn't need to be sourced or parsed by complex algorithms in order to
extract the necessary information.
an example:
#!/usr/bin/ebuild eapi=1
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="My EAPI-1 ebuild"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""
LICENSE="GPL-2"
...
shebang's synopsis would look something like:
#!<interpreter> [key=value] [key=value] [...]
pros:
1) it's standard. shell scripts use it. why ebuilds shouldn't?
2) it's easy to parse:
eval `head -n1 $ebuild | cut -d\ -f2-`; echo $eapi
3) in the future, for any other situation analogous to this, you could
add another key=value to the ebuild's shebang
4) easily checked by repoman
cons:
?
just my two Eurocents.
since now you can bite me ;-)
--
#include <stdio.h>
main(){printf("%x",4275974592);}
--
gentoo-dev@gentoo.org mailing list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic