aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/meson/package.az
blob: 0af1b99776da56e06bd0ec6db9dcea84b48c6070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package meson {
	description = "an open source build system";
	website = "https://mesonbuild.com";
	anitya = 6472;

	version# = "1.11.2";
	source = remoteGitHub {
		suffix = "mesonbuild/meson";
		tag = version;
		checksum = "9AMilGxTOVqPA2DaGMASyuVs1BeTzgDZ0NH2oSYoRZk846ApvfOBa4cc18XEEK7M";
	};
	patches = [
		"respect-colour.patch",
		"test-strip-colour.patch",
	];

	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,
	];
}