From 97fe5104e4148393bda46e846e68e693e59d2c3a Mon Sep 17 00:00:00 2001
From: Athanasios Karmas <karmas@athenarc.gr>
Date: Fri, 16 Jul 2021 09:42:54 +0000
Subject: [PATCH] Add new file

---
 packages/visionary-nux/package.py | 60 +++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 packages/visionary-nux/package.py

diff --git a/packages/visionary-nux/package.py b/packages/visionary-nux/package.py
new file mode 100644
index 00000000..15a6a87d
--- /dev/null
+++ b/packages/visionary-nux/package.py
@@ -0,0 +1,60 @@
+##############################################################################
+# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/llnl/spack
+# Please also see the LICENSE file for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+
+
+class VisionaryNux(Package):
+    """Visionary Meta Package"""
+
+    homepage = ''
+    # some random tarball, to make `spack fetch --dependencies visionary-defaults` work
+    url = 'https://github.com/electronicvisions/spack/archive/v0.8.tar.gz'
+
+    # This is only a dummy tarball (see difference between version numbers)
+    # TODO: as soon as a MetaPackage-concept has been merged, please update this package
+    version('1.0', '372ce038842f20bf0ae02de50c26e85d', url='https://github.com/electronicvisions/spack/archive/v0.8.tar.gz')
+
+    variant('dev', default=True)
+
+    depends_on('visionary-dev-tools', when='+dev')
+
+    depends_on('gettext')
+    depends_on('zlib')
+
+    # was bison 3.0.4 in the past
+    depends_on('bison')
+    depends_on('flex')
+    depends_on('m4')
+    depends_on('texinfo')
+    depends_on('wget')
+
+    conflicts('flex', when='@2.6.3', msg='Binutils 2.25 for Nux doesn\'t build with flex 2.6.3.')
+
+    def install(self, spec, prefix):
+        mkdirp(prefix.etc)
+        # store a copy of this package.
+        install(__file__, join_path(prefix.etc, 'visionary-nux.py'))
+
+        # we could create some filesystem view here?
-- 
GitLab