You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
738 B
35 lines
738 B
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
PHP_EXT_NAME="bc_apc"
|
|
PHP_EXT_INI="yes"
|
|
PHP_EXT_ZENDEXT="no"
|
|
PHP_EXT_EXTRA_ECONF=""
|
|
DOCS=( README.md )
|
|
|
|
USE_PHP="php7-0 php7-1"
|
|
|
|
inherit php-ext-pecl-r3
|
|
|
|
KEYWORDS="amd64 x86"
|
|
|
|
DESCRIPTION="Provides APC backwards compatibility functions via APCu"
|
|
LICENSE="PHP-3.01"
|
|
SLOT="0"
|
|
IUSE=""
|
|
|
|
DEPEND="dev-php/pecl-apcu:7[php_targets_php7-0?,php_targets_php7-1?]"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_install() {
|
|
# Rename the apc.so to match the ini file loading requirement
|
|
local slot
|
|
for slot in $(php_get_slots); do
|
|
php_init_slot_env ${slot}
|
|
mv "modules/apc.so" "modules/${PHP_EXT_NAME}.so" || die
|
|
done
|
|
php-ext-pecl-r3_src_install
|
|
}
|