@@ -169,32 +169,47 @@ Spack provides a ``spec`` syntax for describing custom DAGs:
169169
170170 from spack import *
171171
172+
172173 class Dyninst (Package ):
173- """ API for dynamic binary instrumentation.""”
174+ """ API for dynamic binary instrumentation."""
175+
174176 homepage = " https://paradyn.org"
175177
176- version('8.2.1', 'abf60b7faabe7a2e’, url="http://www.paradyn.org/release8.2/DyninstAPI-8.2.1.tgz")
177- version('8.1.2', 'bf03b33375afa66f’, url="http://www.paradyn.org/release8.1.2/DyninstAPI-8.1.2.tgz")
178- version('8.1.1', 'd1a04e995b7aa709’, url="http://www.paradyn.org/release8.1/DyninstAPI-8.1.1.tgz")
178+ version(
179+ " 8.2.1" ,
180+ " abf60b7faabe7a2e" ,
181+ url = " http://www.paradyn.org/release8.2/DyninstAPI-8.2.1.tgz" ,
182+ )
183+ version(
184+ " 8.1.2" ,
185+ " bf03b33375afa66f" ,
186+ url = " http://www.paradyn.org/release8.1.2/DyninstAPI-8.1.2.tgz" ,
187+ )
188+ version(
189+ " 8.1.1" ,
190+ " d1a04e995b7aa709" ,
191+ url = " http://www.paradyn.org/release8.1/DyninstAPI-8.1.1.tgz" ,
192+ )
179193
180194 depends_on(" libelf" )
181195 depends_on(" libdwarf" )
182196 depends_on(" boost@1.42:" )
183197
184198 def install (self , spec , prefix ):
185- libelf = spec['libelf'].prefix
186- libdwarf = spec['libdwarf'].prefix
187-
188- with working_dir('spack-build', create=True):
189- cmake('..',
190- '-DBoost_INCLUDE_DIR=%s' % spec['boost'].prefix.include,
191- '-DBoost_LIBRARY_DIR=%s' % spec['boost'].prefix.lib,
192- '-DBoost_NO_SYSTEM_PATHS=TRUE’
193- *std_cmake_args)
199+ libelf = spec[" libelf" ].prefix
200+ libdwarf = spec[" libdwarf" ].prefix
201+
202+ with working_dir(" spack-build" , create = True ):
203+ cmake(
204+ " .." ,
205+ " -DBoost_INCLUDE_DIR=%s " % spec[" boost" ].prefix.include,
206+ " -DBoost_LIBRARY_DIR=%s " % spec[" boost" ].prefix.lib,
207+ " -DBoost_NO_SYSTEM_PATHS=TRUE" * std_cmake_args,
208+ )
194209 make()
195210 make(" install" )
196211
197- @when(' @:8.1' )
212+ @when (" @:8.1" )
198213 def install (self , spec , prefix ):
199214 configure(" --prefix=" + prefix)
200215 make()
@@ -258,7 +273,7 @@ Spack provides a ``spec`` syntax for describing custom DAGs:
258273 mpich : aa4ar6ifj23yijqmdabeakpejcli72t3
259274 hash : 33hjjhxi7p6gyzn5ptgyes7sghyprujh
260275 variants : {}
261- version: ' 1.0'
276+ version : " 1.0"
262277 - adept-utils :
263278 arch : linux-x86_64
264279 compiler :
0 commit comments