summaryrefslogtreecommitdiff
blob: 16d9289f61f5cb9ee418dbdb17fda917860d313a (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils

DESCRIPTION="Client for keybase.io"
HOMEPAGE="https://keybase.io/"
SRC_URI="https://github.com/keybase/node-client/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

RDEPEND="
	net-libs/nodejs
	app-crypt/gnupg"

src_unpack() {
	unpack "${P}.tar.gz"
	mv "node-client-${PV}" "${P}"
}

src_install() {
	dodoc CHANGELOG.md README.md SIGNED.md
	insinto "/opt/${PN}"
	doins -r package.json bin certs json lib node_modules sql
	dosym "${D}/opt/${PN}/bin/main.js" "${ROOT}/usr/bin/keybase"
	chmod 0755 "${D}/opt/${PN}/bin/main.js" || die
}