dyninst package use spec.satisfies instead of @when

This commit is contained in:
Gregory L. Lee 2016-07-29 14:26:30 -07:00
parent 8b94937609
commit 0074ecd6fa

View File

@ -50,7 +50,13 @@ class Dyninst(Package):
depends_on('cmake', type='build')
# 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
libdwarf = spec['libdwarf'].prefix