Hi Andy,
On 31/05/16 16:43, Andy Turner wrote:
Hi All,
This is probably a silly question but I could not determine the answer
from reading the docs or by examining the easyblock files themselves.
I want to write an easyblock for building VASP and am not sure which
generic block to start from (or even if I need to add a new one). The
basic build procedure consists of:
1) Unpack the source from a tarball located on the local file system
2) Write a "makefile.include" file with the correct options in the top
level of the unpacked source
3) Issue "make veryclean"
4) Issue "make all"
I looked at "makecp.py" and various other generic easyblocks but none
of them, as far as I can see, have a configure step that just consists
of writing a file.
Any help much appreciated
There's an easyconfig file for VASP included in EasyBuild v2.8.x, which
indeed uses the MakeCp easyblock,
see [1] (or "eb -S VASP" if you have EasyBuild v2.8.0 or more recent
installed).
It slightly goes beyond what is generally done in an easyconfig file
(copying makefile.include & patching it with sed), but it does allow to
avoid producing a custom easyblock...
Does that help?
regards,
Kenneth
[1]
https://github.com/hpcugent/easybuild-easyconfigs/blob/master/easybuild/easyconfigs/v/VASP/VASP-5.4.1-intel-2016.02-GCC-4.9.eb