Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-nds/nsscache/
Date: Sat, 02 Jan 2016 19:44:20
Message-Id: 1451763850.bff778c6816bf5b77e986a28d59331d9804fd9b5.robbat2@gentoo
1 commit: bff778c6816bf5b77e986a28d59331d9804fd9b5
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 2 19:43:55 2016 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 2 19:44:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bff778c6
7
8 net-nds/nsscache: upstream codebase is dumb and unconditionally needs bsddb even when nssdb is not used.
9
10 Package-Manager: portage-2.2.24
11
12 net-nds/nsscache/nsscache-0.23-r2.ebuild | 43 ++++++++++++++++++++++++++++++++
13 1 file changed, 43 insertions(+)
14
15 diff --git a/net-nds/nsscache/nsscache-0.23-r2.ebuild b/net-nds/nsscache/nsscache-0.23-r2.ebuild
16 new file mode 100644
17 index 0000000..77d5e07
18 --- /dev/null
19 +++ b/net-nds/nsscache/nsscache-0.23-r2.ebuild
20 @@ -0,0 +1,43 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +PYTHON_COMPAT=( python2_7 )
27 +
28 +inherit eutils distutils-r1
29 +
30 +DESCRIPTION="commandline tool to sync directory services to local cache"
31 +HOMEPAGE="https://github.com/google/nsscache"
32 +SRC_URI="https://nsscache.googlecode.com/files/${P}.tar.gz"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
38 +IUSE="nssdb nsscache"
39 +
40 +DEPEND="${PYTHON_DEPS}
41 + dev-python/python-ldap[${PYTHON_USEDEP}]
42 + dev-python/pycurl[${PYTHON_USEDEP}]
43 + dev-python/bsddb3[${PYTHON_USEDEP}]"
44 +RDEPEND="${DEPEND}
45 + nssdb? ( sys-libs/nss-db )
46 + nsscache? ( >=sys-auth/libnss-cache-0.10 )"
47 +RESTRICT="test"
48 +
49 +src_prepare() {
50 + find "${S}" -name '*.py' -exec \
51 + sed -i '/^import bsddb$/s,bsddb,bsddb3 as bsddb,g' \
52 + {} \+
53 + distutils-r1_src_prepare
54 +}
55 +
56 +src_install() {
57 + distutils-r1_src_install
58 +
59 + doman nsscache.1 nsscache.conf.5
60 + dodoc THANKS nsscache.cron
61 +
62 + keepdir /var/lib/nsscache
63 +}