From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3D6781384B4 for ; Thu, 12 Nov 2015 20:04:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D40921C05D; Thu, 12 Nov 2015 20:04:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 159FB21C05D for ; Thu, 12 Nov 2015 20:04:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A691340766 for ; Thu, 12 Nov 2015 20:04:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2CE361E4 for ; Thu, 12 Nov 2015 20:04:52 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1447358632.2c26177df6dab4482ac8f772ffa6a8d1067a6e02.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/recaptcha/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-php/recaptcha/Manifest dev-php/recaptcha/metadata.xml dev-php/recaptcha/recaptcha-1.1.2.ebuild X-VCS-Directories: dev-php/recaptcha/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 2c26177df6dab4482ac8f772ffa6a8d1067a6e02 X-VCS-Branch: master Date: Thu, 12 Nov 2015 20:04:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: aedde4f0-978c-441d-8f04-389d720fb6fd X-Archives-Hash: 22c25a62075343435f3ec56dce556db7 commit: 2c26177df6dab4482ac8f772ffa6a8d1067a6e02 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Nov 12 20:03:29 2015 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Thu Nov 12 20:03:52 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c26177d dev-php/recaptcha: new package, a PHP client library for Google's reCAPTCHA. Package-Manager: portage-2.2.20.1 dev-php/recaptcha/Manifest | 1 + dev-php/recaptcha/metadata.xml | 8 ++++++++ dev-php/recaptcha/recaptcha-1.1.2.ebuild | 35 ++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) diff --git a/dev-php/recaptcha/Manifest b/dev-php/recaptcha/Manifest new file mode 100644 index 0000000..476cd99 --- /dev/null +++ b/dev-php/recaptcha/Manifest @@ -0,0 +1 @@ +DIST recaptcha-1.1.2.tar.gz 12624 SHA256 1a319620ee05706cc7c8cb6a6a2e83271b3f74788eda26c26ccb0ae1fa2e1612 SHA512 e9d24aec9a51e14a2122e072adf35b96acb490a6f255abc0835bbc9bc2946bc0aceb92ba270344c83743692fc4a673271ba7e6fa7f32f62132c960a1a5cc4ab5 WHIRLPOOL e090ae43fe6702d97e3667aab8d0e3c68d3fba13838b0e7f13be86f2304949cf8027e49819f6c1f09345b923106e6f6ba2ee9a72ea3ea77d4935a56e66117c84 diff --git a/dev-php/recaptcha/metadata.xml b/dev-php/recaptcha/metadata.xml new file mode 100644 index 0000000..df7fdbe --- /dev/null +++ b/dev-php/recaptcha/metadata.xml @@ -0,0 +1,8 @@ + + + + + mjo@gentoo.org + Michael Orlitzky + + 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 0000000..67be64d --- /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." +}