#
# author: Dina Mahmoud Ibrahim ( Cairo University )
#
easyblock = 'MakeCp'

name = 'SURF'
version = '1.0'
ARCH = 'LINUXAMD64'
versionsuffix = '-%s' % ARCH

homepage = 'http://www.ks.uiuc.edu/Research/vmd/vmd-1.7/ug/node65.html'
description = "A molecular surface solver, which can be used as rendering method in VMD."

toolchain = {'name': 'ictce', 'version': '5.3.0'}

source_urls = ['http://www.ks.uiuc.edu/Research/vmd/extsrcs']
sources = [{'filename': '%(namelower)s.tar.Z', 'extract_cmd': "tar -xzf %s"}]

builddependencies = [
    ('makedepend', '1.0.4'),
    ('ed', '1.9'),
]

prebuildopts = 'make INCLUDE="-I. -I$EBROOTGCC/lib/gcc/x86_64-unknown-linux-gnu/$EBVERSIONGCC/include" depend && '
buildopts = ' && mv surf surf_%s' % ARCH

files_to_copy = [(['surf_%s' % ARCH], "bin")]

sanity_check_paths = {
    'files': ['bin/surf_%s' % ARCH],
    'dirs': [],
}

moduleclass = 'bio'
