1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit php-pear-r2 vcs-snapshot
8 DESCRIPTION="Provides multiple methods for configuration manipulation"
11 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
13 RESTRICT="!test? ( test )"
14 RDEPEND="xml? ( dev-php/PEAR-XML_Parser dev-php/PEAR-XML_Util )"
15 DEPEND="test? ( ${RDEPEND} )"
16 SRC_URI="https://github.com/pear/Config/archive/606a24034ad80f9d6ccb5a8b698b702b392e4674.tar.gz -> ${PEAR_P}.tar.gz"
18 HTML_DOCS=( docs/Apache.php docs/IniCommented.php docs/IniFromScratch.php )
21 # Move snapshot location to where the eclass expects
22 mv "${S}/package.xml" "${WORKDIR}/package.xml" || die
23 sed -i 's/&new/new/' test/phpt_test.php.inc || die
24 sed -i 's/& new/ new/' test/bug6441.phpt || die
29 pear run-tests test || die "Tests failed"