Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Initial review for github-snapshot.eclass
Date: Tue, 31 May 2011 14:25:52
Message-Id: 20110531162423.616e7e53@pomiocik
1 Hello all,
2
3 As I suggested earlier, I'm attaching an example implementation
4 of github-snapshot.eclass.
5
6 All the eclass does is providing a default src_unpack() unpacking
7 the github snapshot into ${S}. Right now it simply does call default
8 src_unpack() and then does a fuzzy `mv' but that can change
9 in the future.
10
11 The eclass doesn't modify S or SRC_URI itself. An ebuild using it
12 should look like the following:
13
14 #v+
15 EAPI=4
16
17 inherit github-snapshot
18
19 DESCRIPTION="Random github package"
20 HOMEPAGE="https://github.com/foo/bar"
21 SRC_URI="http://github.com/foo/${PN}/tarball/${P} -> ${P}.tar.gz"
22
23 # [...]
24 #v-
25
26 --
27 Best regards,
28 Michał Górny

Attachments

File name MIME type
github-snapshot.eclass application/x-shellscript
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Initial review for github-snapshot.eclass William Hubbs <williamh@g.o>
[gentoo-dev] Re: Initial review for github-snapshot.eclass "Diego Elio Pettenò" <flameeyes@×××××.com>
Re: [gentoo-dev] Initial review for github-snapshot.eclass Mike Gilbert <floppymaster@×××××.com>
Re: [gentoo-dev] Initial review for github-snapshot.eclass William Hubbs <williamh@g.o>
Re: [gentoo-dev] Initial review for github-snapshot.eclass Brian Harring <ferringb@×××××.com>