| 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/gnustep-base.eclass,v 1.6 2008/01/04 12:27:10 voyageur Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnustep-base.eclass,v 1.7 2008/09/04 08:04:47 opfer Exp $ |
| 4 | |
4 | |
| 5 | inherit eutils flag-o-matic |
5 | inherit eutils flag-o-matic |
| 6 | |
6 | |
| 7 | # Inner gnustep eclass, should only be inherited directly by gnustep-base |
7 | # Inner gnustep eclass, should only be inherited directly by gnustep-base |
| 8 | # packages |
8 | # packages |
| … | |
… | |
| 14 | # "doc": build and install documentation, if available |
14 | # "doc": build and install documentation, if available |
| 15 | IUSE="debug doc" |
15 | IUSE="debug doc" |
| 16 | |
16 | |
| 17 | # packages needed to build any base gnustep package |
17 | # packages needed to build any base gnustep package |
| 18 | GNUSTEP_CORE_DEPEND="virtual/libc |
18 | GNUSTEP_CORE_DEPEND="virtual/libc |
| 19 | doc? ( virtual/tetex =dev-tex/latex2html-2002* >=app-text/texi2html-1.64 )" |
19 | doc? ( virtual/texi2dvi =dev-tex/latex2html-2002* >=app-text/texi2html-1.64 )" |
| 20 | |
20 | |
| 21 | # Where to install GNUstep |
21 | # Where to install GNUstep |
| 22 | GNUSTEP_PREFIX="/usr/GNUstep" |
22 | GNUSTEP_PREFIX="/usr/GNUstep" |
| 23 | |
23 | |
| 24 | # GNUstep environment array |
24 | # GNUstep environment array |
| … | |
… | |
| 185 | echo " * ${val} already present in ${dom} ${key}" |
185 | echo " * ${val} already present in ${dom} ${key}" |
| 186 | fi |
186 | fi |
| 187 | } |
187 | } |
| 188 | |
188 | |
| 189 | gnustep_set_default() { |
189 | gnustep_set_default() { |
| 190 | if [[ -z $1 || -z $2 || -z $3 ]]; then |
190 | if [[ -z $1 || -z $2 || -z $3 ]]; then |
| 191 | echo "warning: invalid script invocation" |
191 | echo "warning: invalid script invocation" |
| 192 | return |
192 | return |
| 193 | fi |
193 | fi |
| 194 | dom=$1 |
194 | dom=$1 |
| 195 | key=$2 |
195 | key=$2 |
| 196 | val=$3 |
196 | val=$3 |
| 197 | echo " * setting ${dom} ${key}" |
197 | echo " * setting ${dom} ${key}" |
| 198 | defaults write ${dom} ${key} ${val} |
198 | defaults write ${dom} ${key} ${val} |
| 199 | } |
199 | } |
| 200 | |
200 | |
| 201 | EOF |
201 | EOF |
| 202 | |
202 | |