Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] python.eclass: export pkg_setup
Date: Sun, 01 Jan 2012 03:36:01
Message-Id: 4EFFD474.5070309@gentoo.org
1 python.eclass currently exports the pkg_setup function under the
2 following circumstances:
3
4 EAPI 2, 3: When ${PYTHON_USE_WITH} or ${PYTHON_USE_WITH_OR} are defined.
5 EAPI 4: Always exported.
6
7 I would like to modify python.eclass to export pkg_setup
8 unconditionally, rather than checking EAPI and random variables. This
9 will make the eclass behave more consistently, which seems like a good
10 thing.
11
12 This may cause problems in ebuilds which inherit python after another
13 eclass which exports pkg_setup if the ebuild does not override pkg_setup
14 itself. For example:
15
16 EAPI=3
17 inherit fortran-2 python
18
19 With a bit of hackery in ebuild.sh (thanks to Arfrever), I have compiled
20 a list of ebulids which may need to be modified. This will generally
21 mean reordering the eclasses in the inherit line, or defining a
22 pkg_setup function in the ebuild.
23
24 Barring any objections, I will make any necessary modifications to these
25 ebuilds over the next week or so, and commit the change to python.eclass
26 next weekend. If anyone has a better idea for rolling this out, please
27 speak up. :)
28
29 Here is the list of ebuilds, along with the pkg_setup function being
30 overridden.
31
32 gentoo-x86:
33 app-portage/maintainer-helper-0.1.2: qt4_pkg_setup
34 dev-python/pypy-1.7: check-reqs_pkg_setup
35 media-plugins/mythnetvision-0.23.1_p26407: mythtv-plugins_pkg_setup
36 sci-chemistry/pdb-tools-0.1.4-r3: fortran-2_pkg_setup
37 sci-chemistry/pdb2pqr-1.5.0-r2: fortran-2_pkg_setup
38 sci-chemistry/pdb2pqr-1.7.0: fortran-2_pkg_setup
39 sci-libs/libsvm-2.90-r1: java-pkg-opt-2_pkg_setup
40 sci-libs/libsvm-3.0: java-pkg-opt-2_pkg_setup
41 sci-physics/camfr-20070717-r2: fortran-2_pkg_setup
42 www-apache/mod_wsgi-3.3: apache_pkg_setup
43 www-apps/venus-20100911: webapp_pkg_setup
44
45 sunrise:
46 games-puzzle/pythonsudoku-0.13: games_pkg_setup
47 games-rpg/pylotro-0.1.14: games_pkg_setup
48 media-libs/portmidi-217: java-pkg-opt-2_pkg_setup

Attachments

File name MIME type
signature.asc application/pgp-signature