dev-php/pecl-zmq: New package wrt Bug 325351
authorBrian Evans <grknight@gentoo.org>
Fri, 7 Jul 2017 14:28:16 +0000 (10:28 -0400)
committerBrian Evans <grknight@gentoo.org>
Fri, 7 Jul 2017 14:39:33 +0000 (10:39 -0400)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-php/pecl-zmq/Manifest [new file with mode: 0644]
dev-php/pecl-zmq/metadata.xml [new file with mode: 0644]
dev-php/pecl-zmq/pecl-zmq-1.1.3.ebuild [new file with mode: 0644]
dev-php/pecl-zmq/pecl-zmq-9999.ebuild [new file with mode: 0644]

diff --git a/dev-php/pecl-zmq/Manifest b/dev-php/pecl-zmq/Manifest
new file mode 100644 (file)
index 0000000..65b6c63
--- /dev/null
@@ -0,0 +1 @@
+DIST zmq-1.1.3.tgz 82397 SHA256 c492375818bd51b355352798fb94f04d6828c6aeda41ba813849624af74144ce SHA512 0f03016e315a6c6a1e1d6eca1e20564834d2a924cef06af1b38693933f1e5a094c37e9c432705a64f61d95e82655f61358fc7783e7a6f06c7dd9ad84fc6f7bbc WHIRLPOOL 3bfab5d373e52686c236a48d57280a99d7e87e018722003787a8d458a8a503f536cd89bf7cf11d8c6fb5db910d9fd45168caba6cc15032ecda9db08a7f57a95b
diff --git a/dev-php/pecl-zmq/metadata.xml b/dev-php/pecl-zmq/metadata.xml
new file mode 100644 (file)
index 0000000..2a821e9
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>php-bugs@gentoo.org</email>
+               <name>PHP</name>
+       </maintainer>
+       <longdescription lang="en">
+       </longdescription>
+       <use>
+               <flag name="czmq">Use the czmq high level bindings</flag>
+       </use>
+</pkgmetadata>
diff --git a/dev-php/pecl-zmq/pecl-zmq-1.1.3.ebuild b/dev-php/pecl-zmq/pecl-zmq-1.1.3.ebuild
new file mode 100644 (file)
index 0000000..13dbe35
--- /dev/null
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_PHP="php5-6 php7-0 php7-1"
+
+inherit php-ext-pecl-r3
+
+KEYWORDS="~amd64 ~x86"
+
+DESCRIPTION="PHP Bindings for ZeroMQ messaging"
+LICENSE="BSD"
+SLOT="0"
+IUSE="czmq"
+
+RDEPEND="net-libs/zeromq czmq? ( <net-libs/czmq-3 )"
+DEPEND="${RDEPEND} virtual/pkgconfig"
+
+src_configure() {
+       local PHP_EXT_ECONF_ARGS=( $(use_with czmq) )
+       php-ext-source-r3_src_configure
+}
diff --git a/dev-php/pecl-zmq/pecl-zmq-9999.ebuild b/dev-php/pecl-zmq/pecl-zmq-9999.ebuild
new file mode 100644 (file)
index 0000000..9e61585
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_PHP="php5-6 php7-0 php7-1"
+
+inherit php-ext-pecl-r3 git-r3
+
+KEYWORDS=""
+
+DESCRIPTION="PHP Bindings for ZeroMQ messaging"
+LICENSE="BSD"
+SLOT="0"
+IUSE="czmq"
+
+RDEPEND="net-libs/zeromq czmq? ( <net-libs/czmq-3 )"
+DEPEND="${RDEPEND} virtual/pkgconfig"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/mkoppanen/php-zmq.git"
+EGIT_CHECKOUT_DIR="${PHP_EXT_S}"
+
+src_unpack() {
+       git-r3_src_unpack
+       php-ext-source-r3_src_unpack
+}
+
+src_configure() {
+       local PHP_EXT_ECONF_ARGS=( $(use_with czmq) )
+       php-ext-source-r3_src_configure
+}