summaryrefslogtreecommitdiff
blob: 46ac572c9e1d7b2b0f7f35a892b4f27495a7ee90 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-Benchmark/PEAR-Benchmark-1.2.9.ebuild,v 1.1 2012/01/18 18:03:46 mabi Exp $

EAPI="4"

inherit php-pear-r1

DESCRIPTION="Framework to benchmark PHP scripts or function calls."
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""

src_unpack() {
	unpack ${A}
	cd "${WORKDIR}"
	rm -f package.xml
	cp package2.xml package.xml
}

pkg_postinst() {
	if ! has_version "=dev-lang/php[bcmath]" ; then
		elog "${PN} can optionally use dev-lang/php bcmath features."
		elog "If you want those, recompile dev-lang/php with these flags in USE."
	fi
}