summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorOlivier Cessenat <cessenat@gmail.com>2021-09-06 16:17:22 +0200
committerGitHub <noreply@github.com>2021-09-06 16:17:22 +0200
commitc424b86a6492aa313596133e97f36dc6fe6bf42b (patch)
tree64f44999a6b223993598e7bf5298603831dd50a3 /var
parentca50c9146959809b52fa4da4a833db0bb5ee4b0a (diff)
downloadspack-c424b86a6492aa313596133e97f36dc6fe6bf42b.tar.gz
spack-c424b86a6492aa313596133e97f36dc6fe6bf42b.tar.bz2
spack-c424b86a6492aa313596133e97f36dc6fe6bf42b.tar.xz
spack-c424b86a6492aa313596133e97f36dc6fe6bf42b.zip
gxsview: new package, an MCNP viewer (#25637)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gxsview/package.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gxsview/package.py b/var/spack/repos/builtin/packages/gxsview/package.py
new file mode 100644
index 0000000000..8d910f5086
--- /dev/null
+++ b/var/spack/repos/builtin/packages/gxsview/package.py
@@ -0,0 +1,46 @@
+# Copyright 2013-2021 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 Gxsview(QMakePackage):
+ """Gxsview is a stand-alone multi-platform integrated tool to visualize input
+ data of Monte Carlo radiation transport calculation code, MCNP5, and PHITS3.
+
+ It consists of 3D, 2D, cross-section, and input file viewers.
+ Also, this software is capable of exporting in 2D(png, jpg, and xpm)
+ or 3D(stl, vtk, vtp and ply) formats."""
+
+ homepage = "https://www.nmri.go.jp/study/research_organization/risk/gxsview/en/index.html"
+ url = "https://www.nmri.go.jp/study/research_organization/risk/gxsview/download/gxsview-2021.07.01-src.zip"
+
+ # Support email for questions ohnishi@m.mpat.go.jp
+ maintainers = ['cessenat']
+
+ version('2021.07.01', '000f9b4721d4ee03b02730dbbfe83947f96a60a183342b127f0b6b63b03e8f9a')
+
+ depends_on('fontconfig')
+ depends_on('qt@5.14.0:+opengl+gui')
+ depends_on('vtk@8.0:+qt+opengl2') # +mpi+python are optional
+ conflicts('%gcc@:7.2.0', msg='Requires C++17 compiler support') # need C++17 standard
+
+ build_directory = 'gui'
+
+ def qmake_args(self):
+ vtk_suffix = self.spec['vtk'].version.up_to(2)
+ vtk_lib_dir = self.spec['vtk'].prefix.lib
+ vtk_include_dir = join_path(self.spec['vtk'].prefix.include,
+ 'vtk-{0}'.format(vtk_suffix))
+ args = [
+ 'VTK_LIB_DIR={0}'.format(vtk_lib_dir),
+ 'VTK_INC_DIR={0}'.format(vtk_include_dir),
+ 'VTK_MAJOR_VER={0}'.format(str(vtk_suffix)),
+ ]
+ return args
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.bin)
+ install(join_path('gui', 'gxsview'), prefix.bin)