keybase-1.0.16.ebuild 844 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils versionator
  5. MY_PV=$(replace_version_separator 3 '-')
  6. DESCRIPTION="Client for keybase.io"
  7. HOMEPAGE="https://keybase.io/"
  8. SRC_URI="https://github.com/keybase/client/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
  9. LICENSE="BSD"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE=""
  13. DEPEND="
  14. >=dev-lang/go-1.5:0"
  15. RDEPEND="
  16. app-crypt/gnupg"
  17. S="${WORKDIR}/src/github.com/keybase/client"
  18. src_unpack() {
  19. unpack "${P}.tar.gz"
  20. mkdir -p "$(dirname "${S}")" || die
  21. mv "client-${MY_PV}" "${S}" || die
  22. }
  23. src_compile() {
  24. GO15VENDOREXPERIMENT=1 \
  25. GOPATH="${WORKDIR}:${S}/go/vendor" \
  26. go build -v -x \
  27. -tags production \
  28. -o "${T}/keybase" \
  29. github.com/keybase/client/go/keybase || die
  30. }
  31. src_install() {
  32. dobin "${T}/keybase"
  33. }