# Built with EasyBuild version 2.1.1 on 2015-09-17_10-51-16
easyblock = 'ConfigureMake'

name = "VDE2"
version = "2.3.2"

homepage = 'http://vde.sourceforge.net'
description = """VDE is an ethernet compliant virtual network that 
can be spawned over a set of physical computer over the Internet. 
VDE is part of virtualsquare project."""

toolchain = {'name': 'GCC', 'version': '4.4.7-system'}

sources = [SOURCELOWER_TAR_BZ2]
source_urls = ['http://sourceforge.net/projects/%(names)s/files/%(names)s2/%(version)s/%(namelower)s-%(version)s.tar.bz2/download']

patches = ['vde2-slirpvde-sigpipe.patch']

sanity_check_paths = {
    'files': ['bin/vde_switch'],
    'dirs': ['bin', 'etc', 'share'],
}

# It fails in case of default value
parallel = 1

modextravars = {
    'VDE2_HOME': '%(installdir)s',
    'VDE2_DIR':  '%(installdir)s',
}

moduleclass = 'tools'
