Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/x11:master commit in: x11-proto/xcb-proto/
Date: Fri, 23 May 2014 22:38:10
Message-Id: 1400884674.264f3bc8857ce2e6be6bb6ad7e25a4722d1f6e0c.mgorny@gentoo
1 commit: 264f3bc8857ce2e6be6bb6ad7e25a4722d1f6e0c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 23 22:37:54 2014 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 23 22:37:54 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=264f3bc8
7
8 x11-proto/xcb-proto: Fix inlining multilib BUILD_DIR logic, use sub-phase functions instead. Fixes bug #511142.
9
10 Package-Manager: portage-2.2.10
11
12 ---
13 x11-proto/xcb-proto/xcb-proto-9999.ebuild | 36 +++++++++++++++++++++----------
14 1 file changed, 25 insertions(+), 11 deletions(-)
15
16 diff --git a/x11-proto/xcb-proto/xcb-proto-9999.ebuild b/x11-proto/xcb-proto/xcb-proto-9999.ebuild
17 index 1449375..818087e 100644
18 --- a/x11-proto/xcb-proto/xcb-proto-9999.ebuild
19 +++ b/x11-proto/xcb-proto/xcb-proto-9999.ebuild
20 @@ -25,26 +25,40 @@ DEPEND="${RDEPEND}
21 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
22
23 src_configure() {
24 - python_export_best
25 + python_setup
26 xorg-2_src_configure
27 - #Note: multilib is not supported with python, therefore use only one ABI
28 - python_parallel_foreach_impl autotools-utils_src_configure
29 }
30
31 -src_compile() {
32 - xorg-2_src_compile
33 +multilib_src_configure() {
34 + autotools-utils_src_configure
35
36 - python_foreach_impl autotools-utils_src_compile -C xcbgen \
37 - top_builddir="${WORKDIR}/${P}-${ABI:-${DEFAULT_ABI}}"
38 + if multilib_is_native_abi; then
39 + python_parallel_foreach_impl autotools-utils_src_configure
40 + fi
41 +}
42 +
43 +multilib_src_compile() {
44 + default
45 +
46 + if multilib_is_native_abi; then
47 + python_foreach_impl autotools-utils_src_compile -C xcbgen \
48 + top_builddir="${BUILD_DIR}"
49 + fi
50 }
51
52 src_install() {
53 xorg-2_src_install
54
55 - python_foreach_impl autotools-utils_src_install -C xcbgen \
56 - top_builddir="${WORKDIR}/${P}-${ABI:-${DEFAULT_ABI}}"
57 -
58 - # pkg-config file hardcodes python sitedir, bug #486512
59 + # pkg-config file hardcodes python sitedir, bug 486512
60 sed -i -e '/pythondir/s:=.*$:=/dev/null:' \
61 "${ED}"/usr/lib*/pkgconfig/xcb-proto.pc || die
62 }
63 +
64 +multilib_src_install() {
65 + default
66 +
67 + if multilib_is_native_abi; then
68 + python_foreach_impl autotools-utils_src_install -C xcbgen \
69 + top_builddir="${BUILD_DIR}"
70 + fi
71 +}