Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/bsddb3: ChangeLog bsddb3-4.7.4.ebuild
Date: Sun, 01 Feb 2009 00:14:00
Message-Id: E1LTPyI-0001Sf-Tz@stork.gentoo.org
1 patrick 09/02/01 00:13:58
2
3 Modified: ChangeLog
4 Added: bsddb3-4.7.4.ebuild
5 Log:
6 Bump to 4.7.4, closes #256864
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.28 dev-python/bsddb3/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/bsddb3/ChangeLog?rev=1.28&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/bsddb3/ChangeLog?rev=1.28&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/bsddb3/ChangeLog?r1=1.27&r2=1.28
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v
19 retrieving revision 1.27
20 retrieving revision 1.28
21 diff -u -r1.27 -r1.28
22 --- ChangeLog 25 Oct 2008 17:48:22 -0000 1.27
23 +++ ChangeLog 1 Feb 2009 00:13:58 -0000 1.28
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-python/bsddb3
26 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.27 2008/10/25 17:48:22 hawking Exp $
28 +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.28 2009/02/01 00:13:58 patrick Exp $
30 +
31 +*bsddb3-4.7.4 (01 Feb 2009)
32 +
33 + 01 Feb 2009; Patrick Lauer <patrick@g.o> +bsddb3-4.7.4.ebuild:
34 + Bump to 4.7.4, closes #256864
35
36 25 Oct 2008; Ali Polatel <hawking@g.o> bsddb3-4.7.3.ebuild:
37 Use db-2.7 if available. Update DEPEND.
38
39
40
41 1.1 dev-python/bsddb3/bsddb3-4.7.4.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/bsddb3/bsddb3-4.7.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/bsddb3/bsddb3-4.7.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: bsddb3-4.7.4.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-4.7.4.ebuild,v 1.1 2009/02/01 00:13:58 patrick Exp $
51
52 EAPI="1"
53
54 NEED_PYTHON=2.5
55
56 inherit distutils db-use multilib
57
58 DESCRIPTION="Python bindings for BerkeleyDB"
59 HOMEPAGE="http://www.jcea.es/programacion/pybsddb.htm"
60 SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz"
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
64 IUSE="doc"
65
66 RDEPEND=">=sys-libs/db-4.6"
67 DEPEND="${RDEPEND}
68 dev-python/setuptools
69 doc? ( dev-python/sphinx )"
70
71 src_compile() {
72 local DB_VER
73 if has_version sys-libs/db:4.7; then
74 DB_VER="4.7"
75 else
76 DB_VER="4.6"
77 fi
78
79 sed -i \
80 -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" \
81 setup2.py setup3.py || die "sed failed"
82
83 distutils_src_compile \
84 "--berkeley-db=/usr" \
85 "--berkeley-db-incdir=$(db_includedir ${DB_VER})" \
86 "--berkeley-db-libdir=/usr/$(get_libdir)"
87
88 if use doc ; then
89 mkdir html
90 sphinx-build docs html || die "building docs failed"
91 fi
92 }
93
94 src_install() {
95 DOCS="TODO.txt"
96 distutils_src_install
97
98 distutils_python_version
99 rm -rf "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}/tests"
100
101 use doc && dohtml -r html/*
102 }
103
104 src_test() {
105 distutils_python_version
106 "${python}" test.py || die "tests failed"
107 }