You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-php/phpunit/phpunit-4.3.1.ebuild

39 lines
880 B

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-php/phpunit/phpunit-4.3.1.ebuild,v 1.3 2015/02/25 15:41:00 ago Exp $
EAPI=5
DESCRIPTION="A PHP Unit Testing framework"
HOMEPAGE="http://phpunit.de"
PHPUNIT_PHAR="${P}.phar"
SRC_URI="https://phar.phpunit.de/${PHPUNIT_PHAR}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~hppa x86"
IUSE=""
DEPEND="dev-lang/php[phar,xml]"
RDEPEND="${DEPEND}"
S="${WORKDIR}"
src_unpack() {
return
}
src_install() {
insinto /usr/share/php/phpunit
insopts -m755
newins "${DISTDIR}"/${PHPUNIT_PHAR} phpunit.phar
dosym /usr/share/php/phpunit/phpunit.phar /usr/bin/phpunit
}
pkg_postinst() {
elog "${PN} can optionally use json, pdo-sqlite and pdo-mysql features."
elog "If you want those, emerge dev-lang/php with USE=\"json pdo sqlite mysql\"."
}