You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-php/PEAR-XML_Parser/PEAR-XML_Parser-1.3.8-r1.eb...

30 lines
779 B

# Copyright 1999-2023 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="amd64 arm ~hppa 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.'
}