diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/epics-base/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/epics-base/package.py | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/var/spack/repos/builtin/packages/epics-base/package.py b/var/spack/repos/builtin/packages/epics-base/package.py index fbbfba3b74..d9397b0ce6 100644 --- a/var/spack/repos/builtin/packages/epics-base/package.py +++ b/var/spack/repos/builtin/packages/epics-base/package.py @@ -3,45 +3,44 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) -from spack import * +from spack.package import * class EpicsBase(MakefilePackage): """This is the main core of EPICS, the Experimental Physics and Industrial -Control System, comprising the build system and tools, common and OS-interface -libraries, network protocol client and server libraries, static and run-time -database access routines, the database processing code, and standard record, -device and driver support.""" + Control System, comprising the build system and tools, common and OS-interface + libraries, network protocol client and server libraries, static and run-time + database access routines, the database processing code, and standard record, + device and driver support.""" homepage = "https://epics-controls.org" - url = "https://epics-controls.org/download/base/base-7.0.6.1.tar.gz" + url = "https://epics-controls.org/download/base/base-7.0.6.1.tar.gz" - maintainers = ['glenn-horton-smith'] + maintainers = ["glenn-horton-smith"] - version('7.0.6.1', sha256='8ff318f25e2b70df466f933636a2da85e4b0c841504b9e89857652a4786b6387') + version("7.0.6.1", sha256="8ff318f25e2b70df466f933636a2da85e4b0c841504b9e89857652a4786b6387") - depends_on('readline') - depends_on('perl', type=('build', 'run')) + depends_on("readline") + depends_on("perl", type=("build", "run")) @property def install_targets(self): - return ['INSTALL_LOCATION={0}'.format(self.prefix), 'install'] + return ["INSTALL_LOCATION={0}".format(self.prefix), "install"] def get_epics_host_arch(self): - perl = which('perl', required=True) - return perl('%s/perl/EpicsHostArch.pl' % self.prefix.lib, - output=str, error=str).strip() + perl = which("perl", required=True) + return perl("%s/perl/EpicsHostArch.pl" % self.prefix.lib, output=str, error=str).strip() def setup_build_environment(self, env): - env.set('EPICS_BASE', self.prefix) + env.set("EPICS_BASE", self.prefix) def setup_dependent_build_environment(self, env, dependent_spec): epics_host_arch = self.get_epics_host_arch() - env.set('EPICS_HOST_ARCH', epics_host_arch) - env.set('EPICS_BASE', self.prefix) + env.set("EPICS_HOST_ARCH", epics_host_arch) + env.set("EPICS_BASE", self.prefix) def setup_run_environment(self, env): epics_host_arch = self.get_epics_host_arch() - env.set('EPICS_HOST_ARCH', epics_host_arch) - env.set('EPICS_BASE', self.prefix) - env.prepend_path('PATH', join_path(self.prefix.bin, epics_host_arch)) + env.set("EPICS_HOST_ARCH", epics_host_arch) + env.set("EPICS_BASE", self.prefix) + env.prepend_path("PATH", join_path(self.prefix.bin, epics_host_arch)) |