diff options
author | Andrew W Elble <aweits@rit.edu> | 2020-11-30 02:54:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 08:54:55 +0100 |
commit | 8130ac3acb2270c6d83f8cc495b99c5738a692bb (patch) | |
tree | 4f074617b405fe5390d8b313c27a61261172827b /var | |
parent | 1c2424ac29fa9b2984070613e9630792614bae81 (diff) | |
download | spack-8130ac3acb2270c6d83f8cc495b99c5738a692bb.tar.gz spack-8130ac3acb2270c6d83f8cc495b99c5738a692bb.tar.bz2 spack-8130ac3acb2270c6d83f8cc495b99c5738a692bb.tar.xz spack-8130ac3acb2270c6d83f8cc495b99c5738a692bb.zip |
gnuradio: add gui support (#20073)
Diffstat (limited to 'var')
4 files changed, 90 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/adwaita-icon-theme/package.py b/var/spack/repos/builtin/packages/adwaita-icon-theme/package.py new file mode 100644 index 0000000000..615c9185cb --- /dev/null +++ b/var/spack/repos/builtin/packages/adwaita-icon-theme/package.py @@ -0,0 +1,27 @@ +# 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) + +from spack import * + + +class AdwaitaIconTheme(AutotoolsPackage): + """Mostly private use system icons.""" + + homepage = "https://gitlab.gnome.org/GNOME/adwaita-icon-theme" + url = "https://ftp.gnome.org/pub/gnome/sources/adwaita-icon-theme/3.38/adwaita-icon-theme-3.38.0.tar.xz" + + version('3.38.0', sha256='6683a1aaf2430ccd9ea638dd4bfe1002bc92b412050c3dba20e480f979faaf97') + + def setup_dependent_build_environment(self, env, dependent_spec): + 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) + + def setup_build_environment(self, env): + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) + + def setup_run_environment(self, env): + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) diff --git a/var/spack/repos/builtin/packages/gnuradio/package.py b/var/spack/repos/builtin/packages/gnuradio/package.py index dca705ef6c..e6d19d7a7d 100644 --- a/var/spack/repos/builtin/packages/gnuradio/package.py +++ b/var/spack/repos/builtin/packages/gnuradio/package.py @@ -19,6 +19,9 @@ class Gnuradio(CMakePackage): maintainers = ['aweits'] version('3.8.2.0', sha256='ddda12b55e3e1d925eefb24afb9d604bca7c9bbe0a431707aa48a2eed53eec2f') + + 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')) @@ -34,7 +37,16 @@ class Gnuradio(CMakePackage): depends_on('gsl@1.10:') depends_on('gmp') depends_on('fftw') - depends_on('libzmq') + 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): @@ -43,3 +55,15 @@ class Gnuradio(CMakePackage): 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) + + def setup_dependent_run_environment(self, env, dependent_spec): + env.prepend_path('XDG_DATA_DIRS', self.prefix.share) + + def setup_build_environment(self, env): + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) + + def setup_run_environment(self, env): + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) diff --git a/var/spack/repos/builtin/packages/gsettings-desktop-schemas/package.py b/var/spack/repos/builtin/packages/gsettings-desktop-schemas/package.py index 908aa73d57..90b5e2b47a 100644 --- a/var/spack/repos/builtin/packages/gsettings-desktop-schemas/package.py +++ b/var/spack/repos/builtin/packages/gsettings-desktop-schemas/package.py @@ -20,3 +20,15 @@ class GsettingsDesktopSchemas(MesonPackage): depends_on('glib') depends_on('gobject-introspection', type='build') depends_on('gettext', type='build') + + def setup_dependent_build_environment(self, env, dependent_spec): + 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) + + def setup_build_environment(self, env): + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) + + def setup_run_environment(self, env): + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) diff --git a/var/spack/repos/builtin/packages/hicolor-icon-theme/package.py b/var/spack/repos/builtin/packages/hicolor-icon-theme/package.py new file mode 100644 index 0000000000..0f6490a307 --- /dev/null +++ b/var/spack/repos/builtin/packages/hicolor-icon-theme/package.py @@ -0,0 +1,26 @@ +# 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) + + +class HicolorIconTheme(AutotoolsPackage): + """icon-theme contains the standard also references the default + icon theme called hicolor.""" + + homepage = "https://www.freedesktop.org/wiki/Software/icon-theme/" + url = "http://icon-theme.freedesktop.org/releases/hicolor-icon-theme-0.17.tar.xz" + + version('0.17', sha256='317484352271d18cbbcfac3868eab798d67fff1b8402e740baa6ff41d588a9d8') + + def setup_dependent_build_environment(self, env, dependent_spec): + 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) + + def setup_build_environment(self, env): + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) + + def setup_run_environment(self, env): + env.prepend_path("XDG_DATA_DIRS", self.prefix.share) |