-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/07/2012 11:49 PM, Michał Górny wrote:
> Hello,
>
> As it was pointed out, vcs-snapshot is unable to handle multiple
> tarballs nicely. As fixing this would involve changing eclass API
> (and they are packages which are known to break thanks to it), I'm
> posting a new eclass for review. Of course, if the community
> insists, I could just update the old eclass and fix the ebuilds
> broken that way.
>
> The idea with the new eclass is to extract all supported archives
> (which means .tar* at the point) into ${WORKDIR} subdirectories
> matching their names. In other words, if you've got:
>
> SRC_URI="http://foo/getbar -> ${P}.tar.bz2 http://foo/getbaz ->
> ${P}-data.tar.bz2"
>
> You'd get the contents in ${WORKDIR}/${P} and ${WORKDIR}/${P}-data
> respectively.
>
> A few things to note:
>
> 1) the implemention just dumbly uses 'tar --strip-components'. If
> it hits a tarball without a single top-level directory, scary
> things will happen;
>
> 2) only tarballs are handled, other archives are just passed
> through to unpack;
>
> 3) at some point the eclass could be extended to handle more
> formats. So if you've got other archives in your SRC_URI, please
> make sure they are named consistently with the parent dir, so that
> they would not relocate when support for that particular format is
> added.
>
> By the way, the credit for the overall idea goes to hasufell.
>
What is with zipballs from github for example? They are not supported
by this method afais.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJP0f9oAAoJEFpvPKfnPDWzprAH/ikedjEAZ6Hg95zd+F7XNxLN
XqfpAaE9N5bQ9AXfE+a1IHQRh6doSY6aw10he053SQhHEVJnB6ey0rMvkICRZ+w1
ZvygNSZCP2XJg4weZinIiNSJbQ7HCHFE2DuEkz78rdQ7cFwV5Y0AEGJiFDyMw4no
RPJoNHNyFUk578W14ioog9oDOookpRN6nttvwq/Bqoh8+tCbmxTlowJndfCrw4iS
T/q5UUKWsEEBVd2zz2TE0+eku9kdfBnez/9e2XLMUYfsTBE17/xluaqiRcLQC666
FFe0+MGI8sz7t1h+PjflNXIh8jochI7p4thgHqsWP5Wky04/Av8eD7br5uQ3YLE=
=A5LA
-----END PGP SIGNATURE-----