libusb: disable udev (#19713)
* libusb: disable udev spack has no libudev/systemd package currently * convert to AutotoolsPackage * remove spack import
This commit is contained in:
parent
ddd2aa0ffc
commit
efb26bb14f
@ -3,10 +3,8 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
from spack import *
|
|
||||||
|
|
||||||
|
class Libusb(AutotoolsPackage):
|
||||||
class Libusb(Package):
|
|
||||||
"""Library for USB device access."""
|
"""Library for USB device access."""
|
||||||
|
|
||||||
homepage = "https://libusb.info/"
|
homepage = "https://libusb.info/"
|
||||||
@ -22,14 +20,13 @@ class Libusb(Package):
|
|||||||
depends_on('automake', type='build', when='@master')
|
depends_on('automake', type='build', when='@master')
|
||||||
depends_on('libtool', type='build', when='@master')
|
depends_on('libtool', type='build', when='@master')
|
||||||
|
|
||||||
phases = ['autogen', 'install']
|
@when('@master')
|
||||||
|
def patch(self):
|
||||||
|
mkdir('m4')
|
||||||
|
|
||||||
def autogen(self, spec, prefix):
|
def configure_args(self):
|
||||||
if self.spec.satisfies('@master'):
|
args = []
|
||||||
autogen = Executable('./autogen.sh')
|
args.append('--disable-dependency-tracking')
|
||||||
autogen()
|
# no libudev/systemd package currently in spack
|
||||||
|
args.append('--disable-udev')
|
||||||
def install(self, spec, prefix):
|
return args
|
||||||
configure('--disable-dependency-tracking',
|
|
||||||
'--prefix=%s' % self.spec.prefix)
|
|
||||||
make('install')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user