Lines 118-124
Link Here
|
118 |
local do_only_patches="no" |
118 |
local do_only_patches="no" |
119 |
local deptoremove= |
119 |
local deptoremove= |
120 |
local my_dirlist= |
120 |
local my_dirlist= |
121 |
local elt_patches="portage relink max_cmd_len sed test tmp" |
121 |
local elt_patches="portage relink max_cmd_len sed egrep ltcc test tmp" |
122 |
local start_dir="${PWD}" |
122 |
local start_dir="${PWD}" |
123 |
|
123 |
|
124 |
my_dirlist="$(ELT_find_ltmain_sh)" |
124 |
my_dirlist="$(ELT_find_ltmain_sh)" |
Lines 161-166
Link Here
|
161 |
esac |
161 |
esac |
162 |
done |
162 |
done |
163 |
|
163 |
|
|
|
164 |
if use ppc-macos ; then |
165 |
glibtoolize --copy --force |
166 |
darwintoolize |
167 |
fi |
168 |
|
164 |
for x in ${my_dirlist} |
169 |
for x in ${my_dirlist} |
165 |
do |
170 |
do |
166 |
local tmp="$(echo "${x}" | sed -e "s|${S}||")" |
171 |
local tmp="$(echo "${x}" | sed -e "s|${S}||")" |
Lines 299-301
Link Here
|
299 |
esac |
304 |
esac |
300 |
done |
305 |
done |
301 |
} |
306 |
} |
|
|
307 |
|
308 |
darwintoolize() { |
309 |
local targets="" |
310 |
local x |
311 |
|
312 |
if [ -z "$@" ] ; then |
313 |
targets="$(find ${S} -name ltmain.sh -o -name ltconfig)" |
314 |
fi |
315 |
|
316 |
einfo "Applying Darwin/libtool patches ..." |
317 |
for x in ${targets} ; do |
318 |
[ ! -s "${x}" ] && continue |
319 |
case $(basename "${x}") in |
320 |
ltmain.sh|ltconfig) |
321 |
local ver="$(grep '^VERSION=' ${x})" |
322 |
ver="${ver/VERSION=}" |
323 |
if [ "${ver:0:3}" == "1.4" -o "${ver:0:3}" == "1.5" ]; |
324 |
then |
325 |
ver="1.3" # 1.4, 1.5 and 1.3 are compat |
326 |
fi |
327 |
|
328 |
ebegin " Fixing \${S}${x/${S}}" |
329 |
patch -p0 "${x}" "${ELT_PATCH_DIR}/darwin/$(basename "${x}")-${ver:0:3}.patch" > /dev/null |
330 |
eend $? "PLEASE CHECK ${x}" |
331 |
;; |
332 |
esac |
333 |
done |
334 |
} |