blob: 8733998d17b2e18abdb8c172aa3a2246557ce4b4 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} python{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"
}
|