# IT4Innovations 2019 easyblock = 'CMakeMake' name = 'protobuf' version = '3.9.0' homepage = 'https://code.google.com/p/protobuf/' description = """Google Protocol Buffers""" toolchain = {'name': 'GCCcore', 'version': '6.3.0'} sources = ['%(name)s-python-%(version)s.tar.gz'] source_urls = ['https://github.com/google/protobuf/releases/download/v%(version)s/'] # after instalation: python3 setup.py install --cpp_implementation builddependencies = [ ('binutils', '2.27'), ('CMake', '3.14.1', '', True), ] srcdir = 'cmake' configopts = '-Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=ON ' postinstallcmds = [ 'cp %(builddir)s/%(name)s-%(version)s/ %(installdir)s/build -R', ] sanity_check_paths = { 'files': ['bin/protoc'], 'dirs': [], } modextravars = { 'PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION': 'cpp', } moduleclass = 'devel'