| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.34 2004/09/25 19:59:51 rac Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.35 2004/09/29 03:49:59 vapier Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass patches ltmain.sh distributed with libtoolized packages with the |
7 | # This eclass patches ltmain.sh distributed with libtoolized packages with the |
| 8 | # relink and portage patch among others |
8 | # relink and portage patch among others |
| … | |
… | |
| 276 | targets="$(find ${S} -name configure -o -name ltconfig)" |
276 | targets="$(find ${S} -name configure -o -name ltconfig)" |
| 277 | fi |
277 | fi |
| 278 | |
278 | |
| 279 | einfo "Applying uClibc/libtool patches ..." |
279 | einfo "Applying uClibc/libtool patches ..." |
| 280 | for x in ${targets} ; do |
280 | for x in ${targets} ; do |
|
|
281 | [ ! -s "${x}" ] && continue |
| 281 | case $(basename "${x}") in |
282 | case $(basename "${x}") in |
| 282 | configure) |
283 | configure) |
| 283 | if grep 'Transform linux' "${x}" >/dev/null ; then |
284 | if grep 'Transform linux' "${x}" >/dev/null ; then |
| 284 | ebegin " Fixing \${S}${x/${S}}" |
285 | ebegin " Fixing \${S}${x/${S}}" |
| 285 | patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/configure.patch" > /dev/null |
286 | patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/configure.patch" > /dev/null |