summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDr. Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com>2020-06-28 20:28:42 +0200
committerGitHub <noreply@github.com>2020-06-28 13:28:42 -0500
commit7aac150617b16b9578c4d8f02f8eac313d8c3196 (patch)
treed698aa3ecf9c0d5c283ef2285ce3bedc8c2cf8a7 /var
parent68633fac5c0bb699eca4599175822dba9ebc60e0 (diff)
downloadspack-7aac150617b16b9578c4d8f02f8eac313d8c3196.tar.gz
spack-7aac150617b16b9578c4d8f02f8eac313d8c3196.tar.bz2
spack-7aac150617b16b9578c4d8f02f8eac313d8c3196.tar.xz
spack-7aac150617b16b9578c4d8f02f8eac313d8c3196.zip
vmc: New Package (#17282)
"""The Virtual Monte Carlo (VMC) library"""
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/vmc/dict_fixes_101.patch56
-rw-r--r--var/spack/repos/builtin/packages/vmc/package.py23
2 files changed, 79 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/vmc/dict_fixes_101.patch b/var/spack/repos/builtin/packages/vmc/dict_fixes_101.patch
new file mode 100644
index 0000000000..bff7e7db48
--- /dev/null
+++ b/var/spack/repos/builtin/packages/vmc/dict_fixes_101.patch
@@ -0,0 +1,56 @@
+--- spack-src/source/CMakeLists.txt
++++ spack-src/source/CMakeLists.txt
+@@ -45,24 +45,24 @@
+ #
+ ROOT_GENERATE_DICTIONARY(
+ ${library_name}_dict
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TGeoMCBranchArrayContainer.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TGeoMCGeometry.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TMCAutoLock.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TMCManager.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TMCManagerStack.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TMCOptical.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TMCParticleStatus.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TMCParticleType.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TMCProcess.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TMCVerbose.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TMCtls.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TVirtualMC.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TVirtualMCApplication.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TVirtualMCGeometry.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TVirtualMCSensitiveDetector.h
+- ${CMAKE_CURRENT_SOURCE_DIR}/include/TVirtualMCStack.h
++ TGeoMCBranchArrayContainer.h
++ TGeoMCGeometry.h
++ TMCAutoLock.h
++ TMCManager.h
++ TMCManagerStack.h
++ TMCOptical.h
++ TMCParticleStatus.h
++ TMCParticleType.h
++ TMCProcess.h
++ TMCVerbose.h
++ TMCtls.h
++ TVirtualMC.h
++ TVirtualMCApplication.h
++ TVirtualMCGeometry.h
++ TVirtualMCSensitiveDetector.h
++ TVirtualMCStack.h
+ MODULE ${library_name}
+- LINKDEF ${CMAKE_CURRENT_SOURCE_DIR}/include/LinkDef.h)
++ LINKDEF include/LinkDef.h)
+
+ # Files produced by the dictionary generation
+ SET(root_dict
+--- spack-src/source/CMakeLists.txt
++++ spack-src/source/CMakeLists.txt
+@@ -63,6 +63,9 @@
+ TVirtualMCSensitiveDetector.h
+ TVirtualMCStack.h
+ MODULE ${library_name}
++ OPTIONS "-I${CMAKE_INSTALL_PREFIX}/include/${base_name}"
++ -excludePath "${CMAKE_CURRENT_BINARY_DIR}"
++ -excludePath "${PROJECT_SOURCE_DIR}/source"
+ LINKDEF include/LinkDef.h)
+
+ # Files produced by the dictionary generation
diff --git a/var/spack/repos/builtin/packages/vmc/package.py b/var/spack/repos/builtin/packages/vmc/package.py
new file mode 100644
index 0000000000..319f2c2076
--- /dev/null
+++ b/var/spack/repos/builtin/packages/vmc/package.py
@@ -0,0 +1,23 @@
+# 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 Vmc(CMakePackage):
+ """The Virtual Monte Carlo (VMC) library"""
+
+ homepage = "https://github.com/vmc-project/vmc"
+ git = 'https://github.com/vmc-project/vmc.git'
+ url = "https://github.com/vmc-project/vmc/archive/v1-0-p2.tar.gz"
+
+ maintainers = ['ChristianTackeGSI']
+
+ version('1-0-p2', sha256='46b4c82b0b7516502e88db920732fc78f06f0393ac740a17816f2eb53f80e75e')
+ version('1-0-p1', sha256='4a20515f7de426797955cec4a271958b07afbaa330770eeefb5805c882ad9749')
+
+ patch('dict_fixes_101.patch', when='@1-0-p1')
+
+ depends_on('root@6.18.04: ~vmc')