summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAnthony Scemama <scemama@irsamc.ups-tlse.fr>2020-02-20 22:34:25 +0100
committerGitHub <noreply@github.com>2020-02-20 15:34:25 -0600
commit01bda126924564a399c7d529eb1e94df71ba9e8e (patch)
tree7fce5a59e7904bf11d65269838364686ff44b235 /var
parentc5134ff4f2a2687b48fb8345bb07da4ad2585d11 (diff)
downloadspack-01bda126924564a399c7d529eb1e94df71ba9e8e.tar.gz
spack-01bda126924564a399c7d529eb1e94df71ba9e8e.tar.bz2
spack-01bda126924564a399c7d529eb1e94df71ba9e8e.tar.xz
spack-01bda126924564a399c7d529eb1e94df71ba9e8e.zip
libf77zmq (#15125)
* libf77zmq * Cleaning mkdirp * Removed install function * Renamed to f77-zmq * Fixed Flake8 * Fixed Flake8
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/f77-zmq/package.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/f77-zmq/package.py b/var/spack/repos/builtin/packages/f77-zmq/package.py
new file mode 100644
index 0000000000..c78f3f4110
--- /dev/null
+++ b/var/spack/repos/builtin/packages/f77-zmq/package.py
@@ -0,0 +1,38 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+import os
+from spack import *
+
+
+class F77Zmq(MakefilePackage):
+ """Fortran binding for the ZeroMQ communication library"""
+
+ homepage = "http://zguide.zeromq.org/"
+ url = "https://github.com/zeromq/f77_zmq/archive/4.3.1.tar.gz"
+
+ maintainers = ['scemama']
+
+ version('4.3.1', sha256='a15d72d93022d3e095528d2808c7767cece974a2dc0e2dd95e4c122f60fcf0a8')
+
+ depends_on('libzmq')
+ depends_on('python', type='build')
+
+ def setup_build_environment(self, env):
+ env.append_flags('CFLAGS', '-O3')
+ env.append_flags('CFLAGS', '-g')
+
+ def edit(self, spec, prefix):
+ cflags = os.environ.get('CFLAGS')
+ makefile = FileFilter('Makefile')
+ makefile.filter('CC=.*',
+ 'CC={0} {1}'.format(spack_cc,
+ self.compiler.pic_flag))
+ makefile.filter('CFLAGS=.*', 'CFLAGS={0}'.format(cflags))
+ makefile.filter('PREFIX=.*', 'PREFIX={0}'.format(self.prefix))
+ p = self.spec['libzmq'].prefix
+ os.environ['ZMQ_H'] = "{0}/include/zmq.h".format(p)
+ mkdirp(prefix.include)
+ mkdirp(prefix.lib)