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: Fri, 01 Jan 2016 19:09:54
Message-Id: 1451675380.3f1eca2bad3105fa709323298a683a9f55f9e627.robbat2@gentoo
1 commit: 3f1eca2bad3105fa709323298a683a9f55f9e627
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 19:09:18 2016 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 19:09:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f1eca2b
7
8 net-nds/nsscache: dev-python/bsddb3 port, also newer python eclass usage
9
10 Package-Manager: portage-2.2.24
11
12 net-nds/nsscache/nsscache-0.23-r1.ebuild | 43 ++++++++++++++++++++++++++++++++
13 1 file changed, 43 insertions(+)
14
15 diff --git a/net-nds/nsscache/nsscache-0.23-r1.ebuild b/net-nds/nsscache/nsscache-0.23-r1.ebuild
16 new file mode 100644
17 index 0000000..aaa5aad
18 --- /dev/null
19 +++ b/net-nds/nsscache/nsscache-0.23-r1.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 + nssdb? ( 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 +}