Limpieza en src_conficure()

This commit is contained in:
Sandino Araico Sanchez 2020-06-12 20:55:54 -05:00
parent 5cae19a709
commit aea36864ae
2 changed files with 46 additions and 0 deletions

View file

@ -4,3 +4,4 @@ AUX PDO_DBLIB-1.0-php7.patch 1130 BLAKE2B f9c2bb13bb27acb750b575fc0d8670046f3894
DIST PDO_DBLIB-1.0.tgz 8184 BLAKE2B b93dedd5c6596ba623fe862a8f8509112a999561caf935889b52a3dab44dfa30bf756b2aa49f7b84f7e8401119c42849c51898c3db6fab6a9111f14c57d790df SHA512 4b0e430812b8f7b10b574a17ea58ad6df1c4fef8300750a9ec6dd0568b5a6dd10c8bb928bd0875ef5f09a0c43c87a4c1464d1449d64d3496de9121d9f0351b8a
EBUILD pecl-PDO_DBLIB-1.0-r2.ebuild 1006 BLAKE2B 758ac8e05380906f048d72d46c556546e1b31a50283795e50826e70cbd17658f75c7f84549f5c421e1b18846abce1903fb935688f2cbbfe0147c51c3ae12aa1b SHA512 2fb47e16ab4fe8038f670a8f367a80fef272b5952eee64859d93f9c428c51752fd3d318ab1ea2d547e70788ecb003f44b42ef194c76de538d6bc492e03809b0b
EBUILD pecl-PDO_DBLIB-1.0-r3.ebuild 1358 BLAKE2B bb24639c57bd064b2d8304e569e306e3d856161d0678f21ffdbfccc9b834bd88c2827b9a92230f0da308378a7321483094b9aced15d403f5a64b4bc8573c78b5 SHA512 a759ec1b0b9270a83a22fda6142db878f95e666de6330286badfe8b2fd175d1dec72799f3b11124b5ca4bd8241e627b889d7bd8e9012a035ae77a595c13353c9
EBUILD pecl-PDO_DBLIB-1.0-r4.ebuild 1284 BLAKE2B d0cf34943b1b0c48eb68af59721a6217f0d4ce426abe8a7ceb6bca6d970ae2a33e7954081d5370f2ec2e842f0f526d8bfc1baf6f65f6fd5c58305e35128e082a SHA512 d8a5da57b454cef9f6ddfbb29c437573658d2072bf58b3decde641ace7d6deb056f5564a735ec598a95dc8967605f1f3425970e187339db9b6acd914900ade86

View file

@ -0,0 +1,45 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=7
PHP_EXT_NAME="pdo_dblib"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"
USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3 php7-4 "
inherit php-ext-pecl-r3
DESCRIPTION="PHP bindings for the Free TDS library"
LICENSE="PHP-3.01"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
>=dev-db/freetds-0.91:=[iodbc,mssql]
php_targets_php5-6? ( dev-lang/php:5.6[pdo] )
php_targets_php7-0? ( dev-lang/php:7.0[pdo] )
php_targets_php7-1? ( dev-lang/php:7.1[pdo] )
php_targets_php7-2? ( dev-lang/php:7.2[pdo] )
php_targets_php7-3? ( dev-lang/php:7.3[pdo] )
php_targets_php7-4? ( dev-lang/php:7.4[pdo] )
"
RDEPEND="${DEPEND}"
src_prepare() {
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-3 || use php_targets_php7-4 ; then
eapply ${FILESDIR}/PDO_DBLIB-1.0-php7.patch
fi
php-ext-source-r3_src_prepare
}
src_configure() {
[[ ${ABI} == x32 ]] && config+=" --with-libdir=/usr/libx32"
[[ ${ABI} == amd64 ]] && config+=" --with-libdir=/usr/lib64"
for slot in $(php_get_slots); do
php_init_slot_env ${slot}
econf ${config}
done
}