dev-php/recaptcha: new package (waiting for a real release).
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 16 Jun 2015 12:47:50 +0000 (08:47 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 16 Jun 2015 12:47:50 +0000 (08:47 -0400)
dev-php/recaptcha/Manifest [new file with mode: 0644]
dev-php/recaptcha/metadata.xml [new file with mode: 0644]
dev-php/recaptcha/recaptcha-20150616.ebuild [new file with mode: 0644]

diff --git a/dev-php/recaptcha/Manifest b/dev-php/recaptcha/Manifest
new file mode 100644 (file)
index 0000000..b789f70
--- /dev/null
@@ -0,0 +1,3 @@
+DIST e90c632d22c1f349fa22d60f69e272fd4bd244ae.zip 29701 SHA256 8438de9435a572b54e200d8797fb71f7e276326f91154a665951172648f45883 SHA512 244ab09730dcd5bf9f01c1791bd53fd641fbe2c3f92312a79bb0b957ec6d80c461e4a2a48a36cf8aa0c4387688ff70fc2f07fa62c0c2ec1d1e2232271d622522 WHIRLPOOL f91fba5dd024c5341e155a01abde23ee4f973507c16bee323e12d56f1495062139226fc584519c9ebce752b2dba0ec20db0f59e8d127a667b099257ebf99d718
+EBUILD recaptcha-20150616.ebuild 1054 SHA256 a6660e48e4e3d8b5aee55ff6e3f64e856fb22e7b1be02f9e47c9ee597a4d70b6 SHA512 88ee2ff33a22b7109cd2ce2f4bd962e690b893b3e568db5155e6660af70f84a3b0023059707e617d13fc45abe94bea6d369e4fd2cb8bf75d3748b8f68b1fc88c WHIRLPOOL e4562f8f099ff5f84648948c2ed5232a9891fb1c504393351e3074f1fbd5617b6e94162cfb32a91002cb05030031d6f950780af1eb36a8ed02722654c5e6b640
+MISC metadata.xml 257 SHA256 b2ea38cf9f14e02b57892529df293bfa70935192210ff330405036dad97397ff SHA512 573f7d725fcaeb5d77866772f239367a28061848a4577400e52081e9a0055c36ed7d49c249a85b1c69bb3a107ee7fb0601652a8c2026918caf4d6770f8a54db2 WHIRLPOOL e3500457fe8acc23828eaeee88d8e314e2c1251ee49fdca1ef65dda816fa89db27eefecc967c5572a4d0731bb451a7bfbca2e6f295442411a3a3912659bacbfc
diff --git a/dev-php/recaptcha/metadata.xml b/dev-php/recaptcha/metadata.xml
new file mode 100644 (file)
index 0000000..b04ba66
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <herd>php</herd>
+  <maintainer>
+    <email>mjo@gentoo.org</email>
+    <name>Michael Orlitzky</name>
+  </maintainer>
+</pkgmetadata>
diff --git a/dev-php/recaptcha/recaptcha-20150616.ebuild b/dev-php/recaptcha/recaptcha-20150616.ebuild
new file mode 100644 (file)
index 0000000..27b9b38
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+DESCRIPTION="PHP client library for Google's reCAPTCHA service"
+HOMEPAGE="https://github.com/google/recaptcha/"
+COMMIT="e90c632d22c1f349fa22d60f69e272fd4bd244ae"
+SRC_URI="https://github.com/google/recaptcha/archive/${COMMIT}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="app-arch/zip
+       test? ( >=dev-php/phpunit-4 )"
+RDEPEND="dev-lang/php"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+src_test(){
+       phpunit || die "test suite failed"
+}
+
+src_install(){
+       insinto "/usr/share/php/${PN}"
+       doins    src/autoload.php
+       doins -r src/ReCaptcha
+
+       dodoc    CONTRIBUTING.md README.md
+       dodoc -r examples
+}
+
+pkg_postinst(){
+       elog "${PN} has been installed in /usr/share/php/${PN}/."
+       elog
+       elog 'To use it in your scripts, include the autoload.php file'
+       elog "from the \"${PN}\" directory; for example,"
+       elog
+       elog "  require('${PN}/autoload.php');"
+       elog
+       elog 'After that, the ReCaptcha class will be available to you.'
+}