Spack packages now PEP8 compliant.
This commit is contained in:
@@ -24,12 +24,16 @@
|
||||
##############################################################################
|
||||
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."""
|
||||
"""Software framework for scalable cross-language services development.
|
||||
|
||||
Thrift 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"
|
||||
@@ -37,8 +41,10 @@ class Thrift(Package):
|
||||
version('0.9.2', '89f63cc4d0100912f4a1f8a9dee63678')
|
||||
|
||||
# Currently only support for c-family and python
|
||||
variant('c', default=True, description="Build support for C-family languages")
|
||||
variant('python', default=True, description="Build support for python")
|
||||
variant('c', default=True,
|
||||
description="Build support for C-family languages")
|
||||
variant('python', default=True,
|
||||
description="Build support for python")
|
||||
|
||||
depends_on('jdk')
|
||||
depends_on('autoconf', type='build')
|
||||
@@ -66,7 +72,8 @@ def install(self, spec, prefix):
|
||||
options.append('--enable-tests=no')
|
||||
|
||||
options.append('--with-c=%s' % ('yes' if '+c' in spec else 'no'))
|
||||
options.append('--with-python=%s' % ('yes' if '+python' in spec else 'no'))
|
||||
options.append('--with-python=%s' %
|
||||
('yes' if '+python' in spec else 'no'))
|
||||
options.append('--with-java=%s' % ('yes' if '+java' in spec else 'no'))
|
||||
options.append('--with-go=%s' % ('yes' if '+go' in spec else 'no'))
|
||||
options.append('--with-lua=%s' % ('yes' if '+lua' in spec else 'no'))
|
||||
|
Reference in New Issue
Block a user