diff options
author | Isaac Whitfield <iw@whitfin.io> | 2019-02-26 18:52:47 -0800 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-02-26 20:52:47 -0600 |
commit | 5efff5d2fcb784803576ee20c817c7aa05b94f4e (patch) | |
tree | 66e399e324065e3a8211b621595e878a51cbd7c6 /var | |
parent | 938939b7e4a4ed35e6db817126048487e68491e2 (diff) | |
download | spack-5efff5d2fcb784803576ee20c817c7aa05b94f4e.tar.gz spack-5efff5d2fcb784803576ee20c817c7aa05b94f4e.tar.bz2 spack-5efff5d2fcb784803576ee20c817c7aa05b94f4e.tar.xz spack-5efff5d2fcb784803576ee20c817c7aa05b94f4e.zip |
new package: libusb (#10682)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libusb/package.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libusb/package.py b/var/spack/repos/builtin/packages/libusb/package.py new file mode 100644 index 0000000000..51bd4dc780 --- /dev/null +++ b/var/spack/repos/builtin/packages/libusb/package.py @@ -0,0 +1,35 @@ +# Copyright 2013-2019 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 Libusb(Package): + """Library for USB device access.""" + + homepage = "https://libusb.info/" + url = "https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.tar.bz2" + git = "https://github.com/libusb/libusb" + + version('master', branch='master') + version('1.0.22', sha256='75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157') + version('1.0.21', sha256='7dce9cce9a81194b7065ee912bcd55eeffebab694ea403ffb91b67db66b1824b') + version('1.0.20', sha256='cb057190ba0a961768224e4dc6883104c6f945b2bf2ef90d7da39e7c1834f7ff') + + depends_on('autoconf', type='build', when='@master') + depends_on('automake', type='build', when='@master') + depends_on('libtool', type='build', when='@master') + + phases = ['autogen', 'install'] + + def autogen(self, spec, prefix): + if self.spec.satisfies('@master'): + autogen = Executable('./autogen.sh') + autogen() + + def install(self, spec, prefix): + configure('--disable-dependency-tracking', + '--prefix=%s' % self.spec.prefix) + make('install') |