/[gentoo-x86]/eclass/confutils.eclass
Gentoo

Diff of /eclass/confutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.13 Revision 1.14
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/confutils.eclass,v 1.13 2005/02/21 14:52:05 stuart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/confutils.eclass,v 1.14 2005/03/01 15:54:31 stuart Exp $
4# 4#
5# eclass/confutils.eclass 5# eclass/confutils.eclass
6# Utility functions to help with configuring a package 6# Utility functions to help with configuring a package
7# 7#
8# Based on Stuart's work for the PHP 5 eclass 8# Based on Stuart's work for the PHP 5 eclass
17# ======================================================================== 17# ========================================================================
18 18
19# list of USE flags that need deps that aren't yet in Portage 19# list of USE flags that need deps that aren't yet in Portage
20# this list was originally added for PHP 20# this list was originally added for PHP
21 21
22CONFUTILS_MISSING_DEPS="adabas aolserver birdstep caudium continuity db2 dbmaker empress empress-bcs esoob frontbase hyperwave-api informix ingres interbase isapi mnogosearch msession msql nsapi oci8 oracle7 ovrimos pfpro phttpd pi3web sapdb solid sybase sybase-ct tux" 22CONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob frontbase hyperwave-api informix ingres interbase mnogosearch msession msql oci8 oracle7 ovrimos pfpro sapdb solid sybase sybase-ct"
23 23
24# ======================================================================== 24# ========================================================================
25# confutils_init () 25# confutils_init ()
26# 26#
27# Call this function from your src_compile() function to initialise 27# Call this function from your src_compile() function to initialise
170# $3 - optional message to einfo() to the user 170# $3 - optional message to einfo() to the user
171 171
172enable_extension_disable () { 172enable_extension_disable () {
173 if ! useq "$2" ; then 173 if ! useq "$2" ; then
174 my_conf="${my_conf} --disable-$1" 174 my_conf="${my_conf} --disable-$1"
175 [ -n "$3" ] && einfo " Disabling $3" 175 [ -n "$3" ] && einfo " Disabling $1"
176 else 176 else
177 [ -n "$3" ] && einfo " Enabling $3" 177 [ -n "$3" ] && einfo " Enabling $1"
178 fi 178 fi
179} 179}
180 180
181# ======================================================================== 181# ========================================================================
182# enable_extension_enable () 182# enable_extension_enable ()
209 fi 209 fi
210 fi 210 fi
211 211
212 if useq $2 ; then 212 if useq $2 ; then
213 my_conf="${my_conf} --enable-$1$my_shared" 213 my_conf="${my_conf} --enable-$1$my_shared"
214 [ -n "$5" ] && einfo " Enabling $5" 214 einfo " Enabling $1"
215 else 215 else
216 my_conf="${my_conf} --disable-$1" 216 my_conf="${my_conf} --disable-$1"
217 [ -n "$5" ] && einfo " Disabling $5" 217 einfo " Disabling $1"
218 fi 218 fi
219} 219}
220 220
221# ======================================================================== 221# ========================================================================
222# enable_extension_enableonly () 222# enable_extension_enableonly ()
249 fi 249 fi
250 fi 250 fi
251 251
252 if useq $2 ; then 252 if useq $2 ; then
253 my_conf="${my_conf} --enable-$1$my_shared" 253 my_conf="${my_conf} --enable-$1$my_shared"
254 [ -n "$5" ] && einfo " Enabling $5" 254 einfo " Enabling $1"
255 else 255 else
256 # note: we deliberately do *not* use a --disable switch here 256 # note: we deliberately do *not* use a --disable switch here
257 [ -n "$5" ] && einfo " Disabling $5" 257 einfo " Disabling $1"
258 fi 258 fi
259} 259}
260# ======================================================================== 260# ========================================================================
261# enable_extension_without () 261# enable_extension_without ()
262# 262#
269# $3 - optional message to einfo() to the user 269# $3 - optional message to einfo() to the user
270 270
271enable_extension_without () { 271enable_extension_without () {
272 if ! useq "$2" ; then 272 if ! useq "$2" ; then
273 my_conf="${my_conf} --without-$1" 273 my_conf="${my_conf} --without-$1"
274 [ -n "$3" ] && einfo " Disabling $3" 274 einfo " Disabling $1"
275 else 275 else
276 [ -n "$3" ] && einfo " Enabling $3" 276 einfo " Enabling $1"
277 fi 277 fi
278} 278}
279 279
280# ======================================================================== 280# ========================================================================
281# enable_extension_with () 281# enable_extension_with ()
307 fi 307 fi
308 fi 308 fi
309 309
310 if useq $2 ; then 310 if useq $2 ; then
311 my_conf="${my_conf} --with-$1$my_shared" 311 my_conf="${my_conf} --with-$1$my_shared"
312 [ -n "$5" ] && einfo " Enabling $5" 312 einfo " Enabling $1"
313 else 313 else
314 my_conf="${my_conf} --without-$1" 314 my_conf="${my_conf} --without-$1"
315 [ -n "$5" ] && einfo " Disabling $5" 315 einfo " Disabling $1"
316 fi 316 fi
317} 317}
318 318
319# ======================================================================== 319# ========================================================================
320# enable_extension_withonly () 320# enable_extension_withonly ()
346 fi 346 fi
347 fi 347 fi
348 348
349 if useq $2 ; then 349 if useq $2 ; then
350 my_conf="${my_conf} --with-$1$my_shared" 350 my_conf="${my_conf} --with-$1$my_shared"
351 [ -n "$5" ] && einfo " Enabling $5" 351 einfo " Enabling $1"
352 else 352 else
353 # note - we deliberately do *not* use --without here 353 # note - we deliberately do *not* use --without here
354 [ -n "$5" ] && einfo " Disabling $5" 354 einfo " Disabling $1"
355 fi 355 fi
356} 356}
357 357
358# ======================================================================== 358# ========================================================================
359# confutils_warn_about_external_deps 359# confutils_warn_about_external_deps

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20