easyblock = 'ConfigureMake'

name = 'eudev'
version = '3.2.2'

homepage = 'https://wiki.gentoo.org/wiki/Project:Eudev'

description = """
 eudev is a fork of systemd-udev with the goal of obtaining better
 compatibility with existing software such as OpenRC and Upstart,
 older kernels, various toolchains and anything else required by
 users and various distributions.
"""

toolchain = {'name': 'GCCcore', 'version': '6.4.0'}

source_urls = ['http://dev.gentoo.org/~blueness/%(name)s/']
sources = [SOURCE_TAR_GZ]
checksums = ['3e4c56ec2fc1854afd0a31f3affa48f922c62d40ee12a0c1a4b4f152ef5b0f63']

patches = ['%(name)s-3.1.2_pre-2.6.34_kernel.patch']

builddependencies = [
    ('binutils', '2.28'),
    ('gperf', '3.1'),
]

osdependencies = [('kernel-headers', 'linux-libc-dev')]

configopts = '--disable-blkid --disable-selinux --disable-manpages '

runtest = 'check'

sanity_check_paths = {
    'files': ['bin/udevadm', 'include/libudev.h', 'include/udev.h',
              'lib/libudev.so.1'],
    'dirs': [],
}

moduleclass = 'system'
