diff options
author | 2022-01-10 12:56:30 -0500 | |
---|---|---|
committer | 2022-01-11 09:20:02 -0500 | |
commit | 1627d312e5c119fbba0cd17bcde3f78adf1d1cb0 (patch) | |
tree | ed3197aa68de88568be81678cfea796a2544978f /dev-php/PEAR-XML_Parser/PEAR-XML_Parser-1.3.8-r1.ebuild | |
parent | x11-misc/xaos: add latest snapshot version (diff) | |
download | gentoo-1627d312e5c119fbba0cd17bcde3f78adf1d1cb0.tar.gz gentoo-1627d312e5c119fbba0cd17bcde3f78adf1d1cb0.tar.bz2 gentoo-1627d312e5c119fbba0cd17bcde3f78adf1d1cb0.zip |
dev-php/PEAR-XML_Parser: Revbump on 1.3.8
Fix compatibility with PHP 8
Fix tests to modern standards
This will break scripts that use the startHandler but is necessary
to work with PHP 8. Packages in this repository will be updated.
Bug: https://bugs.gentoo.org/830811
Closes: https://bugs.gentoo.org/774795
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php/PEAR-XML_Parser/PEAR-XML_Parser-1.3.8-r1.ebuild')
-rw-r--r-- | dev-php/PEAR-XML_Parser/PEAR-XML_Parser-1.3.8-r1.ebuild | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-php/PEAR-XML_Parser/PEAR-XML_Parser-1.3.8-r1.ebuild b/dev-php/PEAR-XML_Parser/PEAR-XML_Parser-1.3.8-r1.ebuild new file mode 100644 index 000000000000..461ae05c1155 --- /dev/null +++ b/dev-php/PEAR-XML_Parser/PEAR-XML_Parser-1.3.8-r1.ebuild @@ -0,0 +1,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.' +} |