2017-01-05 19:40:18 -06:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Id$
|
|
|
|
|
2019-02-27 04:19:41 -06:00
|
|
|
EAPI=7
|
2017-01-05 19:40:18 -06:00
|
|
|
|
|
|
|
PHP_EXT_NAME="pdo_dblib"
|
|
|
|
PHP_EXT_INI="yes"
|
|
|
|
PHP_EXT_ZENDEXT="no"
|
|
|
|
|
2019-02-26 08:33:15 -06:00
|
|
|
USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3 "
|
2017-01-05 19:40:18 -06:00
|
|
|
|
2017-12-04 11:14:53 -06:00
|
|
|
inherit php-ext-pecl-r3
|
2017-01-05 19:40:18 -06:00
|
|
|
|
|
|
|
DESCRIPTION="PHP bindings for the Free TDS library"
|
|
|
|
LICENSE="PHP-3.01"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE=""
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2019-02-27 04:19:41 -06:00
|
|
|
DEPEND=">=dev-db/freetds-0.91:=[iodbc]"
|
2017-01-05 19:40:18 -06:00
|
|
|
RDEPEND="${DEPEND}"
|
2019-02-27 04:19:41 -06:00
|
|
|
#PATCHES="${FILESDIR}/PDO_DBLIB-1.0-config.patch
|
|
|
|
# ${FILESDIR}/PDO_DBLIB-1.0-compile.patch "
|
2017-01-05 19:40:18 -06:00
|
|
|
|
|
|
|
src_prepare() {
|
2019-02-27 04:19:41 -06:00
|
|
|
eapply ${FILESDIR}/PDO_DBLIB-1.0-config.patch
|
|
|
|
eapply ${FILESDIR}/PDO_DBLIB-1.0-compile.patch
|
|
|
|
if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-7 ; then
|
|
|
|
eapply ${FILESDIR}/PDO_DBLIB-1.0-php7.patch
|
|
|
|
fi
|
2017-12-04 11:18:41 -06:00
|
|
|
php-ext-source-r3_src_prepare
|
2017-01-05 19:40:18 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
if { use amd64; }; then
|
|
|
|
config+=" --with-libdir=/usr/lib64"
|
|
|
|
fi
|
|
|
|
for slot in $(php_get_slots); do
|
|
|
|
php_init_slot_env ${slot}
|
|
|
|
econf ${config}
|
|
|
|
done
|
|
|
|
}
|