1 |
commit: 682b3d83c8d50ff1ea5262b18a030a775832edef |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 6 17:03:30 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 6 17:03:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=682b3d83 |
7 |
|
8 |
dev-php/pecl-rrd: Revbump for php 7.2; fix tests |
9 |
|
10 |
Package-Manager: Portage-2.3.28, Repoman-2.3.9 |
11 |
|
12 |
dev-php/pecl-rrd/pecl-rrd-2.0.1-r2.ebuild | 42 ----------------------- |
13 |
dev-php/pecl-rrd/pecl-rrd-2.0.1-r3.ebuild | 57 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 57 insertions(+), 42 deletions(-) |
15 |
|
16 |
diff --git a/dev-php/pecl-rrd/pecl-rrd-2.0.1-r2.ebuild b/dev-php/pecl-rrd/pecl-rrd-2.0.1-r2.ebuild |
17 |
deleted file mode 100644 |
18 |
index 08528ee02ab..00000000000 |
19 |
--- a/dev-php/pecl-rrd/pecl-rrd-2.0.1-r2.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,42 +0,0 @@ |
22 |
-# Copyright 1999-2017 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-# Define 5.6 here to have the {,REQUIRED_}USE generated |
28 |
-USE_PHP="php5-6 php7-0 php7-1" |
29 |
- |
30 |
-inherit php-ext-pecl-r3 |
31 |
- |
32 |
-# But we really only build 7.0 |
33 |
-USE_PHP="php7-0 php7-1" |
34 |
- |
35 |
-DESCRIPTION="RRDtool bindings for PHP" |
36 |
-LICENSE="BSD" |
37 |
-SLOT="7" |
38 |
-KEYWORDS="~amd64 ~x86" |
39 |
- |
40 |
-DEPEND=" |
41 |
- php_targets_php7-0? ( net-analyzer/rrdtool[graph] ) |
42 |
- php_targets_php7-1? ( net-analyzer/rrdtool[graph] ) |
43 |
-" |
44 |
-RDEPEND="${DEPEND} php_targets_php5-6? ( ${CATEGORY}/${PN}:0 )" |
45 |
- |
46 |
-src_prepare() { |
47 |
- if use php_targets_php7-0 || use php_targets_php7-1 ; then |
48 |
- php-ext-source-r3_src_prepare |
49 |
- else |
50 |
- default_src_prepare |
51 |
- fi |
52 |
-} |
53 |
- |
54 |
-src_configure() { |
55 |
- local PHP_EXT_ECONF_ARGS=() |
56 |
- php-ext-source-r3_src_configure |
57 |
-} |
58 |
- |
59 |
-src_install() { |
60 |
- if use php_targets_php7-0 || use php_targets_php7-1 ; then |
61 |
- php-ext-pecl-r3_src_install |
62 |
- fi |
63 |
-} |
64 |
|
65 |
diff --git a/dev-php/pecl-rrd/pecl-rrd-2.0.1-r3.ebuild b/dev-php/pecl-rrd/pecl-rrd-2.0.1-r3.ebuild |
66 |
new file mode 100644 |
67 |
index 00000000000..8a4100b18f9 |
68 |
--- /dev/null |
69 |
+++ b/dev-php/pecl-rrd/pecl-rrd-2.0.1-r3.ebuild |
70 |
@@ -0,0 +1,57 @@ |
71 |
+# Copyright 1999-2018 Gentoo Foundation |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+ |
74 |
+EAPI=6 |
75 |
+ |
76 |
+# Define 5.6 here to have the {I,REQUIRED_}USE generated |
77 |
+USE_PHP="php5-6 php7-0 php7-1 php7-2" |
78 |
+ |
79 |
+inherit php-ext-pecl-r3 |
80 |
+ |
81 |
+# But we really only build 7.0 |
82 |
+USE_PHP="php7-0 php7-1 php7-2" |
83 |
+ |
84 |
+DESCRIPTION="RRDtool bindings for PHP" |
85 |
+LICENSE="BSD" |
86 |
+SLOT="7" |
87 |
+KEYWORDS="~amd64 ~x86" |
88 |
+ |
89 |
+DEPEND=" |
90 |
+ php_targets_php7-0? ( net-analyzer/rrdtool[graph] ) |
91 |
+ php_targets_php7-1? ( net-analyzer/rrdtool[graph] ) |
92 |
+ php_targets_php7-2? ( net-analyzer/rrdtool[graph] ) |
93 |
+" |
94 |
+RDEPEND="${DEPEND} php_targets_php5-6? ( ${CATEGORY}/${PN}:0 )" |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
98 |
+ php-ext-source-r3_src_prepare |
99 |
+ else |
100 |
+ default |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+src_configure() { |
105 |
+ if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
106 |
+ local PHP_EXT_ECONF_ARGS=() |
107 |
+ php-ext-source-r3_src_configure |
108 |
+ fi |
109 |
+} |
110 |
+ |
111 |
+src_install() { |
112 |
+ if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
113 |
+ php-ext-pecl-r3_src_install |
114 |
+ fi |
115 |
+} |
116 |
+ |
117 |
+src_test() { |
118 |
+ local slot |
119 |
+ if use php_targets_php7-0 || use php_targets_php7-1 || use php_targets_php7-2 ; then |
120 |
+ for slot in $(php_get_slots); do |
121 |
+ php_init_slot_env "${slot}" |
122 |
+ # Prepare test data |
123 |
+ emake -C tests/data all |
124 |
+ NO_INTERACTION="yes" emake test |
125 |
+ done |
126 |
+ fi |
127 |
+} |