diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2022-08-07 09:39:26 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2022-08-07 13:02:00 -0400 |
commit | faa31ddf19ee012a44d9fdb7a374d4763a3faf34 (patch) | |
tree | 219c9f0687fd155dec21e8026948957c7d8c5d9f /dev-php/recaptcha/recaptcha-1.2.4.ebuild | |
parent | dev-scheme/racket: drop old 8.2-r3 (diff) | |
download | gentoo-faa31ddf19ee012a44d9fdb7a374d4763a3faf34.tar.gz gentoo-faa31ddf19ee012a44d9fdb7a374d4763a3faf34.tar.bz2 gentoo-faa31ddf19ee012a44d9fdb7a374d4763a3faf34.zip |
dev-php/recaptcha: add 1.2.4
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-php/recaptcha/recaptcha-1.2.4.ebuild')
-rw-r--r-- | dev-php/recaptcha/recaptcha-1.2.4.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-php/recaptcha/recaptcha-1.2.4.ebuild b/dev-php/recaptcha/recaptcha-1.2.4.ebuild new file mode 100644 index 000000000000..de078821e3da --- /dev/null +++ b/dev-php/recaptcha/recaptcha-1.2.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" +RESTRICT="!test? ( test )" + +RDEPEND="dev-lang/php" +BDEPEND="test? ( ${RDEPEND} <dev-php/phpunit-8 )" + +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." +} |