dyninst package use spec.satisfies instead of @when
This commit is contained in:
parent
8b94937609
commit
0074ecd6fa
@ -50,7 +50,13 @@ class Dyninst(Package):
|
|||||||
depends_on('cmake', type='build')
|
depends_on('cmake', type='build')
|
||||||
|
|
||||||
# new version uses cmake
|
# new version uses cmake
|
||||||
def install(self, spec, prefix): # NOQA: ignore=F811
|
def install(self, spec, prefix):
|
||||||
|
if spec.satisfies('@:8.1'):
|
||||||
|
configure("--prefix=" + prefix)
|
||||||
|
make()
|
||||||
|
make("install")
|
||||||
|
return
|
||||||
|
|
||||||
libelf = spec['libelf'].prefix
|
libelf = spec['libelf'].prefix
|
||||||
libdwarf = spec['libdwarf'].prefix
|
libdwarf = spec['libdwarf'].prefix
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user