Gentoo Archives: gentoo-dev

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 4/4] Example conversion of pygobject to python-r1 + autotools-utils.
Date: Thu, 29 Nov 2012 16:51:15
Message-Id: 1354207828.15387.45.camel@gilles.gandi.net
In Reply to: [gentoo-dev] [PATCH 4/4] Example conversion of pygobject to python-r1 + autotools-utils. by "Michał Górny"
1 First, thanks for this patch, I was planning on converting it but did
2 not have to do it.
3
4 Le jeudi 29 novembre 2012 à 14:40 +0100, Michał Górny a écrit :
5 > ---
6 > .../dev-python/pygobject/pygobject-3.2.2-r1.ebuild | 106 +++++++++++++++++++++
7 > 1 file changed, 106 insertions(+)
8 > create mode 100644 gx86/dev-python/pygobject/pygobject-3.2.2-r1.ebuild
9 >
10 > diff --git a/gx86/dev-python/pygobject/pygobject-3.2.2-r1.ebuild b/gx86/dev-python/pygobject/pygobject-3.2.2-r1.ebuild
11 > new file mode 100644
12 > index 0000000..289eace
13 > --- /dev/null
14 > +++ b/gx86/dev-python/pygobject/pygobject-3.2.2-r1.ebuild
15 > @@ -0,0 +1,106 @@
16 > +# Copyright 1999-2012 Gentoo Foundation
17 > +# Distributed under the terms of the GNU General Public License v2
18 > +# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/pygobject-3.2.2.ebuild,v 1.5 2012/09/28 05:45:45 mattst88 Exp $
19 > +
20 > +EAPI="4"
21 > +GCONF_DEBUG="no"
22 > +PYTHON_COMPAT=( python2_6 python2_7 python3_1 python3_2 )
23 > +AUTOTOOLS_AUTORECONF=1
24 > +
25 > +inherit autotools-utils eutils gnome2 python-r1 virtualx
26
27 Please do not mix autotools utils with gnome2 eclass. gnome team does
28 not support out of tree builds for now. I have plans to integrate this
29 in the eclass but we found that upstream generally does not test this so
30 we want to test it more extensively before making this available.
31
32 > +# FIXME: With python multiple ABI support, tests return 1 even when they pass
33 > +src_test() {
34 > + local DBUS_SESSION_BUS_ADDRESS
35 > + local GIO_USE_VFS='local' # prevents odd issues with deleting ${T}/.gvfs
36 > + local VIRTUALX_COMMAND=python_test
37 > +
38 > + export GIO_USE_VFS
39 > +
40 > + python_foreach_impl virtualmake
41 > +
42 > + python_execute_function -s testing
43 > +}
44 > +
45 dbus variables needs to be unset for tests to work when you do your
46 builds from a terminal started from your desktop, is that really
47 equivalent ?
48
49 --
50 Gilles Dartiguelongue <eva@g.o>
51 Gentoo

Replies