easyblock = 'CmdCp'

name = 'Xvfb'
version = '1.17.4'

homepage = 'http://www.x.org'
description = """Xvfb is an X server that can run on machines with no display
    hardware and no physical input devices. It emulates a dumb framebuffer
    using virtual memory."""

toolchain = {'name': 'system', 'version': ''}

source_urls = ['http://195.220.108.108/linux/centos/6.9/os/x86_64/Packages']
sources = [{
    'filename': 'xorg-x11-server-Xvfb-%(version)s-16.el6.centos.x86_64.rpm',
    'extract_cmd': "rpm2cpio %s | cpio -idmv",
}]

skipsteps = ['build']

#start_dir = 'bin'

files_to_copy = [
    (['bin/Xvfb', 'bin/xvfb-run'], 'bin'),
    (['share/man/man1/Xvfb.1.gz'], 'share/man/man1')
]

sanity_check_paths = {
    'files': ['bin/Xvfb'],
    'dirs': [],
}

moduleclass = 'vis'
