blob: 7813206c0c29a07d07311392c15156d40b04a7f3 (
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
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/adodb-ext/adodb-ext-504-r3.ebuild,v 1.1 2013/02/20 07:12:15 olemarkus Exp $
EAPI="5"
PHP_EXT_NAME="adodb"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"
S="${WORKDIR}/adodb-${PV}"
inherit eutils php-ext-source-r2
KEYWORDS="~amd64 ~x86"
DESCRIPTION="PHP extension providing up to 100% speedup by replacing parts of ADOdb with C code."
HOMEPAGE="http://adodb.sourceforge.net/"
SRC_URI="http://phplens.com/lens/dl/${P}.zip"
LICENSE="BSD"
SLOT="0"
IUSE=""
RDEPEND=">=dev-php/adodb-4.70"
DEPEND="${RDEPEND}
app-arch/unzip"
src_prepare() {
if use php_targets_php5-3 ; then
cd "${WORKDIR}/php5.3"
edos2unix "${WORKDIR}/php5.3/adodb.c"
epatch "${FILESDIR}/php53.patch"
cd "${S}"
fi
php-ext-source-r2_src_prepare
}
src_install() {
php-ext-source-r2_src_install
dodir "${PHP_EXT_SHARED_DIR}"
insinto "${PHP_EXT_SHARED_DIR}"
doins test-adodb.php
dodoc CREDITS README.txt
}
|