updated stat and added pygtk and dependent packages
This commit is contained in:
parent
ae20e53cfb
commit
bd8aab00e4
@ -28,10 +28,13 @@
|
||||
class Dyninst(Package):
|
||||
"""API for dynamic binary instrumentation. Modify programs while they
|
||||
are executing without recompiling, re-linking, or re-executing."""
|
||||
|
||||
homepage = "https://paradyn.org"
|
||||
url = "http://www.dyninst.org/sites/default/files/downloads/dyninst/8.1.2/DyninstAPI-8.1.2.tgz"
|
||||
list_url = "http://www.dyninst.org/downloads/dyninst-8.x"
|
||||
|
||||
version('9.2.0', 'ad023f85e8e57837ed9de073b59d6bab',
|
||||
url="https://github.com/dyninst/dyninst/archive/v9.2.0.tar.gz")
|
||||
version('9.1.0', '5c64b77521457199db44bec82e4988ac',
|
||||
url="http://www.paradyn.org/release9.1.0/DyninstAPI-9.1.0.tgz")
|
||||
version('8.2.1', 'abf60b7faabe7a2e4b54395757be39c7',
|
||||
|
@ -30,11 +30,14 @@ class Glib(Package):
|
||||
providing data structure handling for C, portability wrappers
|
||||
and interfaces for such runtime functionality as an event loop,
|
||||
threads, dynamic loading and an object system."""
|
||||
|
||||
homepage = "https://developer.gnome.org/glib/"
|
||||
url = "http://ftp.gnome.org/pub/gnome/sources/glib/2.42/glib-2.42.1.tar.xz"
|
||||
|
||||
version('2.49.4', 'e2c87c03017b0cd02c4c73274b92b148')
|
||||
version('2.42.1', '89c4119e50e767d3532158605ee9121a')
|
||||
version('2.48.1', '67bd3b75c9f6d5587b457dc01cdcd5bb',
|
||||
url='http://ftp.gnome.org/pub/GNOME/sources/glib/2.48/glib-2.48.1.tar.xz')
|
||||
|
||||
depends_on('libffi')
|
||||
depends_on('zlib')
|
||||
|
@ -0,0 +1,48 @@
|
||||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
|
||||
|
||||
class GobjectIntrospection(Package):
|
||||
"""The GObject Introspection is used to describe the program APIs and
|
||||
collect them in a uniform, machine readable format.Cairo is a 2D graphics
|
||||
library with support for multiple output"""
|
||||
|
||||
homepage = "https://wiki.gnome.org/Projects/GObjectIntrospection"
|
||||
url = "http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.48/gobject-introspection-1.48.0.tar.xz"
|
||||
|
||||
version('1.48.0', '01301fa9019667d48e927353e08bc218')
|
||||
|
||||
depends_on("glib")
|
||||
depends_on("python")
|
||||
depends_on("cairo")
|
||||
|
||||
def install(self, spec, prefix):
|
||||
configure("--prefix=%s" % prefix)
|
||||
# we need to filter this file to avoid an overly long hashbang line
|
||||
filter_file('@PYTHON@', 'python',
|
||||
'tools/g-ir-tool-template.in')
|
||||
make()
|
||||
make("install")
|
@ -27,10 +27,11 @@
|
||||
|
||||
class Graphlib(Package):
|
||||
"""Library to create, manipulate, and export graphs Graphlib."""
|
||||
homepage = "http://https://github.com/lee218llnl/graphlib"
|
||||
url = "https://github.com/lee218llnl/graphlib/archive/v2.0.0.tar.gz"
|
||||
homepage = "https://github.com/LLNL/graphlib"
|
||||
url = "https://github.com/LLNL/graphlib/archive/v2.0.0.tar.gz"
|
||||
|
||||
version('2.0.0', '43c6df84f1d38ba5a5dce0ae19371a70')
|
||||
version('3.0.0', '625d199f97ab1b84cbc8daabcaee5e2a')
|
||||
|
||||
depends_on('cmake', type='build')
|
||||
|
||||
|
46
var/spack/repos/builtin/packages/py-py2cairo/package.py
Normal file
46
var/spack/repos/builtin/packages/py-py2cairo/package.py
Normal file
@ -0,0 +1,46 @@
|
||||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
import re
|
||||
|
||||
|
||||
class PyPy2cairo(Package):
|
||||
"""bindings for the Cairo for Python 2,
|
||||
to be used in Python."""
|
||||
|
||||
homepage = "https://pypi.python.org/pypi/pycairo"
|
||||
url = "https://cairographics.org/releases/py2cairo-1.10.0.tar.bz2"
|
||||
|
||||
version('1.10.0', '20337132c4ab06c1146ad384d55372c5')
|
||||
|
||||
extends('python')
|
||||
depends_on("cairo")
|
||||
depends_on("pixman")
|
||||
|
||||
def install(self, spec, prefix):
|
||||
python('waf', 'configure', '--prefix=%s' % prefix)
|
||||
python('waf', 'build')
|
||||
python('waf', 'install')
|
||||
|
49
var/spack/repos/builtin/packages/py-pygobject/package.py
Normal file
49
var/spack/repos/builtin/packages/py-pygobject/package.py
Normal file
@ -0,0 +1,49 @@
|
||||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
import re
|
||||
|
||||
|
||||
class PyPygobject(Package):
|
||||
"""bindings for the GLib, and GObject,
|
||||
to be used in Python."""
|
||||
|
||||
homepage = "https://pypi.python.org/pypi/pygobject"
|
||||
url = "https://pypi.python.org/packages/6d/15/97c8b5ccca2be14cf59a2f79e15e3a82a1c3408a6b76b4107689a8b94846/pygobject-2.28.3.tar.bz2"
|
||||
|
||||
version('2.28.3', 'aa64900b274c4661a5c32e52922977f9')
|
||||
|
||||
extends('python')
|
||||
depends_on("libffi")
|
||||
depends_on('glib')
|
||||
depends_on('py-py2cairo')
|
||||
depends_on('gobject-introspection')
|
||||
|
||||
patch('pygobject-2.28.6-introspection-1.patch')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
configure("--prefix=%s" % prefix)
|
||||
make()
|
||||
make("install", parallel=False)
|
@ -0,0 +1,35 @@
|
||||
Submitted By: Andrew Benton <andy@benton.eu.com>
|
||||
Date: 2012-03-29
|
||||
Initial Package Version: 2.28.6
|
||||
Upstream Status: not submitted
|
||||
Origin: me
|
||||
Description: Fixes compiling with a recent version of gobject-introspection
|
||||
|
||||
--- pygobject-2.28.6/gi/pygi-info.c-orig 2012-03-29 02:27:37.494228732 +0100
|
||||
+++ pygobject-2.28.6/gi/pygi-info.c 2012-03-29 02:26:37.735132310 +0100
|
||||
@@ -162,9 +162,6 @@
|
||||
case GI_INFO_TYPE_CONSTANT:
|
||||
type = &PyGIConstantInfo_Type;
|
||||
break;
|
||||
- case GI_INFO_TYPE_ERROR_DOMAIN:
|
||||
- type = &PyGIErrorDomainInfo_Type;
|
||||
- break;
|
||||
case GI_INFO_TYPE_UNION:
|
||||
type = &PyGIUnionInfo_Type;
|
||||
break;
|
||||
@@ -481,7 +478,6 @@
|
||||
case GI_INFO_TYPE_INVALID:
|
||||
case GI_INFO_TYPE_FUNCTION:
|
||||
case GI_INFO_TYPE_CONSTANT:
|
||||
- case GI_INFO_TYPE_ERROR_DOMAIN:
|
||||
case GI_INFO_TYPE_VALUE:
|
||||
case GI_INFO_TYPE_SIGNAL:
|
||||
case GI_INFO_TYPE_PROPERTY:
|
||||
@@ -860,7 +856,6 @@
|
||||
case GI_INFO_TYPE_INVALID:
|
||||
case GI_INFO_TYPE_FUNCTION:
|
||||
case GI_INFO_TYPE_CONSTANT:
|
||||
- case GI_INFO_TYPE_ERROR_DOMAIN:
|
||||
case GI_INFO_TYPE_VALUE:
|
||||
case GI_INFO_TYPE_SIGNAL:
|
||||
case GI_INFO_TYPE_PROPERTY:
|
47
var/spack/repos/builtin/packages/py-pygtk/package.py
Normal file
47
var/spack/repos/builtin/packages/py-pygtk/package.py
Normal file
@ -0,0 +1,47 @@
|
||||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
import re
|
||||
|
||||
|
||||
class PyPygtk(Package):
|
||||
"""bindings for the Gtk in Python"""
|
||||
homepage = "http://www.pygtk.org/"
|
||||
url = "http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-2.24.0.tar.gz"
|
||||
|
||||
version('2.24.0', 'd27c7f245a9e027f6b6cd9acb7468e36')
|
||||
|
||||
extends('python')
|
||||
depends_on("libffi")
|
||||
depends_on('cairo')
|
||||
depends_on('glib')
|
||||
depends_on('gtkplus')
|
||||
depends_on('py-pygobject')
|
||||
depends_on('py-py2cairo')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
configure("--prefix=%s" % prefix)
|
||||
make()
|
||||
make("install", parallel=False)
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user