Gentoo Archives: gentoo-dev

From: Luca Barbato <lu_zero@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC : New ebuild function pkg_create for creating corespondent sorce tarball
Date: Tue, 17 Jul 2007 10:26:42
Message-Id: 469C9890.4050303@gentoo.org
In Reply to: Re: [gentoo-dev] RFC : New ebuild function pkg_create for creating corespondent sorce tarball by Ciaran McCreesh
1 Ciaran McCreesh wrote:
2 > On Tue, 17 Jul 2007 07:25:02 +0300
3 > Alin Năstac <mrness@g.o> wrote:
4 >> Basically I need a pkg_create() that will be executed only in the
5 >> context of the upcoming "ebuild ${PF}.ebuild create" command.
6 >
7 > This isn't something that should be done in an ebuild. It's more
8 > suitable to an external script maintained by the appropriate herd.
9 > There's no point cluttering up the tree with something that is of no
10 > use to end users.
11 >
12
13 Having something that interacts with the live eclasses gives you all you
14 need to end up with a good tarball with the minimal number of lines of
15 code. Obviously it could be a gentoolkit-dev/portage-utils script
16 instead of src_create/pack, since you just need to repack what the
17 src_unpack did in the ebuild.
18
19 I'm not sure how many special cases/option would be necessary for such
20 script, like exclude dir, one tar per dir and so on.
21
22 lu
23
24 --
25
26 Luca Barbato
27
28 Gentoo/linux Gentoo/PPC
29 http://dev.gentoo.org/~lu_zero
30 --
31 gentoo-dev@g.o mailing list

Replies