diff options
author | Glenn Horton-Smith <glenn.hortonsmith@gmail.com> | 2022-06-29 15:36:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 13:36:48 -0700 |
commit | e6678e5f12ec5c7148cf2872b9f4c6a070f1a067 (patch) | |
tree | e6500c7133982aba2d35bc58152a645248c852b3 /var/spack/repos/builtin/packages/epics-pcas/package.py | |
parent | b200c577392911436656799f1c9b0a5c9241ecaa (diff) | |
download | spack-e6678e5f12ec5c7148cf2872b9f4c6a070f1a067.tar.gz spack-e6678e5f12ec5c7148cf2872b9f4c6a070f1a067.tar.bz2 spack-e6678e5f12ec5c7148cf2872b9f4c6a070f1a067.tar.xz spack-e6678e5f12ec5c7148cf2872b9f4c6a070f1a067.zip |
New packages: EPICS (Experimental Physics and Industrial Control System) (#28270)
Diffstat (limited to 'var/spack/repos/builtin/packages/epics-pcas/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/epics-pcas/package.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/epics-pcas/package.py b/var/spack/repos/builtin/packages/epics-pcas/package.py new file mode 100644 index 0000000000..7fdfa1dcac --- /dev/null +++ b/var/spack/repos/builtin/packages/epics-pcas/package.py @@ -0,0 +1,32 @@ +# 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 EpicsPcas(MakefilePackage): + """EPICS Portable Channel Access Server and Generic Data Descriptor + C++ libraries, split off from EPICS Base 3.16.1 as a separate module + for EPICS 7.""" + + homepage = "https://github.com/epics-modules/pcas" + url = "https://github.com/epics-modules/pcas/archive/refs/tags/v4.13.3.tar.gz" + + maintainers = ['glenn-horton-smith'] + + version('4.13.3', sha256='5004e39339c8e592fcb9b4275c84143635c6e688c0fbe01f17dafe19850398a0') + + depends_on('epics-base', type=('build', 'link', 'run')) + + @property + def install_targets(self): + return ['INSTALL_LOCATION={0}'.format(self.prefix), 'install'] + + def edit(self, spec, prefix): + with open('configure/RELEASE.local', 'w') as release_file: + release_file.write('EPICS_BASE = ' + env['EPICS_BASE'] + '\n') + + def setup_run_environment(self, envmod): + envmod.prepend_path('PATH', join_path(self.prefix.bin, env['EPICS_HOST_ARCH'])) |