New, cleaner package repository structure.

Package repositories now look like this:

    top-level-dir/
        repo.yaml
        packages/
            libelf/
                package.py
            mpich/
                package.py
            ...

This leaves room at the top level for additional metadata, source,
per-repo configs, indexes, etc., and it makes it easy to see that
something is a spack repo (just look for repo.yaml and packages).
This commit is contained in:
Todd Gamblin
2015-11-26 14:19:27 -08:00
parent 04f032d6e3
commit 89d5127900
285 changed files with 137 additions and 64 deletions

View File

@@ -0,0 +1,44 @@
from spack import *
class Thrift(Package):
"""The Apache Thrift software framework, for scalable cross-language services
development, combines a software stack with a code generation engine to build
services that work efficiently and seamlessly between C++, Java, Python, PHP,
Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml
and Delphi and other languages."""
homepage = "http://thrift.apache.org"
url = "http://apache.mirrors.ionfish.org/thrift/0.9.2/thrift-0.9.2.tar.gz"
version('0.9.2', '89f63cc4d0100912f4a1f8a9dee63678')
extends("python")
depends_on("autoconf")
depends_on("automake")
depends_on("bison")
depends_on("boost")
depends_on("flex")
depends_on("jdk")
depends_on("libtool")
depends_on("openssl")
depends_on("python")
# Compilation fails for most languages, fortunately cpp installs fine
# All other languages (yes, including C) are omitted until someone needs them
def install(self, spec, prefix):
env["PY_PREFIX"] = prefix
env["JAVA_PREFIX"] = prefix
configure("--prefix=%s" % prefix,
"--with-boost=%s" % spec['boost'].prefix,
"--with-c=no",
"--with-go=no",
"--with-python=yes",
"--with-lua=no",
"--with-php=no",
"--with-qt4=no",
"--enable-tests=no")
make()
make("install")