app-crypt/kbfs: build the Git remote helper, #633554
authorKarl-Johan Karlsson <creideiki@ferretporn.se>
Mon, 23 Oct 2017 07:56:38 +0000 (09:56 +0200)
committerNicolas Bock <nicolasbock@gentoo.org>
Mon, 23 Oct 2017 12:27:05 +0000 (06:27 -0600)
Package-Manager: Portage-2.3.11, Repoman-2.3.3

app-crypt/kbfs/kbfs-9999.ebuild
app-crypt/kbfs/metadata.xml

index 4da71bde3c9a080a72b0cb62261f54b08df90dd2..b084faeb8f154fdc7df8f031cfd47891a6f49d7c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -12,7 +12,7 @@ EGIT_REPO_URI="https://github.com/keybase/kbfs.git"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS=""
-IUSE=""
+IUSE="git"
 
 DEPEND="
        >=dev-lang/go-1.6:0
@@ -37,8 +37,16 @@ src_compile() {
                -tags production \
                -o "${T}/kbfsfuse" \
                github.com/keybase/kbfs/kbfsfuse
+       use git && \
+               GOPATH="${WORKDIR}" \
+               go build -v -x \
+               -tags production \
+               -o "${T}/git-remote-keybase" \
+               github.com/keybase/kbfs/kbfsgit/git-remote-keybase
 }
 
 src_install() {
        dobin "${T}/kbfsfuse"
+       use git && \
+               dobin "${T}/git-remote-keybase"
 }
index b925088bda74fa7f1d5042777f95569cf00d1ab5..00881f3d617acca3fc5ecf9f6c663415644cabb1 100644 (file)
@@ -8,4 +8,9 @@
                The official Keybase implementation of the client-side code for the
                Keybase filesystem (KBFS).
        </longdescription>
+       <use>
+               <flag name="git">
+                       Build the Git remote helper for storing repositories in Keybase
+               </flag>
+       </use>
 </pkgmetadata>