forked from rosa/hakurei
internal/rosa/package: migrate meson
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
56
internal/rosa/package/meson.az
Normal file
56
internal/rosa/package/meson.az
Normal file
@@ -0,0 +1,56 @@
|
||||
package meson {
|
||||
description = "an open source build system";
|
||||
website = "https://mesonbuild.com";
|
||||
anitya = 6472;
|
||||
|
||||
version* = "1.11.1";
|
||||
source = remoteGitHub {
|
||||
suffix = "mesonbuild/meson";
|
||||
tag = version;
|
||||
checksum = "uvILRxdopwc6Dy17UbIeClcQr0qHqyTaqyk1M9OqWKN9PwB9N6UVAiyN8kSSz3r2";
|
||||
};
|
||||
|
||||
env = [
|
||||
"CMAKE_MAKE_PROGRAM=ninja",
|
||||
];
|
||||
|
||||
exec = pip {
|
||||
enterSource = true;
|
||||
check = `
|
||||
cd 'test cases'
|
||||
rm -rf \
|
||||
'common/32 has header' \
|
||||
'common/66 vcstag' \
|
||||
'common/153 wrap file should not failed' \
|
||||
'common/184 openmp' \
|
||||
'common/189 check header' \
|
||||
'linuxlike/6 subdir include order' \
|
||||
'linuxlike/9 compiler checks with dependencies' \
|
||||
'linuxlike/13 cmake dependency' \
|
||||
'frameworks/15 llvm' \
|
||||
'frameworks/29 blocks'
|
||||
cd ..
|
||||
|
||||
python3 ./run_project_tests.py \
|
||||
-v \
|
||||
` + jobsFlagE + ` \
|
||||
--failfast \
|
||||
--backend=ninja
|
||||
`;
|
||||
};
|
||||
|
||||
inputs = [
|
||||
python-setuptools,
|
||||
pkg-config,
|
||||
cmake,
|
||||
ninja,
|
||||
python-pytest,
|
||||
];
|
||||
|
||||
runtime = [
|
||||
python,
|
||||
pkg-config,
|
||||
cmake,
|
||||
ninja,
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user