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

EAPI=5

PYTHON_COMPAT=( python{2_7,3_2,3_3} pypy pypy2_0)

inherit distutils-r1

DESCRIPTION="a pass-powered backend for Python Keyring Lib"
HOMEPAGE="https://github.com/notandy/pass_python_keyring"
SRC_URI="https://github.com/notandy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="app-admin/pass"
DEPEND="${RDEPEND}"

pkg_postinst() {
	einfo "To get pass support to the python keyring, use:"
	einfo "mkdir -pv \`python -c \"import keyring.util.platform_; print(keyring.util.platform_.config_root())\"\`"
	einfo "echo -e \"[backend]\\\\ndefault-keyring=pass.Keyring\" > \`python -c \"import keyring.util.platform_; print(keyring.util.platform_.config_root())\"\`/keyringrc.cfg"
}