blob: 461ae05c11556653122bb713b4641690cfac528d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit php-pear-r2
DESCRIPTION="XML parsing class based on PHP's SAX parser"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE=""
# This is to match patch compatibility
RDEPEND="!<dev-php/PEAR-XML_RSS-1.1.0-r2"
PATCHES=( "${FILESDIR}/XML_Parser-1.3.8-php8.patch" )
src_test() {
peardev run-tests -r || die
}
pkg_postinst() {
php-pear-r2_pkg_postinst
elog 'This version includes a PHP 8 compatibilty patch for startHandler'
elog 'which removes the pass-by-reference off of $attribs (third parameter).'
elog 'This could break old scripts with recent versions until that override also'
elog 'removes the pass-by-reference.'
}
|