Gentoo Archives: gentoo-commits

From: "Brian Harring (ferringb)" <ferringb@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/snakeoil: ChangeLog snakeoil-0.4.2-r1.ebuild snakeoil-0.4.2.ebuild
Date: Sat, 03 Sep 2011 08:12:14
Message-Id: 20110903081205.55C1020051@flycatcher.gentoo.org
1 ferringb 11/09/03 08:12:05
2
3 Modified: ChangeLog
4 Added: snakeoil-0.4.2-r1.ebuild
5 Removed: snakeoil-0.4.2.ebuild
6 Log:
7 suppress a spurious compilation warning via removing a py3k only module from py2k installs
8
9 (Portage version: 2.1.10.6/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.45 dev-python/snakeoil/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/snakeoil/ChangeLog?rev=1.45&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/snakeoil/ChangeLog?rev=1.45&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/snakeoil/ChangeLog?r1=1.44&r2=1.45
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-python/snakeoil/ChangeLog,v
21 retrieving revision 1.44
22 retrieving revision 1.45
23 diff -u -r1.44 -r1.45
24 --- ChangeLog 2 Sep 2011 22:56:37 -0000 1.44
25 +++ ChangeLog 3 Sep 2011 08:12:05 -0000 1.45
26 @@ -1,6 +1,16 @@
27 # ChangeLog for dev-python/snakeoil
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/ChangeLog,v 1.44 2011/09/02 22:56:37 ferringb Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/ChangeLog,v 1.45 2011/09/03 08:12:05 ferringb Exp $
31 +
32 +*snakeoil-0.4.2-r1 (03 Sep 2011)
33 +
34 + 03 Sep 2011; Brian Harring <ferringb@g.o> -snakeoil-0.4.2.ebuild,
35 + +snakeoil-0.4.2-r1.ebuild:
36 + revbump to suppress a spurious warning under py2k about
37 + compatibility_py3k.py;
38 + basically, py2k was trying to postinst compile a module that is never loaded
39 + under py2k. We just wipe it from py2k installs now instead to avoid the
40 + warning.
41
42 *snakeoil-0.4.2 (02 Sep 2011)
43
44
45
46
47 1.1 dev-python/snakeoil/snakeoil-0.4.2-r1.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/snakeoil/snakeoil-0.4.2-r1.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/snakeoil/snakeoil-0.4.2-r1.ebuild?rev=1.1&content-type=text/plain
51
52 Index: snakeoil-0.4.2-r1.ebuild
53 ===================================================================
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-python/snakeoil/snakeoil-0.4.2-r1.ebuild,v 1.1 2011/09/03 08:12:05 ferringb Exp $
57
58 EAPI="2"
59 SUPPORT_PYTHON_ABIS="1"
60
61 inherit distutils
62
63 DESCRIPTION="Miscellaneous python utility code."
64 HOMEPAGE="http://snakeoil.googlecode.com/"
65 SRC_URI="http://snakeoil.googlecode.com/files/${P}.tar.bz2"
66
67 LICENSE="BSD"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
70 IUSE=""
71
72 DEPEND="!<sys-apps/pkgcore-0.4.7.8"
73 RDEPEND=${DEPEND}
74
75 DOCS="AUTHORS NEWS"
76
77 pkg_setup() {
78 # disable snakeoil 2to3 caching
79 unset PY2TO3_CACHEDIR
80 python_pkg_setup
81
82 # A hack to install for all versions of Python in the system.
83 # pkgcore needs it to support upgrading to a different Python slot.
84 PYTHON_ABIS=""
85 local python_interpreter
86 for python_interpreter in /usr/bin/python{2.[4-9],3.[1-9]}; do
87 if [[ -x "${python_interpreter}" ]]; then
88 PYTHON_ABIS+=" ${python_interpreter#/usr/bin/python}"
89 fi
90 done
91 export PYTHON_ABIS="${PYTHON_ABIS# }"
92 }
93
94 src_test() {
95 testing() {
96 local tempdir
97 tempdir="${T}/tests/python-${PYTHON_ABI}"
98 mkdir -p "${tempdir}" || die "tempdir creation failed"
99 cp -r "${S}" "${tempdir}" || die "test copy failed"
100 cd "${tempdir}/${P}"
101 PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test
102 }
103 python_execute_function testing
104 }
105
106 src_install() {
107 distutils_src_install
108 rm -f "${D}"/usr/lib*/python2.*/site-packages/snakeoil/compatibility_py3k.py
109 }