示例#1
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['tcmalloc-fake'].version
        values['PFX'] = spec['tcmalloc-fake'].prefix

        fname = 'tcmalloc_minimal.xml'
        contents = str("""<tool name="tcmalloc_minimal" version="$VER">
  <lib name="tcmalloc_minimal"/>
  <client>
    <environment name="TCMALLOC_MINIMAL_BASE" default="$PFX"/>
    <environment name="LIBDIR"                default="$$TCMALLOC_MINIMAL_BASE/lib"/>
  </client>
</tool>""")

        write_scram_toolfile(contents, values, fname, prefix)

        fname = 'tcmalloc.xml'
        contents = str("""<tool name="tcmalloc" version="$VER">
  <lib name="tcmalloc"/>
  <client>
    <environment name="TCMALLOC_BASE" default="$PFX"/>
    <environment name="LIBDIR"        default="$$TCMALLOC_BASE/lib"/>
  </client>
</tool>""")

        write_scram_toolfile(contents, values, fname, prefix)
示例#2
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['oracle'].version
        values['PFX'] = spec['oracle'].prefix
        fname = 'oracle.xml'
        contents = str("""<tool name="oracle" version="$VER">
  <lib name="clntsh"/>
  <client>
    <environment name="ORACLE_BASE" default="$PFX"/>
    <environment name="ORACLE_ADMINDIR" value="$PFX/etc"/>
    <environment name="LIBDIR" value="$$ORACLE_BASE/lib"/>
    <environment name="BINDIR" value="$$ORACLE_BASE/bin"/>
    <environment name="INCLUDE" value="$$ORACLE_BASE/include"/>
  </client>
  <runtime name="PATH" value="$$BINDIR" type="path"/>
  <runtime name="TNS_ADMIN" default="$$ORACLE_ADMINDIR"/>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <use name="root_cxxdefaults"/>
  <use name="sockets"/>
</tool>""")
        write_scram_toolfile(contents, values, fname, prefix)

        fname = 'oracleocci.xml'
        contents = str("""<tool name="oracleocci-official" version="$VER">
  <lib name="occi"/>
  <use name="oracle"/>
</tool>""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#3
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['rivet'].version
        values['PFX'] = spec['rivet'].prefix
        fname = 'rivet.xml'
        contents = str("""
<tool name="rivet" version="${VER}">
<lib name="Rivet"/>
<client>
<environment name="RIVET_BASE" default="${PFX}"/>
<environment name="LIBDIR" default="$$RIVET_BASE/lib"/>
<environment name="INCLUDE" default="$$RIVET_BASE/include"/>
</client>
<runtime name="PATH" value="$$RIVET_BASE/bin" type="path"/>
<runtime name="RIVET_ANALYSIS_PATH" value="$$RIVET_BASE/lib" type="path"/>
<runtime name="PDFPATH" default="$$RIVET_BASE/share" type="path"/>
<runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
<runtime name="TEXMFHOME" value="$$RIVET_BASE/share/Rivet/texmf" type="path"/>
<use name="hepmc"/>
<use name="fastjet"/>
<use name="gsl"/>
<use name="yoda"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#4
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['herwigpp'].version
        values['PFX'] = spec['herwigpp'].prefix
        fname = 'herwigpp.xml'
        contents = str("""
<tool name="herwigpp" version="$VER">
  <lib name="HerwigAPI"/>
  <client>
    <environment name="HERWIGPP_BASE" default="$PFX"/>
    <environment name="LIBDIR" default="$$HERWIGPP_BASE/lib/Herwig"/>
    <environment name="INCLUDE" default="$$HERWIGPP_BASE/include"/>
    <environment name="BINDIR" default="$$HERWIGPP_BASE/bin"/>
  </client>
  <runtime name="HERWIGPATH" value="$$HERWIGPP_BASE/share/Herwig"/>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <runtime name="PATH" default="$$BINDIR" type="path"/>
  <use name="root_cxxdefaults"/>
  <use name="lhapdf"/>
  <use name="thepeg"/>
  <use name="madgraph5amcatnlo"/>
  <use name="openloops"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#5
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['vdt'].version
        values['PFX'] = spec['vdt'].prefix

        fname = 'vdt_headers.xml'
        contents = str("""<tool name="vdt_headers" version="$VER">
  <client>
    <environment name="VDT_HEADERS_BASE" default="$PFX"/>
    <environment name="INCLUDE" default="$$VDT_HEADERS_BASE/include"/>
  </client>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <use name="root_cxxdefaults"/>
</tool>""")

        write_scram_toolfile(contents, values, fname, prefix)

        fname = 'vdt.xml'
        contents = str("""<tool name="vdt" version="$VER">
  <lib name="vdt"/>
  <use name="vdt_headers"/>
  <client>
    <environment name="VDT_BASE" default="$PFX"/>
    <environment name="LIBDIR" default="$$VDT_BASE/lib"/>
  </client>
</tool>""")

        write_scram_toolfile(contents, values, fname, prefix)
示例#6
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['blackhat'].version
        values['PFX'] = spec['blackhat'].prefix

        fname = 'blackhat.xml'
        contents = str("""
<tool name="blackhat" version="${VER}">
<lib name="Ampl_eval"/>
<lib name="BG"/>
<lib name="BH"/>
<lib name="BHcore"/>
<lib name="CutPart"/>
<lib name="Cut_wCI"/>
<lib name="Cuteval"/>
<lib name="Integrals"/>
<lib name="Interface"/>
<lib name="OLA"/>
<lib name="RatPart"/>
<lib name="Rateval"/>
<lib name="Spinors"/>
<lib name="assembly"/>
<lib name="ratext"/>
<client>
<environment name="BLACKHAT_BASE" default="${PFX}"/>
<environment name="LIBDIR" default="$$BLACKHAT_BASE/lib/blackhat"/>
<environment name="INCLUDE" default="$$BLACKHAT_BASE/include"/>
</client>
<use name="qd"/>
<runtime name="WORKER_DATA_PATH" value="$$BLACKHAT_BASE/share/blackhat/datafiles/" type="path"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#7
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['tauola'].version
        values['PFX'] = spec['tauola'].prefix

        fname = 'tauola.xml'
        contents = str("""
<tool name="tauola" version="${VER}">
  <lib name="pretauola"/>
  <lib name="tauola"/>
  <client>
    <environment name="TAUOLA_BASE" default="${PFX}"/>
    <environment name="LIBDIR" default="$$TAUOLA_BASE/lib"/>
  </client>
  <use name="f77compiler"/>
  <use name="tauola_headers"/>
</tool>
""")

        write_scram_toolfile(contents, values, fname, prefix)

        fname = 'tauola_headers.xml'
        contents = str("""
<tool name="tauola_headers" version="${VER}">
  <client>
    <environment name="TAUOLA_HEADERS_BASE" default="${PFX}"/>
    <environment name="INCLUDE" default="$$TAUOLA_HEADERS_BASE/include"/>
  </client>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <use name="root_cxxdefaults"/>
</tool>
""")

        write_scram_toolfile(contents, values, fname, prefix)
示例#8
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['llvm'].version
        values['PFX'] = spec['llvm'].prefix
        values['LIB'] = spec['llvm'].prefix.lib
# This is a toolfile to use llvm / clang as a library, not as a compiler.
        fname = 'llvm.xml'
        contents = str("""  <tool name="llvm" version="${VER}">
    <lib name="clang"/>
    <client>
      <environment name="LLVM_BASE" default="${PFX}"/>
      <environment name="LIBDIR" default="${LIB}"/>
      <environment name="INCLUDE" default="${PFX}/include"/>
    </client>
    <flags LDFLAGS="-Wl,-undefined -Wl,suppress"/>
    <flags CXXFLAGS="-D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS"/>
    <flags CXXFLAGS="-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 "/>
    <flags CXXFLAGS="-fomit-frame-pointer -fPIC -Wno-enum-compare "/>
    <flags CXXFLAGS="-Wno-strict-aliasing -fno-rtti"/>
  </tool>""")

        write_scram_toolfile(contents, values, fname, prefix)

        fname = 'pyclang.xml'
        contents = str("""<tool name="pyclang" version="${VER}">
  <client>
    <environment name="PYCLANG_BASE" default="${PFX}"/>
  </client>
  <use name="python"/>
</tool>""")

        write_scram_toolfile(contents, values, fname, prefix)
示例#9
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['tauolapp'].version
        values['PFX'] = spec['tauolapp'].prefix

        fname = 'tauolapp.xml'
        contents = str("""
<tool name="tauolapp" version="${VER}">
  <lib name="TauolaCxxInterface"/>
  <lib name="TauolaFortran"/>
  <lib name="TauolaTauSpinner"/>
  <client>
    <environment name="TAUOLAPP_BASE" default="${PFX}"/>
    <environment name="LIBDIR" default="$$TAUOLAPP_BASE/lib"/>
    <environment name="INCLUDE" default="$$TAUOLAPP_BASE/include"/>
  </client>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <use name="root_cxxdefaults"/>
  <use name="hepmc"/>
  <use name="f77compiler"/>
  <use name="pythia8"/>
  <use name="lhapdf"/>
</tool>
""")

        write_scram_toolfile(contents, values, fname, prefix)
示例#10
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['sherpa'].version
        values['PFX'] = spec['sherpa'].prefix

        fname = 'sherpa.xml'
        contents = str("""
<tool name="sherpa" version="${VER}">
  <lib name="SherpaMain"/>
  <lib name="ToolsMath"/>
  <lib name="ToolsOrg"/>
  <client>
    <environment name="SHERPA_BASE" default="${PFX}"/>
    <environment name="BINDIR" default="$$SHERPA_BASE/bin"/>
    <environment name="LIBDIR" default="$$SHERPA_BASE/lib/SHERPA-MC"/>
    <environment name="INCLUDE" default="$$SHERPA_BASE/include/SHERPA-MC"/>
  </client>
  <runtime name="CMSSW_FWLITE_INCLUDE_PATH" value="$$SHERPA_BASE/include" type="path"/>
  <runtime name="SHERPA_SHARE_PATH" value="$$SHERPA_BASE/share/SHERPA-MC" type="path"/>
  <runtime name="SHERPA_INCLUDE_PATH" value="$$SHERPA_BASE/include/SHERPA-MC" type="path"/>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <runtime name="PYTHONPATH" value="$$SHERPA_BASE/lib/python2.7/site-packages" type="path"/>
  <runtime name="SHERPA_LIBRARY_PATH" value="$$SHERPA_BASE/lib/SHERPA-MC" type="path"/>
  <use name="root_cxxdefaults"/>
  <use name="HepMC"/>
  <use name="lhapdf"/>
  <use name="qd"/>
  <use name="blackhat"/>
  <use name="fastjet"/>
  <use name="sqlite"/>
  <use name="openmpi"/>
  <use name="openloops"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#11
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['classlib'].version
        values['PFX'] = spec['classlib'].prefix

        fname = 'classlib.xml'

        contents = str("""<tool name="classlib" version="$VER">
    <info url="http://cmsmac01.cern.ch/~lat/exports/"/>
    <client>
      <environment name="CLASSLIB_BASE" default="$PFX"/>
      <environment name="LIBDIR" default="$$CLASSLIB_BASE/lib"/>
      <environment name="INCLUDE" default="$$CLASSLIB_BASE/include"/>
      <flags CPPDEFINES="__STDC_LIMIT_MACROS"/>
      <flags CPPDEFINES="__STDC_FORMAT_MACROS"/>
      <lib name="classlib"/>
      <use name="zlib"/>
      <use name="bz2lib"/>
      <use name="pcre"/>
      <use name="openssl"/>
    </client>
    <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
    <use name="root_cxxdefaults"/>
  </tool>""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#12
0
    def install(self, spec, prefix):
        gcc = which(spack_f77)
        gcc_prefix = re.sub('/bin/.*$', '', self.compiler.f77)
        gcc_machine = gcc('-dumpmachine', output=str)
        gcc_ver = gcc('-dumpversion', output=str)
        values = {}
        values['VER'] = spec['intel-tbb'].version
        values['PFX'] = spec['intel-tbb'].prefix
        values['GCC_VER'] = gcc_ver.rstrip()
        values['GCC_GLIBCXX_VER'] = gcc_ver.rstrip().replace('.', '0')
        values['GCC_PREFIX'] = gcc_prefix
        values['GCC_MACHINE'] = gcc_machine.rstrip()
        fname = 'tbb.xml'
        contents = str("""
<tool name="tbb" version="$VER">
  <info url="http://threadingbuildingblocks.org"/>
  <lib name="tbb"/>
  <client>
    <environment name="TBB_BASE" default="$PFX"/>
    <environment name="LIBDIR" default="$$TBB_BASE/lib"/>
    <environment name="INCLUDE" default="$$TBB_BASE/include"/>
  </client>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <use name="root_cxxdefaults"/>
  <flags CPPDEFINES="TBB_USE_GLIBCXX_VERSION=$GCC_GLIBCXX_VER"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#13
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['clhep'].version
        values['PFX'] = spec['clhep'].prefix

        fname = 'clhep.xml'
        contents = str("""<tool name="clhep" version="$VER">
  <info url="http://wwwinfo.cern.ch/asd/lhc++/clhep"/>
  <lib name="CLHEP"/>
  <client>
    <environment name="CLHEP_BASE" default="$PFX"/>
    <environment name="LIBDIR" default="$$CLHEP_BASE/lib"/>
    <environment name="INCLUDE" default="$$CLHEP_BASE/include"/>
  </client>
  <runtime name="CLHEP_PARAM_PATH" value="$$CLHEP_BASE"/>
  <runtime name="CMSSW_FWLITE_INCLUDE_PATH" value="$$CLHEP_BASE/include" type="path"/>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <flags CXXFLAGS="-Wno-error=unused-variable"/>
  <use name="root_cxxdefaults"/>
</tool>""")
        write_scram_toolfile(contents, values, fname, prefix)

        fname = 'clhepheader.xml'
        contents = str("""<tool name="clhepheader" version="$VER">
  <info url="http://wwwinfo.cern.ch/asd/lhc++/clhep"/>
  <client>
    <environment name="CLHEPHEADER_BASE" default="$PFX"/>
    <environment name="INCLUDE"    default="$$CLHEPHEADER_BASE/include"/>
  </client>
  <runtime name="ROOT_INCLUDE_PATH"  value="$$INCLUDE" type="path"/>
  <flags CXXFLAGS="-Wno-error=unused-variable"/>
  <use name="root_cxxdefaults"/>
</tool>""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#14
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['utm'].version
        values['PFX'] = spec['utm'].prefix

        fname = 'utm.xml'
        contents = str("""
<tool name="utm" version="${VER}">
  <lib name="tmeventsetup"/>
  <lib name="tmtable"/>
  <lib name="tmxsd"/>
  <lib name="tmgrammar"/>
  <lib name="tmutil"/>
  <client>
    <environment name="UTM_BASE" default="${PFX}"/>
    <environment name="LIBDIR" default="$$UTM_BASE/lib"/>
    <environment name="INCLUDE" default="$$UTM_BASE/include"/>
  </client>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <runtime name="UTM_XSD_DIR" value="$$UTM_BASE"/>
  <use name="root_cxxdefaults"/>
</tool>
""")

        write_scram_toolfile(contents, values, fname, prefix)
示例#15
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['gmake'].version
        values['PFX'] = spec['gmake'].prefix
        fname = 'gmake.xml'
        contents = str("""<tool name="gmake" version="$VER">
  <client>
    <environment name="MAKE_BASE" default="$PFX"/>
  </client>
  <runtime name="PATH" value="$$MAKE_BASE/bin" type="path"/>
</tool>""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#16
0
    def install(self, spec, prefix):
        values = {}
        values['PFX'] = spec['cmake'].prefix
        values['VER'] = spec['cmake'].version
        fname = 'cmake.xml'
        contents = str("""
<tool name="ninja" version="${VER}">
  <client>
    <environment name="CMAKE_BASE" default="${PFX}"/>
  </client>
  <runtime name="PATH" value="$$CMAKE_BASE/bin" type="path"/>
</tool>
""")
        write_scram_toolfile(fname, contents, values, prefix)
示例#17
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['geant4-g4ndl'].version
        values['PREFIX'] = spec['geant4-g4ndl'].prefix.share + '/data'
        fname = 'geant4data_g4ndl.xml'
        contents = str("""
<tool name="geant4data_g4ndl" version="${VER}">
  <client>
    <environment name="GEANT4DATA_G4NDL" default="${PREFIX}"/>
  </client>
  <runtime name="G4NEUTRONHPDATA" value="${PREFIX}/G4NDL${VER}" type="path"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#18
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['lapack'].version
        values['PFX'] = spec['lapack'].prefix
        fname = 'lapack.xml'
        contents = str("""
<tool name="lapack" version="${VER}">
  <client>
    <environment name="LAPACK_BASE" default="${PFX}"/>
    <environment name="LIBDIR" default="$$LAPACK_BASE/lib"/>
  </client>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#19
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['geant4-g4radioactivedecay'].version
        values['PREFIX'] = spec[
            'geant4-g4radioactivedecay'].prefix.share + '/data'
        fname = 'geant4data_g4radioactivedecay.xml'
        contents = str("""
<tool name="geant4data_g4radioactivedecay" version="${VER}">
  <client>
    <environment name="GEANT4DATA_G4RadioactiveDecay" default="${PREFIX}"/>
  </client>
  <runtime name="G4RADIOACTIVEDATA" value="${PREFIX}/RadioactiveDecay${VER}" type="path"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#20
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['py-cython'].version
        values['PFX'] = spec['py-cython'].prefix
        fname = 'cython.xml'
        contents = str("""
<tool name="cython" version="${VER}">
  <client>
    <environment name="CYTHON_BASE" default="${PFX}"/>
  </client>
  <runtime name="PYTHONPATH" value="${PFX}/lib/python2.7/site-packages" type="path"/>
  <use name="python"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#21
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['eigen'].version
        values['PFX'] = spec['eigen'].prefix
        fname = 'eigen3.xml'
        contents = str("""
<tool name="eigen" version="${VER}">
  <client>
    <environment name="EIGEN_BASE"   default="${PFX}"/>
    <environment name="INCLUDE"      default="$$EIGEN_BASE/include/eigen3"/>
  </client>
  <flags CPPDEFINES="EIGEN_DONT_PARALLELIZE"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#22
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['openloops'].version
        values['PFX'] = spec['openloops'].prefix
        fname = 'openloops.xml'
        contents = str("""
<tool name="openloops" version="${VER}">
<client>
<environment name="OPENLOOPS_BASE" default="${PFX}"/>
<environment name="LIBDIR" default="$$OPENLOOPS_BASE/lib"/>
<runtime name="CMS_OPENLOOPS_PREFIX" value="$$OPENLOOPS_BASE" type="path"/>
</client>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#23
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['geant4-g4photonevaporation'].version
        values['PREFIX'] = spec[
            'geant4-g4photonevaporation'].prefix.share + '/data'
        fname = 'geant4data_g4photonevaporation.xml'
        contents = str("""
<tool name="geant4data_g4photonevaporation" version="${VER}">
  <client>
    <environment name="GEANT4DATA_G4PhotonEvaporation" default="${PREFIX}"/>
  </client>
  <runtime name="G4LEVELGAMMADATA" value="${PREFIX}/PhotonEvaporation${VER}" type="path"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#24
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['md5'].version
        values['PFX'] = spec['md5'].prefix

        fname = 'md5.xml'
        contents = str("""<tool name="md5" version="$VER">
  <info url="https://tls.mbed.org/md5-source-code"/>
   <lib name="cms-md5"/>
  <client>
    <environment name="MD5_BASE" default="$PFX"/>
    <environment name="LIBDIR" default="$$MD5_BASE/lib"/>
    <environment name="INCLUDE" default="$$MD5_BASE/include"/>
    </client>  
</tool>""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#25
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['fireworks-geometry'].version
        values['PFX'] = spec['fireworks-geometry'].prefix.share + '/data'
        fname = 'fireworks-geometry.xml'
        contents = str("""
<tool name="fwlitedata" version="${VER}">
  <client>
    <environment name="CMSSWDATA_BASE" default="${PFX}"/>
    <environment name="CMSSW_DATA_PATH" default="$$CMSSWDATA_BASE"/>
  </client>
  <runtime name="CMSSW_DATA_PATH" value="$$CMSSWDATA_BASE" handler="warn" type="path"/>
  <runtime name="CMSSW_SEARCH_PATH" default="${PFX}" handler="warn" type="path"/>
</tool>
""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#26
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['xerces-c'].version
        values['PFX'] = spec['xerces-c'].prefix
        fname = 'xerces-c.xml'
        contents = str("""<tool name="xerces-c" version="$VER">
  <info url="http://xml.apache.org/xerces-c/"/>
  <lib name="xerces-c"/>
  <client>
    <environment name="XERCES_C_BASE" default="$PFX"/>
    <environment name="INCLUDE" default="$$XERCES_C_BASE/include"/>
    <environment name="LIBDIR" default="$$XERCES_C_BASE/lib"/>
  </client>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <use name="root_cxxdefaults"/>
</tool>""")
        write_scram_toolfile(contents, values, fname, prefix)
示例#27
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['gbl'].version
        values['PFX'] = spec['gbl'].prefix

        fname = 'gbl.xml'
        contents = str("""<tool name="gbl" version="$VER">
  <lib name="GBL"/>
  <client>
    <environment name="GBL_BASE" default="$PFX"/>
    <environment name="INCLUDE"        default="$$GBL_BASE/include"/>
    <environment name="LIBDIR"        default="$$GBL_BASE/lib"/>
  </client>
  <use name="eigen"/>
</tool>""")

        write_scram_toolfile(contents, values, fname, prefix)
示例#28
0
   def install(self, spec, prefix):
       values = {}
       values['VER'] = spec['openssl'].version
       values['PFX'] = spec['openssl'].prefix
       fname = 'openssl.xml'
       contents = str("""<tool name="openssl" version="$VER">
   <lib name="ssl"/>
   <lib name="crypto"/>
   <client>
     <environment name="OPENSSL_BASE" default="$PFX"/>
     <environment name="INCLUDE" default="$$OPENSSL_BASE/include"/>
     <environment name="LIBDIR" default="$$OPENSSL_BASE/lib"/>
   </client>
   <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
   <use name="root_cxxdefaults"/>
 </tool>""")
       write_scram_toolfile(contents, values, fname, prefix)
示例#29
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['qgraf'].version
        values['PFX'] = spec['qgraf'].prefix

        fname = 'qgraf.xml'
        contents = str("""
<tool name="qgraf" version="$VER">
  <client>
    <environment name="QGRAF_BASE" default="$PFX"/>
    <environment name="BINDIR" default="$$QGRAF_BASE/bin"/>
  </client>
  <runtime name="PATH" default="$$BINDIR" type="path"/>
</tool>
""")

        write_scram_toolfile(contents, values, fname, prefix)
示例#30
0
    def install(self, spec, prefix):
        values = {}
        values['VER'] = spec['uuid-cms'].version
        values['PFX'] = spec['uuid-cms'].prefix
        fname = 'uuid-cms.xml'
        contents = str("""<tool name="uuid" version="$VER">
  <lib name="uuid"/>
  <client>
    <environment name="LIBUUID_BASE" default="$PFX"/>
    <environment name="LIBDIR" default="$$LIBUUID_BASE/lib"/>
    <environment name="INCLUDE" default="$$LIBUUID_BASE/include"/>
  </client>
  <runtime name="ROOT_INCLUDE_PATH" value="$$INCLUDE" type="path"/>
  <use name="root_cxxdefaults"/>
  <use name="sockets"/>
</tool>""")
        write_scram_toolfile(contents, values, fname, prefix)