inherit cmake shopt -s extglob # WARNING: source download link has to be hard-coded :(# The eccodes cmake default install location is usr/local NAME="eccodes" VERSION=2.21.0 RELEASE=1 CATEGORY="Science" SUMMARY="ECMWF tools to decode and encode WMO GRIB and BUFR file formats, and decode WMO GTS file format" DESCRIPTION="ecCodes is a package developed by ECMWF which provides an API and a set of tools\ for decoding and encoding messages in the following formats\:\ WMO FM-92 GRIB edition 1 and edition 2\ WMO FM-94 BUFR edition 3 and edition 4\ WMO GTS abbreviated header (only decoding)" HOMEPAGE="https://confluence.ecmwf.int/display/ECC/ecCodes+Home" SRC_URI="https://confluence.ecmwf.int/download/attachments/45757960/eccodes-2.21.0-Source.tar.gz" SRC_DIR="${PN}-${PV}-Source" PKG_NAMES="eccodes libeccodes libeccodes-devel" eccodes_CONTENTS=" usr/bin/!(cyg*dll) usr/share" libeccodes_CATEGORY="Libs" libeccodes_SUMMARY="${SUMMARY} (runtime)" libeccodes_CONTENTS=" usr/bin/cyg*dll" libeccodes_devel_CATEGORY="Libs" libeccodes_devel_SUMMARY="${SUMMARY} (development)" libeccodes_devel_CONTENTS=" usr/lib/ usr/include" RESTRICT="diff" KEEP_LA_FILES="none" # curl is required to download full test data set from ECMWF. Will this behave under CI? BUILD_REQUIRES="curl gfortran libnetcdf-devel libopenjpeg-devel libpng-devel libaec-devel libgomp1" CYGCMAKE_GENERATOR="Unix Makefiles" CYGCMAKE_ARGS=" -DDISABLE_OS_CHECK=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DIEEE_LE=1 -DENABLE_NETCDF=ON -DENABLE_JPG_LIBOPENJPEG=ON -DENABLE_PNG=ON -DENABLE_AEC=ON -DENABLE_FORTRAN=ON -DENABLE_ECCODES_OMP_THREADS=ON -DENABLE_MEMFS=OFF -DENABLE_EXTRA_TESTS=ON" src_test() { PATH=${B}/src:${PATH} cd ${B} cygmake test }