blob: 6e408999381fd59d78216ce2683212b3f29a5c52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit git-r3 vcs-clean
DESCRIPTION="native bindings for the FUSE kernel module"
HOMEPAGE="https://github.com/hanwen/go-fuse"
EGIT_REPO_URI="https://github.com/hanwen/go-fuse.git"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND=">=dev-lang/go-1.3"
RDEPEND=""
RESTRICT="strip"
GO_PN="github.com/hanwen/${PN}"
EGIT_CHECKOUT_DIR="${S}/src/${GO_PN}"
export GOPATH="${S}"
src_compile() {
local d
#no examples right now
# example/hello example/loopback example/zipfs \
# example/multizip example/unionfs example/memfs \
# example/autounionfs ; \
#or tests
#fuse/test
for d in fuse fuse/pathfs zipfs unionfs; do
go build -v -x -work ${GO_PN}/${d} || die
done
}
src_install() {
local d
for d in fuse fuse/pathfs zipfs unionfs; do
go install -v -x -work ${GO_PN}/${d} || die
done
insinto /usr/lib/go/
doins -r "${S}/pkg"
insinto "/usr/lib/go/src/${GO_PN}/"
#for this ebuild, to fix bug #503324 I have limited what is installed
#another possible solution would have been using adddeny to the
#hide installed filed during build
egit_clean "${S}/src/${GO_PN}"
doins -r "${S}/src/${GO_PN}/fuse"
doins -r "${S}/src/${GO_PN}/splice"
}
|