Gentoo Archives: gentoo-dev

From: Azamat Hackimov <azamat.hackimov@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] git checkout in ebuild?
Date: Mon, 16 Oct 2017 06:42:12
Message-Id: CAFqVybp1+9sAy6CxMXP=E7A+gy-rg=JgReKd10JVwoBMV-dQjg@mail.gmail.com
In Reply to: Re: [gentoo-dev] git checkout in ebuild? by nado@troglodyte.be
1 Github creates tarballs for tags automatically, for 1.3.0 tag it would be
2 https://github.com/intelsdi-x/snap/archive/1.3.0.tar.gz, so you don't need
3 to use git eclass.
4 SRC_URI would look like:
5
6 SRC_URI="https://github.com/intelsdi-x/snap/archive/${PV}.tar.gz ->
7 ${P}.tar.gz"
8
9 2017-10-16 11:13 GMT+05:00 <nado@××××××××××.be>:
10
11 > October 16, 2017 5:30 AM, "Damo Brisbane" <dhatchett2@×××××.com> wrote:
12 >
13 > Hello,
14 >
15 > I am wanting to make an ebuild for Intel's (Apache 2 licensed) snap
16 > monitoring framework
17 > (https://github.com/intelsdi-x/snap). It seems the current version
18 > (2.0.0) does not compile the
19 > golang binaries with some type of recent grpc API incompatibility. I can
20 > successfully compile by
21 > going:
22 >
23 > go get ...
24 >
25 > cd <SRC_DIR>
26 >
27 > git checkout 1.3.0
28 >
29 > make all
30 >
31 > This gets me the binaries (snaptel, snapteld); does anyone know if I can
32 > put this process (git
33 > checkout..) into an .ebuild file (or some other suggestion)?
34 >
35 > Cheers,
36 >
37 >
38 > Hi,
39 >
40 > You can use git-r3.eclass and use a specific tag or commit.
41 > See examples on the tree :
42 > https://github.com/gentoo/gentoo/search?utf8=%E2%9C%93&
43 > q=EGIT_COMMIT+git-r3&type=
44 >
45 > Best regards,
46 > --
47 > Corentin “Nado” Pazdera
48 >
49
50
51
52 --
53 From Siberia with Love!

Replies

Subject Author
Re: [gentoo-dev] git checkout in ebuild? "Vadim A. Misbakh-Soloviov" <gentoo@×××.name>