blob: c60b49c2ffd5b1e8b755203266ee6cbb12a0742a (
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
30
31
32
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit php-pear-r2
DESCRIPTION="Integrated Templates"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
IUSE="examples test"
DEPEND="test? ( dev-php/phpunit ${RDEPEND} )"
src_prepare() {
eapply "${FILESDIR}/preg-callback.patch" \
"${FILESDIR}/constructor.patch"
eapply_user
}
src_install() {
use examples && HTML_DOCS=(
examples/sample_it.php
examples/sample_itx_addblockfile.php
examples/templates/
)
php-pear-r2_src_install
}
src_test() {
phpunit tests/AllTests.php || die
}
|