From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-979901-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 3225B1396D9
	for <garchives@archives.gentoo.org>; Mon, 23 Oct 2017 12:27:43 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 46EED2BC045;
	Mon, 23 Oct 2017 12:27:42 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 19DAA2BC053
	for <gentoo-commits@lists.gentoo.org>; Mon, 23 Oct 2017 12:27:42 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 1445433BEAC
	for <gentoo-commits@lists.gentoo.org>; Mon, 23 Oct 2017 12:27:40 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 81990316
	for <gentoo-commits@lists.gentoo.org>; Mon, 23 Oct 2017 12:27:38 +0000 (UTC)
From: "Nicolas Bock" <nicolasbock@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Nicolas Bock" <nicolasbock@gentoo.org>
Message-ID: <1508761625.5b78f8ab4c44e6807398bd6a252ca7c98efcf601.nicolasbock@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/kbfs/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-crypt/kbfs/kbfs-9999.ebuild app-crypt/kbfs/metadata.xml
X-VCS-Directories: app-crypt/kbfs/
X-VCS-Committer: nicolasbock
X-VCS-Committer-Name: Nicolas Bock
X-VCS-Revision: 5b78f8ab4c44e6807398bd6a252ca7c98efcf601
X-VCS-Branch: master
Date: Mon, 23 Oct 2017 12:27:38 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: f1e396b3-5a77-4938-bddb-973d70abd82f
X-Archives-Hash: 496ab4c4b856a6c187851862ca304bd2

commit:     5b78f8ab4c44e6807398bd6a252ca7c98efcf601
Author:     Karl-Johan Karlsson <creideiki <AT> ferretporn <DOT> se>
AuthorDate: Mon Oct 23 07:56:38 2017 +0000
Commit:     Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
CommitDate: Mon Oct 23 12:27:05 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b78f8ab

app-crypt/kbfs: build the Git remote helper, #633554

Package-Manager: Portage-2.3.11, Repoman-2.3.3

 app-crypt/kbfs/kbfs-9999.ebuild | 12 ++++++++++--
 app-crypt/kbfs/metadata.xml     |  5 +++++
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/app-crypt/kbfs/kbfs-9999.ebuild b/app-crypt/kbfs/kbfs-9999.ebuild
index 4da71bde3c9..b084faeb8f1 100644
--- a/app-crypt/kbfs/kbfs-9999.ebuild
+++ b/app-crypt/kbfs/kbfs-9999.ebuild
@@ -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"
 }

diff --git a/app-crypt/kbfs/metadata.xml b/app-crypt/kbfs/metadata.xml
index b925088bda7..00881f3d617 100644
--- a/app-crypt/kbfs/metadata.xml
+++ b/app-crypt/kbfs/metadata.xml
@@ -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>