summaryrefslogtreecommitdiff
blob: 1e5d5719fc8f16922b26c79ceb2adab1c2f98008 (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.6 2005/09/10 23:13:46 agriffis 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="alpha ~amd64 ~ia64 ppc ~sparc x86"

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
}