easyblock = 'MakeCp'

name = 'BOINC'
version = '7.0.65'
versionsuffix = "-client"

homepage = 'https://boinc.berkeley.edu'
description = """BOINC is a program that lets you donate your idle computer time to science projects
 like SETI@home, Climateprediction.net, Rosetta@home, World Community Grid, and many others."""

toolchain = {'name': 'goolf', 'version': '1.4.10'}

# only through git, make your own tarball.
# e.g. git clone --depth=100 --branch client_release/7.0/7.0.65 git://boinc.berkeley.edu/boinc-v2.git boinc-7.0.65
# see http://boinc.berkeley.edu/trac/wiki/SourceCodeGit
sources = [SOURCELOWER_TAR_BZ2]

dependencies = [
    ('OpenSSL', '1.0.1f'),
    ('cURL', '7.29.0'),
]

with_configure = True
preconfigopts = './_autosetup &&'
configopts = '--disable-server --disable-manager --enable-client'

# copy boinc and boinccmd binaries
files_to_copy = [(['client/boin*[cd]'], 'bin')]

# make sure the binary are available after installation
sanity_check_paths = {
    'files': ['bin/boinc', 'bin/boinccmd'],
    'dirs': [],
}

moduleclass = 'tools'
