app-crypt/gkeys: Remove mkdir for doc
[portage-overlay.git] / app-crypt / gkeys / gkeys-0.1.ebuild
1 # Copyright 2014-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-crypt/gkeys/gkeys-9999.ebuild,v 1.4 2015/01/01 22:15:34 dolsen Exp $
4
5 EAPI="5"
6
7 PYTHON_COMPAT=(python2_7 python3_3 python3_4)
8
9 inherit distutils-r1
10
11 DESCRIPTION="An OpenPGP/GPG key management tool and python libs"
12 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Gentoo-keys"
13 SRC_URI=""
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 IUSE=""
18
19 SRC_URI="http://dev.gentoo.org/~dolsen/releases/gkeys/gkeys-0.1.tar.bz2"
20
21 KEYWORDS="~amd64 ~x86"
22
23 DEPEND=""
24 RDEPEND="${DEPEND}
25         app-crypt/gnupg
26         =dev-python/pyGPG-9999[${PYTHON_USEDEP}]
27         =dev-python/ssl-fetch-9999[${PYTHON_USEDEP}]
28         dev-python/snakeoil[${PYTHON_USEDEP}]
29         app-crypt/gentoo-keys
30         "
31 python_install_all() {
32         distutils-r1_python_install_all
33         keepdir /var/log/gkeys
34         fperms g+w /var/log/gkeys
35 }
36
37 pkg_preinst() {
38         chgrp users "${D}"/var/log/gkeys
39 }
40
41 pkg_postinst() {
42         gkeys fetch-seed -C gentoo-devs || die "Unable to fetch seeds"
43         gkeys install-key -C gentoo-devs || die "Unable to install developer keys"
44
45         einfo
46         einfo "This is experimental software."
47         einfo "The API's it installs should be considered unstable"
48         einfo "and are subject to change."
49         einfo
50         einfo "Please file any enhancement requests, or bugs"
51         einfo "at https://bugs.gentoo.org"
52         einfo "We are also on IRC @ #gentoo-keys of the freenode network"
53         einfo
54         ewarn "There may be some python 3 compatibility issues still."
55         ewarn "Please help debug/fix/report them in bugzilla."
56 }