summaryrefslogtreecommitdiff
blob: f5faded5299ed40ba4178035fe83395abd25c961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/PECL-sqlite/PECL-sqlite-1.0.3.ebuild,v 1.5 2005/07/17 12:20:43 dertobi123 Exp $

PHP_EXT_ZENDEXT="no"
PHP_EXT_INI="yes"
PHP_EXT_PECL_PKG="SQLite"
PHP_EXT_NAME="sqlite"

inherit php-ext-pecl

DEPEND="${DEPEND} !dev-php/sqlite-php"

IUSE=""
DESCRIPTION="PHP bindings for the SQLite database engine"
HOMEPAGE="http://pear.php.net/SQLite"
SLOT="0"
LICENSE="PHP"
KEYWORDS="x86 ~alpha ~sparc ppc ~ia64 ~amd64"

src_compile() {
	if has_version ">=virtual/php-5.0.0"; then
		eerror "Since PHP 5.0.0, SQLite is bundled in the PHP distribution,"
		eerror "the PECL extension is intended only for use with the PHP 4.3.x series."
		eerror "To use SQLite with PHP5, add 'sqlite' into USE and remerge php."
		die
	fi
	php-ext-pecl_src_compile
}

src_install() {
	php-ext-pecl_src_install
	dodoc README TODO
}