| 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/phpconfutils.eclass,v 1.7 2007/11/22 21:52:12 drac Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/phpconfutils.eclass,v 1.8 2007/11/29 23:12:13 jokey Exp $ |
| 4 | # |
4 | # |
| 5 | # ######################################################################## |
5 | # ######################################################################## |
| 6 | # |
6 | # |
| 7 | # Based on Stuart's work on the original confutils eclass |
7 | # Based on Stuart's work on the original confutils eclass |
| 8 | # |
8 | # |
| … | |
… | |
| 32 | # Sort and remove duplicates of the auto-enabled USE flags |
32 | # Sort and remove duplicates of the auto-enabled USE flags |
| 33 | # |
33 | # |
| 34 | |
34 | |
| 35 | phpconfutils_sort_flags() { |
35 | phpconfutils_sort_flags() { |
| 36 | # Sort the list of auto-magically enabled USE flags |
36 | # Sort the list of auto-magically enabled USE flags |
| 37 | PHPCONFUTILS_AUTO_USE="`echo ${PHPCONFUTILS_AUTO_USE} | tr '\040\010' '\012\012' | sort -u`" |
37 | PHPCONFUTILS_AUTO_USE="$(echo ${PHPCONFUTILS_AUTO_USE} | tr '\040\010' '\012\012' | sort -u)" |
| 38 | } |
38 | } |
| 39 | |
39 | |
| 40 | # ======================================================================== |
40 | # ======================================================================== |
| 41 | # phpconfutils_init() |
41 | # phpconfutils_init() |
| 42 | # |
42 | # |