diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2015-11-12 15:03:29 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2015-11-12 15:03:52 -0500 |
commit | 2c26177df6dab4482ac8f772ffa6a8d1067a6e02 (patch) | |
tree | ced69cd60fc56e2f44e59e07a87dc9f2b373534c /dev-php/recaptcha/recaptcha-1.1.2.ebuild | |
parent | dev-db/postgresql: Add 9.5 Beta 2 (diff) | |
download | gentoo-2c26177df6dab4482ac8f772ffa6a8d1067a6e02.tar.gz gentoo-2c26177df6dab4482ac8f772ffa6a8d1067a6e02.tar.bz2 gentoo-2c26177df6dab4482ac8f772ffa6a8d1067a6e02.zip |
dev-php/recaptcha: new package, a PHP client library for Google's reCAPTCHA.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-php/recaptcha/recaptcha-1.1.2.ebuild')
-rw-r--r-- | dev-php/recaptcha/recaptcha-1.1.2.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-php/recaptcha/recaptcha-1.1.2.ebuild b/dev-php/recaptcha/recaptcha-1.1.2.ebuild new file mode 100644 index 000000000000..67be64d1f732 --- /dev/null +++ b/dev-php/recaptcha/recaptcha-1.1.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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" + +DEPEND="test? ( dev-php/phpunit )" +RDEPEND="dev-lang/php" + +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." +} |