dev-php/php-redmine-api: add version 1.5.6.

Package-Manager: portage-2.2.24
This commit is contained in:
Michael Orlitzky
2016-01-02 09:12:48 -05:00
parent c0117cca4f
commit 50c583039a
2 changed files with 36 additions and 0 deletions
@@ -0,0 +1,35 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="A simple, object-oriented, PHP Redmine API client"
HOMEPAGE="https://github.com/kbsali/${PN}"
SRC_URI="https://github.com/kbsali/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="dev-lang/php:*[curl,json,simplexml]"
DEPEND="test? ( ${RDEPEND} >=dev-php/phpunit-4 )"
src_install() {
insinto "/usr/share/php/${PN}"
doins -r lib
dodoc example.php README.markdown
}
src_test() {
phpunit || die "test suite failed"
}
pkg_postinst() {
elog "${PN} has been installed in /usr/share/php/${PN}/."
elog "To use it in a script, require('${PN}/lib/autoload.php'), and then"
elog "use the Redmine\\Client class normally. Most of the examples in the"
elog "documentation should work without modification."
}