app-crypt/gkeys: Add doc dir in prepare stage
[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_prepare_all(){
32         distutils-r1_python_prepare_all
33         mkdir doc || die "Unable to create doc dir"
34 }
35 python_install_all() {
36         distutils-r1_python_install_all
37         keepdir /var/log/gkeys
38         fperms g+w /var/log/gkeys
39 }
40
41 pkg_preinst() {
42         chgrp users "${D}"/var/log/gkeys
43 }
44
45 pkg_postinst() {
46         einfo
47         einfo "This is experimental software."
48         einfo "The API's it installs should be considered unstable"
49         einfo "and are subject to change."
50         einfo
51         einfo "Please file any enhancement requests, or bugs"
52         einfo "at https://bugs.gentoo.org"
53         einfo "We are also on IRC @ #gentoo-keys of the freenode network"
54         einfo
55         ewarn "There may be some python 3 compatibility issues still."
56         ewarn "Please help debug/fix/report them in bugzilla."
57 }