1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
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')
depends_on("autoconf")
depends_on("automake")
depends_on("bison")
depends_on("boost")
depends_on("flex")
depends_on("jdk")
depends_on("libtool")
depends_on("openssl")
# 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):
configure("--prefix=%s" % prefix,
"--with-boost=%s" % spec['boost'].prefix,
"--with-c=no",
"--with-go=no",
"--with-python=no",
"--with-lua=no",
"--with-php=no",
"--with-qt4=no",
"--enable-tests=no")
make()
make("install")
|