/[gentoo-x86]/eclass/php-common-r1.eclass
Gentoo

Diff of /eclass/php-common-r1.eclass

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

Revision 1.13 Revision 1.15
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/php-common-r1.eclass,v 1.13 2008/03/03 17:05:06 jokey Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/php-common-r1.eclass,v 1.15 2008/05/27 10:14:34 hoffie Exp $
4 4
5# Based on robbat2's work on the php4 sapi eclass 5# Based on robbat2's work on the php4 sapi eclass
6# Based on stuart's work on the php5 sapi eclass 6# Based on stuart's work on the php5 sapi eclass
7 7
8# @ECLASS: php-common-r1.eclass 8# @ECLASS: php-common-r1.eclass
207# ======================================================================== 207# ========================================================================
208# POSTGRESQL SUPPORT 208# POSTGRESQL SUPPORT
209# ======================================================================== 209# ========================================================================
210 210
211php_check_pgsql() { 211php_check_pgsql() {
212 if use "postgres" \ 212 if use "postgres" && use "apache2" && use "threads" ; then
213 && use "apache2" && use "threads" \
214 && has_version ">=dev-db/libpq-8.1.3-r1" \ 213 if has_version ">=dev-db/libpq-8.1.3-r1" ; then
215 && ! built_with_use ">=dev-db/libpq-8.1.3-r1" "threads" ; then 214 if ! built_with_use ">=dev-db/libpq-8.1.3-r1" "threads" ; then
216 eerror 215 eerror
217 eerror "You must build dev-db/libpq with the 'threads' USE flag" 216 eerror "You must build dev-db/libpq with USE=threads"
218 eerror "turned on if you want to build PHP with threads support!" 217 eerror "if you want to build PHP with threads support!"
219 eerror 218 eerror
220 die "Rebuild dev-db/libpq with 'threads' USE flag enabled" 219 die "Rebuild dev-db/libpq with USE=threads"
220 fi
221 else
222 local pgsql_ver=$(eselect postgresql show)
223 if ! built_with_use "=dev-db/postgresql-base-${pgsql_ver}*" threads ; then
224 eerror
225 eerror "You must build =dev-db/postgresql-base-${pgsql_ver} with USE=threads"
226 eerror "if you want to build PHP with threads support!"
227 eerror
228 die "Rebuild =dev-db/postgresql-base-${pgsql_ver} with USE=threads"
229 fi
230 fi
221 fi 231 fi
222} 232}
223 233
224# ======================================================================== 234# ========================================================================
225# MYSQL CHARSET DETECTION SUPPORT ## Thanks to hoffie 235# MYSQL CHARSET DETECTION SUPPORT ## Thanks to hoffie

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

  ViewVC Help
Powered by ViewVC 1.1.20