1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="PHP client library for Google's reCAPTCHA service"
8 HOMEPAGE="https://github.com/google/recaptcha/"
9 COMMIT="e90c632d22c1f349fa22d60f69e272fd4bd244ae"
10 SRC_URI="https://github.com/google/recaptcha/archive/${COMMIT}.zip"
14 KEYWORDS="~amd64 ~x86"
18 test? ( >=dev-php/phpunit-4 )"
19 RDEPEND="dev-lang/php"
21 S="${WORKDIR}/${PN}-${COMMIT}"
24 phpunit || die "test suite failed"
28 insinto "/usr/share/php/${PN}"
29 doins src/autoload.php
30 doins -r src/ReCaptcha
32 dodoc CONTRIBUTING.md README.md
37 elog "${PN} has been installed in /usr/share/php/${PN}/."
39 elog 'To use it in your scripts, include the autoload.php file'
40 elog "from the \"${PN}\" directory; for example,"
42 elog " require('${PN}/autoload.php');"
44 elog 'After that, the ReCaptcha class will be available to you.'