ZeroMQ: 4.2.2 & develop (#4785)

The 4.X branches are now on the homepage, so we take the GitHub release
artifact (careful: take their upload, not the automatic tarball).

Adds a development version of ZeroMQ.
Requires a autogen run, as for all their unreleased versions,
and the pkg-config fix in #4736
This commit is contained in:
Axel Huebl 2017-07-17 15:40:48 +02:00 committed by Adam J. Stewart
parent febf41e0e2
commit c110d03f95

View File

@ -30,6 +30,10 @@ class Zeromq(AutotoolsPackage):
homepage = "http://zguide.zeromq.org/"
url = "http://download.zeromq.org/zeromq-4.1.2.tar.gz"
version('develop', branch='master',
git='https://github.com/zeromq/libzmq.git')
version('4.2.2', '52499909b29604c1e47a86f1cb6a9115',
url='https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz')
version('4.1.4', 'a611ecc93fffeb6d058c0e6edf4ad4fb')
version('4.1.2', '159c0c56a895472f02668e692d122685')
version('4.1.1', '0a4b44aa085644f25c177f79dc13f253')
@ -40,6 +44,16 @@ class Zeromq(AutotoolsPackage):
depends_on("libsodium")
depends_on("libsodium@:1.0.3", when='@:4.1.2')
depends_on('autoconf', type='build', when='@develop')
depends_on('automake', type='build', when='@develop')
depends_on('libtool', type='build', when='@develop')
depends_on('pkg-config', type='build', when='@develop')
@when('@develop')
def autoreconf(self, spec, prefix):
bash = which('bash')
bash('./autogen.sh')
def configure_args(self):
config_args = ['--with-libsodium']
if 'clang' in self.compiler.cc: