summaryrefslogtreecommitdiff
blob: fd949ea89cfc33c9b2d569346d4ffce9167447bb (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-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit php-pear-r2 vcs-snapshot

DESCRIPTION="Provides multiple methods for configuration manipulation"
LICENSE="PHP-2.02"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="test xml"
RDEPEND="xml? ( dev-php/PEAR-XML_Parser dev-php/PEAR-XML_Util )"
DEPEND="test? ( ${RDEPEND} )"
SRC_URI="https://github.com/pear/Config/archive/606a24034ad80f9d6ccb5a8b698b702b392e4674.tar.gz -> ${PEAR_P}.tar.gz"
DOCS=( docs/TODO )
HTML_DOCS=( docs/Apache.php docs/IniCommented.php docs/IniFromScratch.php )

src_prepare() {
	# Move snapshot location to where the eclass expects
	mv "${S}/package.xml" "${WORKDIR}/package.xml" || die
	sed -i 's/&new/new/' test/phpt_test.php.inc || die
	sed -i 's/& new/ new/' test/bug6441.phpt || die
	eapply_user
}

src_test() {
	pear run-tests test || die "Tests failed"
}