Files
gentoo/dev-php/php-redmine-api/php-redmine-api-1.5.9.ebuild
Michał Górny 6568a730a8 */*: Bump copyright on files touched this year
Update the copyright notice on all files that were touched since
January 1st but did not have the notice updated.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2020-02-11 18:07:17 +01:00

36 lines
929 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A simple, object-oriented, PHP Redmine API client"
HOMEPAGE="https://github.com/kbsali/php-redmine-api"
SRC_URI="https://github.com/kbsali/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
RESTRICT="!test? ( 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."
}