Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-Text_Wiki_Mediawiki/, dev-php/PEAR-Text_Wiki_Mediawiki/files/
Date: Wed, 14 Feb 2018 18:54:16
Message-Id: 1518634436.1534f95acbefa0ebfdfa469a3520fb5bf009a7e7.grknight@gentoo
1 commit: 1534f95acbefa0ebfdfa469a3520fb5bf009a7e7
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 14 18:50:43 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 14 18:53:56 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1534f95a
7
8 dev-php/PEAR-Text_Wiki_Mediawiki: New snapshot version compatible with PHP7
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-php/PEAR-Text_Wiki_Mediawiki/Manifest | 1 +
13 ...PEAR-Text_Wiki_Mediawiki-0.2.0_p20140604.ebuild | 26 ++++++++++++++++
14 .../files/0.2.0-constructor.patch | 36 ++++++++++++++++++++++
15 3 files changed, 63 insertions(+)
16
17 diff --git a/dev-php/PEAR-Text_Wiki_Mediawiki/Manifest b/dev-php/PEAR-Text_Wiki_Mediawiki/Manifest
18 index fe45a7e001e..730da51fc7f 100644
19 --- a/dev-php/PEAR-Text_Wiki_Mediawiki/Manifest
20 +++ b/dev-php/PEAR-Text_Wiki_Mediawiki/Manifest
21 @@ -1 +1,2 @@
22 DIST Text_Wiki_Mediawiki-0.2.0.tgz 17022 BLAKE2B e43d7452f28ebd8d730f69d947ed19bc47eeb2a40b5b7a99be1868d0bf8daa57b91fe7bd27adad49334999ce181f4254bfbe3b7f091d6dd34ac603a2108a6582 SHA512 032d1fb229b4e2ab65f60c90cc5a234b441093837c9d7170477f04e591a15c9a891baf9f45171275f152a358616124729db7edc97def2c72cfddf498b48f17a4
23 +DIST Text_Wiki_Mediawiki-0.2.0_p20140604.tar.gz 22941 BLAKE2B d208b4df7e01a2b28e44ada0226be0f183fe6ffefe742f9b6cb4f2b366f915ae46d950d574a8357cbec273f41792f17a639f5512613628ee60ed137d909be9dd SHA512 aef4d18a4a0b9f41dc4bad701a90a2e7d674851b63206db9dd87cf87d6705991c8221e41cdbb8d2572a950520ce87db96105a009e4189e48b8e7f5df0f460ee5
24
25 diff --git a/dev-php/PEAR-Text_Wiki_Mediawiki/PEAR-Text_Wiki_Mediawiki-0.2.0_p20140604.ebuild b/dev-php/PEAR-Text_Wiki_Mediawiki/PEAR-Text_Wiki_Mediawiki-0.2.0_p20140604.ebuild
26 new file mode 100644
27 index 00000000000..ad7c1611892
28 --- /dev/null
29 +++ b/dev-php/PEAR-Text_Wiki_Mediawiki/PEAR-Text_Wiki_Mediawiki-0.2.0_p20140604.ebuild
30 @@ -0,0 +1,26 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit php-pear-r2 vcs-snapshot
37 +
38 +SRC_URI="https://github.com/pear/Text_Wiki_Mediawiki/archive/11a902741d3f8cc6010fb97b825d66345143e4dc.tar.gz -> ${PEAR_P}.tar.gz"
39 +DESCRIPTION="Mediawiki parser for Text_Wiki"
40 +LICENSE="LGPL-2.1"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
43 +IUSE="test"
44 +RDEPEND=">=dev-php/PEAR-Text_Wiki-1.2.2_p20170904"
45 +DEPEND="test? ( ${RDEPEND} dev-php/phpunit )"
46 +PATCHES=( "${FILESDIR}/0.2.0-constructor.patch" )
47 +
48 +src_test() {
49 + phpunit tests/Text_Wiki_Parse_Mediawiki_Test.php || die
50 +}
51 +
52 +src_install() {
53 + php-pear-r2_src_install
54 + insinto /usr/share/php/.packagexml
55 + newins package.xml "${PEAR_P}.xml"
56 +}
57
58 diff --git a/dev-php/PEAR-Text_Wiki_Mediawiki/files/0.2.0-constructor.patch b/dev-php/PEAR-Text_Wiki_Mediawiki/files/0.2.0-constructor.patch
59 new file mode 100644
60 index 00000000000..edd8e3572de
61 --- /dev/null
62 +++ b/dev-php/PEAR-Text_Wiki_Mediawiki/files/0.2.0-constructor.patch
63 @@ -0,0 +1,36 @@
64 +diff -aurN a/Text/Wiki/Mediawiki.php b/Text/Wiki/Mediawiki.php
65 +--- a/Text/Wiki/Mediawiki.php 2014-06-04 23:24:45.000000000 -0400
66 ++++ b/Text/Wiki/Mediawiki.php 2018-02-14 13:36:18.777893414 -0500
67 +@@ -87,7 +87,7 @@
68 + * @param array $rules The set of rules to load for this object.
69 + */
70 + function __construct($rules = null) {
71 +- parent::Text_Wiki($rules);
72 ++ parent::__construct($rules);
73 + $this->addPath('parse', $this->fixPath(dirname(__FILE__)).'Parse/Mediawiki');
74 + }
75 + }
76 +diff -aurN a/Text/Wiki/Parse/Mediawiki/Url.php b/Text/Wiki/Parse/Mediawiki/Url.php
77 +--- a/Text/Wiki/Parse/Mediawiki/Url.php 2014-06-04 23:24:45.000000000 -0400
78 ++++ b/Text/Wiki/Parse/Mediawiki/Url.php 2018-02-14 13:40:21.974024459 -0500
79 +@@ -87,7 +87,7 @@
80 + */
81 + function __construct(&$obj)
82 + {
83 +- parent::Text_Wiki_Parse($obj);
84 ++ parent::__construct($obj);
85 +
86 + // convert the list of recognized schemes to a regex-safe string,
87 + // where the pattern delim is a slash
88 +diff -aurN a/Text/Wiki/Parse/Mediawiki/Wikilink.php b/Text/Wiki/Parse/Mediawiki/Wikilink.php
89 +--- a/Text/Wiki/Parse/Mediawiki/Wikilink.php 2014-06-04 23:24:45.000000000 -0400
90 ++++ b/Text/Wiki/Parse/Mediawiki/Wikilink.php 2018-02-14 13:40:46.030542359 -0500
91 +@@ -99,7 +99,7 @@
92 + function __construct(&$obj)
93 + {
94 + $default = $this->conf;
95 +- parent::Text_Wiki_Parse($obj);
96 ++ parent::__construct($obj);
97 +
98 + // override config options for image if specified
99 + if (in_array('Image', $this->wiki->disable)) {