1 |
I have decided to remove autotools-multilib_* utility functions |
2 |
completely since the sole consumer of the eclass does not use it. |
3 |
--- |
4 |
gx86/eclass/autotools-multilib.eclass | 84 +++-------------------------------- |
5 |
1 file changed, 5 insertions(+), 79 deletions(-) |
6 |
|
7 |
diff --git a/gx86/eclass/autotools-multilib.eclass b/gx86/eclass/autotools-multilib.eclass |
8 |
index 90f7bee..010c856 100644 |
9 |
--- a/gx86/eclass/autotools-multilib.eclass |
10 |
+++ b/gx86/eclass/autotools-multilib.eclass |
11 |
@@ -29,96 +29,22 @@ if [[ ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then |
12 |
die "${ECLASS}: multilib support requires out-of-source builds." |
13 |
fi |
14 |
|
15 |
-inherit autotools-utils multilib multiprocessing |
16 |
+inherit autotools-utils multilib-build |
17 |
|
18 |
EXPORT_FUNCTIONS src_configure src_compile src_test src_install |
19 |
|
20 |
-IUSE=multilib |
21 |
- |
22 |
-# @ECLASS-VARIABLE: MULTILIB_USEDEP |
23 |
-# @DESCRIPTION: |
24 |
-# The USE-dependency to be used on dependencies (libraries) needing |
25 |
-# to support multilib as well. |
26 |
-# |
27 |
-# Example use: |
28 |
-# @CODE |
29 |
-# RDEPEND="dev-libs/libfoo[${MULTILIB_USEDEP}] |
30 |
-# net-libs/libbar[ssl,${MULTILIB_USEDEP}]" |
31 |
-# @CODE |
32 |
-MULTILIB_USEDEP='multilib(-)?' |
33 |
- |
34 |
-# @FUNCTION: autotools-multilib_foreach_abi |
35 |
-# @USAGE: argv... |
36 |
-# @DESCRIPTION: |
37 |
-# If multilib support is enabled, sets the toolchain up for each |
38 |
-# supported ABI along with the ABI variable and correct BUILD_DIR, |
39 |
-# and runs the given commands with them. |
40 |
-# |
41 |
-# If multilib support is disabled, it just runs the commands. No setup |
42 |
-# is done. |
43 |
-autotools-multilib_foreach_abi() { |
44 |
- local initial_dir=${BUILD_DIR:-${S}} |
45 |
- |
46 |
- if use multilib; then |
47 |
- local ABI |
48 |
- for ABI in $(get_all_abis); do |
49 |
- multilib_toolchain_setup "${ABI}" |
50 |
- BUILD_DIR=${initial_dir%%/}-${ABI} "${@}" |
51 |
- done |
52 |
- else |
53 |
- "${@}" |
54 |
- fi |
55 |
-} |
56 |
- |
57 |
-# @FUNCTION: autotools-multilib_parallel_foreach_abi |
58 |
-# @USAGE: argv... |
59 |
-# @DESCRIPTION: |
60 |
-# If multilib support is enabled, sets the toolchain up for each |
61 |
-# supported ABI along with the ABI variable and correct BUILD_DIR, |
62 |
-# and runs the given commands with them. The commands are run |
63 |
-# in parallel with number of jobs being determined from MAKEOPTS. |
64 |
-# |
65 |
-# If multilib support is disabled, it just runs the commands. No setup |
66 |
-# is done. |
67 |
-# |
68 |
-# Useful for running configure scripts. |
69 |
-autotools-multilib_parallel_foreach_abi() { |
70 |
- local initial_dir=${BUILD_DIR:-${S}} |
71 |
- |
72 |
- if use multilib; then |
73 |
- multijob_init |
74 |
- |
75 |
- local ABI |
76 |
- for ABI in $(get_all_abis); do |
77 |
- ( |
78 |
- multijob_child_init |
79 |
- |
80 |
- multilib_toolchain_setup "${ABI}" |
81 |
- BUILD_DIR=${initial_dir%%/}-${ABI} |
82 |
- "${@}" |
83 |
- ) & |
84 |
- |
85 |
- multijob_post_fork |
86 |
- done |
87 |
- |
88 |
- multijob_finish |
89 |
- else |
90 |
- "${@}" |
91 |
- fi |
92 |
-} |
93 |
- |
94 |
autotools-multilib_src_configure() { |
95 |
- autotools-multilib_parallel_foreach_abi autotools-utils_src_configure |
96 |
+ multilib_parallel_foreach_abi autotools-utils_src_configure |
97 |
} |
98 |
|
99 |
autotools-multilib_src_compile() { |
100 |
- autotools-multilib_foreach_abi autotools-utils_src_compile |
101 |
+ multilib_foreach_abi autotools-utils_src_compile |
102 |
} |
103 |
|
104 |
autotools-multilib_src_test() { |
105 |
- autotools-multilib_foreach_abi autotools-utils_src_test |
106 |
+ multilib_foreach_abi autotools-utils_src_test |
107 |
} |
108 |
|
109 |
autotools-multilib_src_install() { |
110 |
- autotools-multilib_foreach_abi autotools-utils_src_install |
111 |
+ multilib_foreach_abi autotools-utils_src_install |
112 |
} |
113 |
-- |
114 |
1.8.1.1 |