45 lines
754 B
Bash
45 lines
754 B
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI="5"
|
|
|
|
inherit git-r3
|
|
|
|
RESTRICT="strip"
|
|
|
|
DESCRIPTION="native bindings for the FUSE kernel module"
|
|
HOMEPAGE="https://github.com/tools/godep"
|
|
EGIT_REPO_URI="https://github.com/tools/${PN}.git"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS=""
|
|
IUSE=""
|
|
|
|
DEPEND="dev-lang/go"
|
|
RDEPEND=""
|
|
|
|
GO_PN="github.com/tools/${PN}"
|
|
EGIT_CHECKOUT_DIR="${S}/src/${GO_PN}"
|
|
|
|
export GOPATH="${S}"
|
|
|
|
src_prepare() {
|
|
go get ${GO_PN}
|
|
}
|
|
|
|
src_compile() {
|
|
go build -v -x -work ${GO_PN} || die
|
|
}
|
|
|
|
src_install() {
|
|
# go install -v -x -work ${GO_PN} || die
|
|
|
|
dobin ${S}/bin/godep
|
|
#insinto /usr/lib/go/
|
|
#doins -r "${S}/pkg"
|
|
#insinto /usr/lib/go/src/pkg
|
|
#doins -r "${S}/src/."
|
|
}
|