updated stat and added pygtk and dependent packages

This commit is contained in:
Gregory L. Lee
2016-07-28 13:17:06 -07:00
parent ae20e53cfb
commit bd8aab00e4
9 changed files with 249 additions and 5 deletions

View File

@@ -27,22 +27,34 @@
class Stat(Package):
"""Library to create, manipulate, and export graphs Graphlib."""
homepage = "http://paradyn.org/STAT/STAT.html"
url = "https://github.com/lee218llnl/stat/archive/v2.0.0.tar.gz"
version('2.2.0', '26bd69dd57a15afdd5d0ebdb0b7fb6fc')
version('2.1.0', 'ece26beaf057aa9134d62adcdda1ba91')
version('2.0.0', 'c7494210b0ba26b577171b92838e1a9b')
version('3.0.0b', '31df1c2e56ce6ab2a0fe963cd47b769a', url='https://github.com/LLNL/STAT/files/382650/STAT-3.0.0b.tar.gz')
# TODO: dysect requires Dyninst patch for version 3.0.0b
variant('dysect', default=False, description="enable DySectAPI")
variant('examples', default=False, description="enable examples")
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('libelf')
depends_on('libdwarf')
depends_on('dyninst')
depends_on('graphlib')
depends_on('graphlib@2.0.0', when='@2.0.0:2.2.0')
depends_on('graphlib@3.0.0', when='@3:')
depends_on('graphviz', type=alldeps)
depends_on('launchmon')
depends_on('mrnet')
depends_on('python')
depends_on('py-pygtk')
depends_on('swig')
depends_on('mpi', when='+examples')
patch('configure_mpicxx.patch', when='@2.1.0')
@@ -50,8 +62,6 @@ def install(self, spec, prefix):
configure_args = [
"--enable-gui",
"--prefix=%s" % prefix,
# Examples require MPI: avoid this dependency.
"--disable-examples",
"--with-launchmon=%s" % spec['launchmon'].prefix,
"--with-mrnet=%s" % spec['mrnet'].prefix,
"--with-graphlib=%s" % spec['graphlib'].prefix,
@@ -60,6 +70,8 @@ def install(self, spec, prefix):
]
if '+dysect' in spec:
configure_args.append('--enable-dysectapi')
if '~examples' in spec:
configure_args.append('--disable-examples')
configure(*configure_args)
make(parallel=False)