Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/recaptcha/
Date: Sun, 07 Aug 2022 17:02:30
Message-Id: 1659891720.faa31ddf19ee012a44d9fdb7a374d4763a3faf34.mjo@gentoo
1 commit: faa31ddf19ee012a44d9fdb7a374d4763a3faf34
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 7 13:39:26 2022 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 7 17:02:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faa31ddf
7
8 dev-php/recaptcha: add 1.2.4
9
10 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
11
12 dev-php/recaptcha/Manifest | 1 +
13 dev-php/recaptcha/recaptcha-1.2.4.ebuild | 35 ++++++++++++++++++++++++++++++++
14 2 files changed, 36 insertions(+)
15
16 diff --git a/dev-php/recaptcha/Manifest b/dev-php/recaptcha/Manifest
17 index d82a9d1c40af..726ee9acd625 100644
18 --- a/dev-php/recaptcha/Manifest
19 +++ b/dev-php/recaptcha/Manifest
20 @@ -1 +1,2 @@
21 DIST recaptcha-1.2.1.tar.gz 19935 BLAKE2B 43077b25d484940951bf070fa440b5d13c6992c2a157e06b81961b9692683a277d9507e44102dd0ba0cde66c892fd4736ed34cae4b001bdce0d4ab619828b432 SHA512 62df22a6f4b05006a6051db689994e455ada43f76406dd62c5c13f1d90ae64401e9d75c6a92f2c620a14c070d2b49199c20e70eb6284e42e676d37412a98abe4
22 +DIST recaptcha-1.2.4.tar.gz 21762 BLAKE2B 46c00ac95f2d2643a719b8ea4b53f33f92357406168e057dbdb87fb1419dd6626d1032113ba5842c69bdacb385887563b52290a55a861b57ddcf494e325c0595 SHA512 7c0bee86e532547900a0131c2c52d9d3e427eb0465d7ae5ca2bd3ccbeb7620c8b3216313e4ab382013045310f928364c1284a77eee2f2216d5b241e2d275597d
23
24 diff --git a/dev-php/recaptcha/recaptcha-1.2.4.ebuild b/dev-php/recaptcha/recaptcha-1.2.4.ebuild
25 new file mode 100644
26 index 000000000000..de078821e3da
27 --- /dev/null
28 +++ b/dev-php/recaptcha/recaptcha-1.2.4.ebuild
29 @@ -0,0 +1,35 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DESCRIPTION="PHP client library for Google's reCAPTCHA service"
36 +HOMEPAGE="https://github.com/google/recaptcha"
37 +SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
38 +
39 +LICENSE="BSD"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="examples test"
43 +RESTRICT="!test? ( test )"
44 +
45 +RDEPEND="dev-lang/php"
46 +BDEPEND="test? ( ${RDEPEND} <dev-php/phpunit-8 )"
47 +
48 +src_install() {
49 + insinto "/usr/share/php/${PN}"
50 + doins -r src/autoload.php src/ReCaptcha
51 + dodoc CONTRIBUTING.md README.md
52 + use examples && dodoc -r examples
53 +}
54 +
55 +src_test() {
56 + phpunit || die "test suite failed"
57 +}
58 +
59 +pkg_postinst() {
60 + elog "${PN} has been installed in /usr/share/php/${PN}/."
61 + elog "To use it in a script, require('${PN}/autoload.php'),"
62 + elog "and then use the ${PN} class normally. Most of the examples in"
63 + elog "the documentation should work without further modification."
64 +}