| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 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.84 2010/01/27 20:41:27 grobian Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.85 2010/03/12 08:17:40 haubi Exp $ |
| 4 | # |
4 | # |
| 5 | # Maintainer: base-system@gentoo.org |
5 | # Maintainer: base-system@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 |
| … | |
… | |
| 302 | -z $(grep 'verstring="-compatibility_version' "${x}/ltmain.sh") ]] ; then |
302 | -z $(grep 'verstring="-compatibility_version' "${x}/ltmain.sh") ]] ; then |
| 303 | ELT_walk_patches "${x}/ltmain.sh" "${y}" |
303 | ELT_walk_patches "${x}/ltmain.sh" "${y}" |
| 304 | ret=$? |
304 | ret=$? |
| 305 | fi |
305 | fi |
| 306 | ;; |
306 | ;; |
| 307 | "aixrtl" | "hpux-conf" | "mint-conf" ) |
307 | "aixrtl" | "hpux-conf") |
|
|
308 | ret=1 |
|
|
309 | local subret=0 |
|
|
310 | # apply multiple patches as often as they match |
|
|
311 | while [[ $subret -eq 0 ]]; do |
|
|
312 | subret=1 |
|
|
313 | if [[ -e ${x}/configure ]]; then |
|
|
314 | ELT_walk_patches "${x}/configure" "${y}" |
|
|
315 | subret=$? |
|
|
316 | # ltmain.sh and co might be in a subdirectory ... |
|
|
317 | elif [[ ! -e ${x}/configure && -e ${x}/../configure ]] ; then |
|
|
318 | ELT_walk_patches "${x}/../configure" "${y}" |
|
|
319 | subret=$? |
|
|
320 | fi |
|
|
321 | if [[ $subret -eq 0 ]]; then |
|
|
322 | # have at least one patch succeeded. |
|
|
323 | ret=0 |
|
|
324 | fi |
|
|
325 | done |
|
|
326 | ;; |
|
|
327 | "mint-conf") |
| 308 | ret=1 |
328 | ret=1 |
| 309 | local subret=1 |
329 | local subret=1 |
| 310 | if [[ -e ${x}/configure ]]; then |
330 | if [[ -e ${x}/configure ]]; then |
| 311 | ELT_walk_patches "${x}/configure" "${y}" |
331 | ELT_walk_patches "${x}/configure" "${y}" |
| 312 | subret=$? |
332 | subret=$? |