gentoo-overlay/dev-php/pecl-PDO_DBLIB/pecl-PDO_DBLIB-1.0-r1.ebuild

44 lines
790 B
Bash
Raw Normal View History

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
2017-12-04 11:14:53 -06:00
EAPI=6
PHP_EXT_NAME="pdo_dblib"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"
USE_PHP="php5-4 php5-5 php5-6"
2017-12-04 11:14:53 -06:00
inherit php-ext-pecl-r3
DESCRIPTION="PHP bindings for the Free TDS library"
LICENSE="PHP-3.01"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~x86"
DEPEND=">=dev-db/freetds-0.91"
RDEPEND="${DEPEND}"
2017-12-04 11:14:53 -06:00
PATCHES=(
"${FILESDIR}/PDO_DBLIB-config.patch"
"${FILESDIR}/PDO_DBLIB-compile.patch"
)
src_prepare() {
for slot in $(php_get_slots); do
php_init_slot_env ${slot}
done
2017-12-04 11:18:41 -06:00
php-ext-source-r3_src_prepare
}
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
}