1 |
commit: 5e118951dc0461035b0bb36eaaacef08e66eaafa |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 19 16:10:50 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 19 16:10:50 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e118951 |
7 |
|
8 |
dev-php/PEAR-Image_GraphViz: Version bump direct to stable |
9 |
|
10 |
Old version is very broken: |
11 |
No tests enabled |
12 |
Missing dependencies |
13 |
Will not work on PHP 7 |
14 |
|
15 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
16 |
|
17 |
dev-php/PEAR-Image_GraphViz/Manifest | 2 +- |
18 |
.../PEAR-Image_GraphViz-1.3.0-r1.ebuild | 12 ----- |
19 |
.../PEAR-Image_GraphViz-1.3.0_p20151104.ebuild | 26 ++++++++++ |
20 |
.../files/Image_GraphViz-1.3.0-constructor.patch | 55 ++++++++++++++++++++++ |
21 |
4 files changed, 82 insertions(+), 13 deletions(-) |
22 |
|
23 |
diff --git a/dev-php/PEAR-Image_GraphViz/Manifest b/dev-php/PEAR-Image_GraphViz/Manifest |
24 |
index 3ac3b7d8377..4097cd46211 100644 |
25 |
--- a/dev-php/PEAR-Image_GraphViz/Manifest |
26 |
+++ b/dev-php/PEAR-Image_GraphViz/Manifest |
27 |
@@ -1 +1 @@ |
28 |
-DIST Image_GraphViz-1.3.0.tgz 16706 BLAKE2B 7485bd41758d634fd6fa925ad4fa877c8f1da295e3cde3c8093676152d28e0c93bbbcb72c269087c59fd20e267de0e0d3a7e93fddab6a0e4a7ead5eb19306c74 SHA512 08113e40dd78638ffc0f142699c472075df65c08a0a42d928f91bc0c0a1fbe0f97700dac27de24d98f284d444097d576af3f5c8f798e3e8c1dd58850df6b5b76 |
29 |
+DIST Image_GraphViz-1.3.0_p20151104.tar.gz 18109 BLAKE2B 9a8c269a7f4eff787a67c84770c296d3e032a038cae04b888ea5ae26525b24a764ad01d6300d7e7a4c3cf78acb4e077b1f9091cced4ef57031f6ce3aaef2a8e3 SHA512 69e9117cff950a45d8f3cfd5759be8194f477b55c09ceb990707f3ad2de2500a570fa124b73b2c81cdd6ce20b6c11fc0532a0087a515cf3c7c9a5a8ed7b1c58f |
30 |
|
31 |
diff --git a/dev-php/PEAR-Image_GraphViz/PEAR-Image_GraphViz-1.3.0-r1.ebuild b/dev-php/PEAR-Image_GraphViz/PEAR-Image_GraphViz-1.3.0-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index e445da594dc..00000000000 |
34 |
--- a/dev-php/PEAR-Image_GraphViz/PEAR-Image_GraphViz-1.3.0-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,12 +0,0 @@ |
37 |
-# Copyright 1999-2015 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=5 |
41 |
- |
42 |
-inherit php-pear-r1 |
43 |
- |
44 |
-DESCRIPTION="PHP interface to AT&T's GraphViz tools" |
45 |
-LICENSE="PHP-3" |
46 |
-SLOT="0" |
47 |
-KEYWORDS="~alpha amd64 hppa ~ia64 ~sparc x86" |
48 |
-IUSE="" |
49 |
|
50 |
diff --git a/dev-php/PEAR-Image_GraphViz/PEAR-Image_GraphViz-1.3.0_p20151104.ebuild b/dev-php/PEAR-Image_GraphViz/PEAR-Image_GraphViz-1.3.0_p20151104.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..6f780607fbd |
53 |
--- /dev/null |
54 |
+++ b/dev-php/PEAR-Image_GraphViz/PEAR-Image_GraphViz-1.3.0_p20151104.ebuild |
55 |
@@ -0,0 +1,26 @@ |
56 |
+# Copyright 1999-2018 Gentoo Foundation |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=6 |
60 |
+ |
61 |
+inherit php-pear-r2 vcs-snapshot |
62 |
+ |
63 |
+DESCRIPTION="PHP interface to AT&T's GraphViz tools" |
64 |
+SRC_URI="https://github.com/pear/Image_GraphViz/archive/3f8a01ae0597ca9d1d08a6e442cb0b153358fc0d.tar.gz -> ${PEAR_P}.tar.gz" |
65 |
+LICENSE="PHP-3" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~alpha amd64 hppa ~ia64 ~sparc x86" |
68 |
+IUSE="test" |
69 |
+RDEPEND="media-gfx/graphviz" |
70 |
+DEPEND="test? ( ${RDEPEND} dev-php/PEAR-PEAR )" |
71 |
+PATCHES=( "${FILESDIR}/Image_GraphViz-1.3.0-constructor.patch" ) |
72 |
+S="${WORKDIR}/${PEAR_P}" |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ mv "${S}/package.xml" "${WORKDIR}" || die |
76 |
+ default |
77 |
+} |
78 |
+ |
79 |
+src_test() { |
80 |
+ peardev run-tests tests || die |
81 |
+} |
82 |
|
83 |
diff --git a/dev-php/PEAR-Image_GraphViz/files/Image_GraphViz-1.3.0-constructor.patch b/dev-php/PEAR-Image_GraphViz/files/Image_GraphViz-1.3.0-constructor.patch |
84 |
new file mode 100644 |
85 |
index 00000000000..da7dfd4724c |
86 |
--- /dev/null |
87 |
+++ b/dev-php/PEAR-Image_GraphViz/files/Image_GraphViz-1.3.0-constructor.patch |
88 |
@@ -0,0 +1,55 @@ |
89 |
+From 794fdf40ad944225854845a0ff32a5c56fb249d9 Mon Sep 17 00:00:00 2001 |
90 |
+From: Seb35 <seb35@×××××.fr> |
91 |
+Date: Sun, 6 Nov 2016 22:42:46 +0100 |
92 |
+Subject: [PATCH] Added __construct constructor |
93 |
+ |
94 |
+This removes deprecation warnings due to old constructor |
95 |
+(method with the class name). Keep the old-style constructor |
96 |
+for compatibility (like in the PEAR main class). |
97 |
+--- |
98 |
+ Image/GraphViz.php | 25 ++++++++++++++++++++++++- |
99 |
+ 1 file changed, 24 insertions(+), 1 deletion(-) |
100 |
+ |
101 |
+diff --git a/Image/GraphViz.php b/Image/GraphViz.php |
102 |
+index ee84ff2..92842da 100644 |
103 |
+--- a/Image/GraphViz.php |
104 |
++++ b/Image/GraphViz.php |
105 |
+@@ -181,7 +181,7 @@ class Image_GraphViz |
106 |
+ * |
107 |
+ * @access public |
108 |
+ */ |
109 |
+- function Image_GraphViz($directed = true, $attributes = array(), |
110 |
++ function __construct($directed = true, $attributes = array(), |
111 |
+ $name = 'G', $strict = true, $returnError = false) |
112 |
+ { |
113 |
+ $this->setDirected($directed); |
114 |
+@@ -192,6 +192,29 @@ function Image_GraphViz($directed = true, $attributes = array(), |
115 |
+ $this->_returnFalseOnError = !$returnError; |
116 |
+ } |
117 |
+ |
118 |
++ /** |
119 |
++ * Compatibility constructor. |
120 |
++ * |
121 |
++ * @param boolean $directed Directed (TRUE) or undirected (FALSE) graph. |
122 |
++ * Note: You MUST pass a boolean, and not just |
123 |
++ * an expression that evaluates to TRUE or |
124 |
++ * FALSE (i.e. NULL, empty string, 0 will NOT |
125 |
++ * work) |
126 |
++ * @param array $attributes Attributes of the graph |
127 |
++ * @param string $name Name of the Graph |
128 |
++ * @param boolean $strict Whether to collapse multiple edges between |
129 |
++ * same nodes |
130 |
++ * @param boolean $returnError Set to TRUE to return PEAR_Error instances |
131 |
++ * on failures instead of FALSE |
132 |
++ * |
133 |
++ * @access public |
134 |
++ */ |
135 |
++ function Image_GraphViz($directed = true, $attributes = array(), |
136 |
++ $name = 'G', $strict = true, $returnError = false) |
137 |
++ { |
138 |
++ self::__construct($directed, $attributes, $name, $strinct, $returnError); |
139 |
++ } |
140 |
++ |
141 |
+ /** |
142 |
+ * Outputs image of the graph in a given format |
143 |
+ * |