dev-php/recaptcha: new version 1.2.1.
authorMichael Orlitzky <mjo@gentoo.org>
Fri, 12 Oct 2018 13:50:37 +0000 (09:50 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Fri, 12 Oct 2018 21:28:22 +0000 (17:28 -0400)
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10

dev-php/recaptcha/Manifest
dev-php/recaptcha/recaptcha-1.2.1.ebuild [new file with mode: 0644]

index a9a96b170c708c34e5a1eebca9ed52bddcf467d8..b7b95a982e2b0135bcc3418fea0de129aea0c93a 100644 (file)
@@ -1 +1,2 @@
 DIST recaptcha-1.1.3.tar.gz 12909 BLAKE2B cbffb64148f3359f4d351089fde65d2b9c8136e0814b5f6aedb3cd9b7f7d3f8f77d9673059f3909b381cf9151ca34a31bb961fe8686bdda4612c718828e46036 SHA512 54e22654d3b24400e448260f1d075ba2586d33cf44e0a5187b5c1288705b29bf9de394f8ca48f7717a2480cb1ae21348cc63e724f1eb93f268407a942b13f9dd
+DIST recaptcha-1.2.1.tar.gz 19935 BLAKE2B 43077b25d484940951bf070fa440b5d13c6992c2a157e06b81961b9692683a277d9507e44102dd0ba0cde66c892fd4736ed34cae4b001bdce0d4ab619828b432 SHA512 62df22a6f4b05006a6051db689994e455ada43f76406dd62c5c13f1d90ae64401e9d75c6a92f2c620a14c070d2b49199c20e70eb6284e42e676d37412a98abe4
diff --git a/dev-php/recaptcha/recaptcha-1.2.1.ebuild b/dev-php/recaptcha/recaptcha-1.2.1.ebuild
new file mode 100644 (file)
index 0000000..867c434
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="PHP client library for Google's reCAPTCHA service"
+HOMEPAGE="https://github.com/google/recaptcha"
+SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples test"
+
+RDEPEND="dev-lang/php"
+BDEPEND="test? ( ${RDEPEND} dev-php/phpunit )"
+
+src_install(){
+       insinto "/usr/share/php/${PN}"
+       doins -r src/autoload.php src/ReCaptcha
+       dodoc CONTRIBUTING.md README.md
+       use examples && dodoc -r examples
+}
+
+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}/autoload.php'),"
+       elog "and then use the ${PN} class normally. Most of the examples in"
+       elog "the documentation should work without further modification."
+}