Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 65272 | Differences between
and this patch

Collapse All | Expand All

(-)libtool.eclass (+29 lines)
Lines 28-33 Link Here
28
ELT_PATCH_DIR="${PORTDIR}/eclass/ELT-patches"
28
ELT_PATCH_DIR="${PORTDIR}/eclass/ELT-patches"
29
ELT_APPLIED_PATCHES=
29
ELT_APPLIED_PATCHES=
30
30
31
# LIBTOOL_CMD_SEP is a Mac OS X extension, see glibtool(1) for detail
32
export _S_=${LIBTOOL_CMD_SEP-\~}
33
31
#
34
#
32
# Returns all the directories containing ltmain.sh
35
# Returns all the directories containing ltmain.sh
33
#
36
#
Lines 161-166 Link Here
161
		esac
164
		esac
162
	done
165
	done
163
166
167
	if use ppc-macos ; then
168
		glibtoolize --copy --force
169
		darwintoolize
170
	fi
171
164
	for x in ${my_dirlist}
172
	for x in ${my_dirlist}
165
	do
173
	do
166
		local tmp="$(echo "${x}" | sed -e "s|${S}||")"
174
		local tmp="$(echo "${x}" | sed -e "s|${S}||")"
Lines 299-301 Link Here
299
		esac
307
		esac
300
	done
308
	done
301
}
309
}
310
311
darwintoolize() {
312
	local targets=""
313
	local x
314
315
	if [ -z "$@" ] ; then
316
		targets="$(find ${S} -name ltmain.sh -o -name ltconfig)"
317
	fi
318
319
	einfo "Applying Darwin/libtool patches ..."
320
	for x in ${targets} ; do
321
		[ ! -s "${x}" ] && continue
322
		case $(basename "${x}") in
323
		ltmain.sh|ltconfig)
324
			ebegin " Fixing \${S}${x/${S}}"
325
			patch -p0 "${x}" "${ELT_PATCH_DIR}/darwin/$(basename "${x}").patch" > /dev/null
326
			eend $? "PLEASE CHECK ${x}"
327
			;;
328
		esac
329
	done
330
}

Return to bug 65272