Ciaran McCreesh wrote: > On Tue, 17 Jul 2007 07:25:02 +0300 > Alin Năstac <[EMAIL PROTECTED]> wrote: >> Basically I need a pkg_create() that will be executed only in the >> context of the upcoming "ebuild ${PF}.ebuild create" command. > > This isn't something that should be done in an ebuild. It's more > suitable to an external script maintained by the appropriate herd. > There's no point cluttering up the tree with something that is of no > use to end users. >
Having something that interacts with the live eclasses gives you all you need to end up with a good tarball with the minimal number of lines of code. Obviously it could be a gentoolkit-dev/portage-utils script instead of src_create/pack, since you just need to repack what the src_unpack did in the ebuild. I'm not sure how many special cases/option would be necessary for such script, like exclude dir, one tar per dir and so on. lu -- Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero -- [EMAIL PROTECTED] mailing list