diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/gnuradio/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/gnuradio/package.py | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/var/spack/repos/builtin/packages/gnuradio/package.py b/var/spack/repos/builtin/packages/gnuradio/package.py index b11ea0e4d2..453e88b3b0 100644 --- a/var/spack/repos/builtin/packages/gnuradio/package.py +++ b/var/spack/repos/builtin/packages/gnuradio/package.py @@ -18,58 +18,57 @@ class Gnuradio(CMakePackage): communications research and real-world radio systems.""" homepage = "https://www.gnuradio.org/" - url = "https://github.com/gnuradio/gnuradio/archive/v3.8.2.0.tar.gz" + url = "https://github.com/gnuradio/gnuradio/archive/v3.8.2.0.tar.gz" - maintainers = ['aweits'] + maintainers = ["aweits"] - version('3.8.2.0', sha256='ddda12b55e3e1d925eefb24afb9d604bca7c9bbe0a431707aa48a2eed53eec2f') + version("3.8.2.0", sha256="ddda12b55e3e1d925eefb24afb9d604bca7c9bbe0a431707aa48a2eed53eec2f") - variant('gui', default=False, description='Build with gui support') + variant("gui", default=False, description="Build with gui support") - depends_on('cmake@3.5.1:', type='build') - depends_on('volk') - depends_on('python@3.6.5:', type=('build', 'run')) - depends_on('py-six', type=('build', 'run')) - depends_on('swig@3.0.8:', type='build') - depends_on('log4cpp@1.0:') + depends_on("cmake@3.5.1:", type="build") + depends_on("volk") + depends_on("python@3.6.5:", type=("build", "run")) + depends_on("py-six", type=("build", "run")) + depends_on("swig@3.0.8:", type="build") + depends_on("log4cpp@1.0:") # https://github.com/gnuradio/gnuradio/pull/3566 - depends_on('boost@1.53:1.72') + depends_on("boost@1.53:1.72") # TODO: replace this with an explicit list of components of Boost, # for instance depends_on('boost +filesystem') # See https://github.com/spack/spack/pull/22303 for reference depends_on(Boost.with_default_variants) - depends_on('py-numpy', type=('build', 'run')) - depends_on('py-click', type=('build', 'run')) - depends_on('py-pyyaml', type=('build', 'run')) - depends_on('py-click-plugins', type=('build', 'run')) - depends_on('gsl@1.10:') - depends_on('gmp') - depends_on('fftw') - depends_on('cppzmq') - - depends_on('cairo+X+ft+fc+pdf+gobject', when='+gui') - depends_on('hicolor-icon-theme', type=('build', 'run'), when='+gui') - depends_on('adwaita-icon-theme', type=('build', 'run'), when='+gui') - depends_on('gsettings-desktop-schemas', type=('build', 'run'), when='+gui') - depends_on('py-pygobject', type=('build', 'run'), when='+gui') - depends_on('py-pyqt5', type=('build', 'run'), when='+gui') - depends_on('qwt', when='+gui') - - extends('python') + depends_on("py-numpy", type=("build", "run")) + depends_on("py-click", type=("build", "run")) + depends_on("py-pyyaml", type=("build", "run")) + depends_on("py-click-plugins", type=("build", "run")) + depends_on("gsl@1.10:") + depends_on("gmp") + depends_on("fftw") + depends_on("cppzmq") + + depends_on("cairo+X+ft+fc+pdf+gobject", when="+gui") + depends_on("hicolor-icon-theme", type=("build", "run"), when="+gui") + depends_on("adwaita-icon-theme", type=("build", "run"), when="+gui") + depends_on("gsettings-desktop-schemas", type=("build", "run"), when="+gui") + depends_on("py-pygobject", type=("build", "run"), when="+gui") + depends_on("py-pyqt5", type=("build", "run"), when="+gui") + depends_on("qwt", when="+gui") + + extends("python") def cmake_args(self): args = [] - args.append('-DPYTHON_EXECUTABLE={0}'.format( - self.spec['python'].command.path)) - args.append('-DENABLE_INTERNAL_VOLK=OFF') + args.append("-DPYTHON_EXECUTABLE={0}".format(self.spec["python"].command.path)) + args.append("-DENABLE_INTERNAL_VOLK=OFF") return args def setup_dependent_build_environment(self, env, dependent_spec): - env.prepend_path('XDG_DATA_DIRS', self.prefix.share) + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) def setup_dependent_run_environment(self, env, dependent_spec): - env.prepend_path('XDG_DATA_DIRS', self.prefix.share) + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) def setup_build_environment(self, env): env.prepend_path("XDG_DATA_DIRS", self.prefix.share) |