Github creates tarballs for tags automatically, for 1.3.0 tag it would be https://github.com/intelsdi-x/snap/archive/1.3.0.tar.gz, so you don't need to use git eclass. SRC_URI would look like:
SRC_URI="https://github.com/intelsdi-x/snap/archive/${PV}.tar.gz -> ${P}.tar.gz" 2017-10-16 11:13 GMT+05:00 <n...@troglodyte.be>: > October 16, 2017 5:30 AM, "Damo Brisbane" <dhatche...@gmail.com> wrote: > > Hello, > > I am wanting to make an ebuild for Intel's (Apache 2 licensed) snap > monitoring framework > (https://github.com/intelsdi-x/snap). It seems the current version > (2.0.0) does not compile the > golang binaries with some type of recent grpc API incompatibility. I can > successfully compile by > going: > > go get ... > > cd <SRC_DIR> > > git checkout 1.3.0 > > make all > > This gets me the binaries (snaptel, snapteld); does anyone know if I can > put this process (git > checkout..) into an .ebuild file (or some other suggestion)? > > Cheers, > > > Hi, > > You can use git-r3.eclass and use a specific tag or commit. > See examples on the tree : > https://github.com/gentoo/gentoo/search?utf8=%E2%9C%93& > q=EGIT_COMMIT+git-r3&type= > > Best regards, > -- > Corentin “Nado” Pazdera > -- >From Siberia with Love!