| 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.32 2004/09/25 06:35:09 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.33 2004/09/25 06:37:30 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 |
| … | |
… | |
| 280 | ;; |
280 | ;; |
| 281 | |
281 | |
| 282 | ltconfig) |
282 | ltconfig) |
| 283 | local ver="$(grep '^VERSION=' ${x})" |
283 | local ver="$(grep '^VERSION=' ${x})" |
| 284 | ver="${ver/VERSION=}" |
284 | ver="${ver/VERSION=}" |
|
|
285 | [ "${ver:0:3}" == "1.4" ] && ver="1.3" # 1.4 and 1.3 are compat |
| 285 | ebegin " Fixing \${S}${x/${S}}" |
286 | ebegin " Fixing \${S}${x/${S}}" |
| 286 | patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/ltconfig-${ver:0:3}.patch" > /dev/null |
287 | patch -p0 "${x}" "${ELT_PATCH_DIR}/uclibc/ltconfig-${ver:0:3}.patch" > /dev/null |
| 287 | eend $? "PLEASE CHECK ${x}" |
288 | eend $? "PLEASE CHECK ${x}" |
| 288 | ;; |
289 | ;; |
| 289 | esac |
290 | esac |