etcd-fs-0_p20140620.ebuild 688 B

1234567891011121314151617181920212223242526272829303132
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. KEYWORDS="~amd64"
  5. DESCRIPTION="Use etcd as a FUSE filesystem"
  6. HOMEPAGE="https://github.com/xetorthio/${PN}"
  7. EGIT_COMMIT="395eacbaebccccc5f03ed11dc887ea2f1af300a0"
  8. SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${P}.zip"
  9. LICENSE="Apache-2.0"
  10. SLOT="0"
  11. IUSE=""
  12. DEPEND="
  13. >=dev-lang/go-1.3
  14. dev-db/go-etcd
  15. dev-libs/go-fuse"
  16. RDEPEND=""
  17. S=${WORKDIR}/${PN}-${EGIT_COMMIT}
  18. src_compile() {
  19. CGO_CFLAGS=${CFLAGS} GOPATH=${S} \
  20. go build \
  21. -x -ldflags="-v -linkmode=external -extldflags '${LDFLAGS}'" \
  22. etcdfs.go || die
  23. }
  24. src_install() {
  25. dobin etcdfs
  26. dodoc README.md
  27. }