Lines 10-21
Link Here
|
10 |
|
10 |
|
11 |
# Define 5.6 here so we get the USE and REQUIRED_USE from the eclass |
11 |
# Define 5.6 here so we get the USE and REQUIRED_USE from the eclass |
12 |
# This allows us to depend on the other slot |
12 |
# This allows us to depend on the other slot |
13 |
USE_PHP="php5-6 php7-0 php7-1" |
13 |
USE_PHP="php5-6 php7-0 php7-1 php7-2" |
14 |
|
14 |
|
15 |
inherit php-ext-pecl-r3 |
15 |
inherit php-ext-pecl-r3 |
16 |
|
16 |
|
17 |
# However, we only really build for 7.x; so redefine it here |
17 |
# However, we only really build for 7.x; so redefine it here |
18 |
USE_PHP="php7-0 php7-1" |
18 |
USE_PHP="php7-0 php7-1 php7-2" |
19 |
|
19 |
|
20 |
KEYWORDS="amd64 x86" |
20 |
KEYWORDS="amd64 x86" |
21 |
|
21 |
|
Lines 39-45
Link Here
|
39 |
REQUIRED_USE="^^ ( $LUSE )" |
39 |
REQUIRED_USE="^^ ( $LUSE )" |
40 |
|
40 |
|
41 |
src_prepare() { |
41 |
src_prepare() { |
42 |
if use php_targets_php7-0 || use php_targets_php7-1 ; then |
42 |
if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
43 |
php-ext-source-r3_src_prepare |
43 |
php-ext-source-r3_src_prepare |
44 |
else |
44 |
else |
45 |
eapply_user |
45 |
eapply_user |
Lines 47-53
Link Here
|
47 |
} |
47 |
} |
48 |
|
48 |
|
49 |
src_configure() { |
49 |
src_configure() { |
50 |
if use php_targets_php7-0 || use php_targets_php7-1 ; then |
50 |
if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
51 |
local PHP_EXT_ECONF_ARGS=( |
51 |
local PHP_EXT_ECONF_ARGS=( |
52 |
--enable-apcu |
52 |
--enable-apcu |
53 |
$(use_enable mmap apcu-mmap) |
53 |
$(use_enable mmap apcu-mmap) |
Lines 60-66
Link Here
|
60 |
} |
60 |
} |
61 |
|
61 |
|
62 |
src_install() { |
62 |
src_install() { |
63 |
if use php_targets_php7-0 || use php_targets_php7-1 ; then |
63 |
if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
64 |
php-ext-pecl-r3_src_install |
64 |
php-ext-pecl-r3_src_install |
65 |
|
65 |
|
66 |
insinto /usr/share/php7/apcu |
66 |
insinto /usr/share/php7/apcu |
Lines 69-75
Link Here
|
69 |
} |
69 |
} |
70 |
|
70 |
|
71 |
pkg_postinst() { |
71 |
pkg_postinst() { |
72 |
if use php_targets_php7-0 || use php_targets_php7-1 ; then |
72 |
if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
73 |
elog "The apc.php file shipped with this release of pecl-apcu was" |
73 |
elog "The apc.php file shipped with this release of pecl-apcu was" |
74 |
elog "installed into ${EPREFIX}/usr/share/php7/apcu/." |
74 |
elog "installed into ${EPREFIX}/usr/share/php7/apcu/." |
75 |
elog |
75 |
elog |