Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/bsddb3: ChangeLog bsddb3-5.3.0-r1.ebuild bsddb3-5.3.0.ebuild
Date: Tue, 28 May 2013 19:00:27
Message-Id: 20130528190019.DE1DB2171D@flycatcher.gentoo.org
1 idella4 13/05/28 19:00:19
2
3 Modified: ChangeLog bsddb3-5.3.0.ebuild
4 Added: bsddb3-5.3.0-r1.ebuild
5 Log:
6 revbump, migrate -> distutils-r1, tes fail cited wrt Bug #470976
7
8 (Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.87 dev-python/bsddb3/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/ChangeLog?rev=1.87&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/ChangeLog?rev=1.87&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/ChangeLog?r1=1.86&r2=1.87
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v
20 retrieving revision 1.86
21 retrieving revision 1.87
22 diff -u -r1.86 -r1.87
23 --- ChangeLog 2 Feb 2013 22:28:13 -0000 1.86
24 +++ ChangeLog 28 May 2013 19:00:19 -0000 1.87
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/bsddb3
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.86 2013/02/02 22:28:13 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.87 2013/05/28 19:00:19 idella4 Exp $
30 +
31 +*bsddb3-5.3.0-r1 (28 May 2013)
32 +
33 + 28 May 2013; Ian Delaney <idella4@g.o> +bsddb3-5.3.0-r1.ebuild,
34 + bsddb3-5.3.0.ebuild:
35 + revbump, migrate -> distutils-r1, tes fail cited wrt Bug #470976
36
37 02 Feb 2013; Agostino Sarubbo <ago@g.o> bsddb3-5.3.0.ebuild:
38 Add ~arm, wrt bug #449220
39
40
41
42 1.12 dev-python/bsddb3/bsddb3-5.3.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0.ebuild?rev=1.12&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0.ebuild?rev=1.12&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0.ebuild?r1=1.11&r2=1.12
47
48 Index: bsddb3-5.3.0.ebuild
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0.ebuild,v
51 retrieving revision 1.11
52 retrieving revision 1.12
53 diff -u -r1.11 -r1.12
54 --- bsddb3-5.3.0.ebuild 2 Feb 2013 22:28:13 -0000 1.11
55 +++ bsddb3-5.3.0.ebuild 28 May 2013 19:00:19 -0000 1.12
56 @@ -1,6 +1,6 @@
57 # Copyright 1999-2013 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0.ebuild,v 1.11 2013/02/02 22:28:13 ago Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0.ebuild,v 1.12 2013/05/28 19:00:19 idella4 Exp $
61
62 EAPI="3"
63 PYTHON_DEPEND="2 3:3.1"
64 @@ -38,8 +38,8 @@
65 sed -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" -i setup2.py setup3.py || die "sed failed"
66 }
67
68 -src_compile() {
69 - distutils_src_compile \
70 +python_compile() {
71 + distutils-r1_python_compile \
72 --berkeley-db="${EPREFIX}/usr" \
73 --berkeley-db-incdir="${EPREFIX}$(db_includedir ${DB_VER})" \
74 --berkeley-db-libdir="${EPREFIX}/usr/$(get_libdir)"
75
76
77
78 1.1 dev-python/bsddb3/bsddb3-5.3.0-r1.ebuild
79
80 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0-r1.ebuild?rev=1.1&view=markup
81 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0-r1.ebuild?rev=1.1&content-type=text/plain
82
83 Index: bsddb3-5.3.0-r1.ebuild
84 ===================================================================
85 # Copyright 1999-2013 Gentoo Foundation
86 # Distributed under the terms of the GNU General Public License v2
87 # $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0-r1.ebuild,v 1.1 2013/05/28 19:00:19 idella4 Exp $
88
89 EAPI=5
90 PYTHON_COMPAT=( python{2_5,2_6,2_7,3_2,3_3} )
91
92 inherit db-use distutils-r1 multilib
93
94 DESCRIPTION="Python bindings for Berkeley DB"
95 HOMEPAGE="http://www.jcea.es/programacion/pybsddb.htm http://pypi.python.org/pypi/bsddb3"
96 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
97
98 LICENSE="BSD"
99 SLOT="0"
100 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
101 IUSE="doc"
102
103 RDEPEND=">=sys-libs/db-4.8.30"
104 DEPEND="${RDEPEND}
105 dev-python/setuptools[${PYTHON_USEDEP}]"
106
107 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
108
109 DOCS=( ChangeLog TODO.txt )
110 DISTUTILS_IN_SOURCE_BUILD=1
111
112 src_configure() {
113 local DB_VER
114 if has_version sys-libs/db:5.1; then
115 DB_VER="5.1"
116 elif has_version sys-libs/db:5.0; then
117 DB_VER="5.0"
118 else
119 DB_VER="4.8"
120 fi
121 sed -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" -i setup2.py setup3.py || die "sed failed"
122 }
123
124 src_compile() {
125 distutils-r1_src_compile \
126 --berkeley-db="${EPREFIX}/usr" \
127 --berkeley-db-incdir="${EPREFIX}$(db_includedir ${DB_VER})" \
128 --berkeley-db-libdir="${EPREFIX}/usr/$(get_libdir)"
129 }
130
131 python_test() {
132 # https://sourceforge.net/p/pybsddb/bugs/72/
133 pushd "${BUILD_DIR}"/../ > /dev/null
134 if [[ "${EPYTHON}" == python2* ]]; then
135 "${PYTHON}" build/lib/bsddb3/tests/test_all.py
136 elif [[ "${EPYTHON}" == python3* ]]; then
137 "${PYTHON}" setup.py build
138 einfo "all 500 tests are run silently and may take a number of minutes to complete"
139 "${PYTHON}" ./test3.py
140 fi
141 }
142
143 python_install() {
144 rm -fr "${ED}$(python_get_sitedir)/bsddb3/tests"
145
146 if use doc; then
147 dohtml -r docs/html/* || die "dohtml failed"
148 fi
149 distutils-r1_python_install
150 }
151
152 python_install_all() {
153 local HTML_DOCS=( docs/html/. )
154 distutils-r1_python_install_all
155 }