Support for binary Glasgow Haskell Compiler (GHC) packages #44

Merged
merged 3 commits into from Dec 20, 2012

Conversation

Projects
None yet
3 participants
Owner

itkovian commented Nov 27, 2012

Custom easyblock that skips the build step from ConfigureMake.

boegel was assigned Nov 27, 2012

@boegel boegel commented on an outdated diff Nov 27, 2012

easybuild/easyblocks/g/ghc.py
+##
+"""
+EasyBuild support for binary GHC packages, see http://haskell.org/ghc
+"""
+
+from easybuild.easyblocks.generic.configuremake import ConfigureMake
+
+
+class EB_GHC(ConfigureMake):
+ """
+ Support for building and installing applications with configure/make/make install
+ """
+
+ def build_step(self, verbose=False):
+ """
+ Nothing to do here if version <= 7.0
@boegel

boegel Nov 27, 2012

Owner

So, check the version, and then you can always use this easyblock for building GHC, you don't have to care.

if LooseVersion(self.version) <= LooseVersion("7.0"):
    pass
else:
    super(EB_GHC, self).build_step(verbose=verbose)
Owner

JensTimmerman commented Dec 5, 2012

good for me

Owner

boegel commented Dec 20, 2012

Tested with GHC easyconfigs in hpcugent/easybuild-easyconfigs#32, works.

Building GHC v7 with GHC v6 as dependency depends on hpcugent/easybuild-framework#398 .

boegel merged commit e56efa9 into hpcugent:develop Dec 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment