MPJ-Express-0.44-goolf-1.4.10-Java-1.7.0_75.eb 1.36 KB
Newer Older
Lukáš Krupčík's avatar
Lukáš Krupčík committed
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 39 40 41 42 43 44 45 46 47 48
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez
# sciCORE - University of Basel
# SIB Swiss Institute of Bioinformatics

easyblock = 'Tarball'

name = 'MPJ-Express'
version = '0.44'

homepage = 'http://mpj-express.org/'
description = """MPJ Express is an open source Java message passing library that allows application 
 developers to write and execute parallel applications for multicore processors and compute clusters/clouds."""

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

source_urls = ['https://sourceforge.net/projects/mpjexpress/files/releases/']
sources = ['mpj-v%s.tar.gz' % (version.replace('.','_'))]

java = 'Java'
javaver = '1.7.0_75'
versionsuffix = '-%s-%s' % (java, javaver)

builddependencies = [('CMake', '2.8.12')]

dependencies = [
    (java, javaver, '', True),
]

# compile JNI wrapper library as described in docs
# http://mpj-express.org/docs/readme/README
postinstallcmds = ["mkdir %(installdir)s/src/mpjdev/natmpjdev/lib/build",
		   "cd %(installdir)s/src/mpjdev/natmpjdev/lib/build && cmake .. && make && make install DESTDIR=%(installdir)s",]

modextrapaths = {
    'CLASSPATH': 'lib',
}

modextravars = {
    'MPJ_HOME': '$root', # MPJ_HOME points to install directory
}

sanity_check_paths = {
    'files': ['lib/libnativempjdev.so', 'bin/mpjrun.sh'],
    'dirs': []
}

moduleclass = 'lib'