aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/cmake/package.az
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-19 18:42:54 +0900
committerOphestra <cat@gensokyo.uk>2026-05-19 18:42:54 +0900
commit6e8bfa6c4c963ff6c7d417a1cc703e4504e1fb9d (patch)
treeab6fbdeddaff07226edf4c5e3e81b3aa0fbff41e /internal/rosa/package/cmake/package.az
parenta770d62b9be4306846b7e1d8c0c94968be175f58 (diff)
internal/rosa/package: migrate cmake
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/cmake/package.az')
-rw-r--r--internal/rosa/package/cmake/package.az45
1 files changed, 45 insertions, 0 deletions
diff --git a/internal/rosa/package/cmake/package.az b/internal/rosa/package/cmake/package.az
new file mode 100644
index 00000000..8b3e6d8e
--- /dev/null
+++ b/internal/rosa/package/cmake/package.az
@@ -0,0 +1,45 @@
+package cmake {
+ description = "cross-platform, open-source build system";
+ website = "https://cmake.org";
+ anitya = 306;
+
+ version* = "4.3.2";
+ source = remoteGitHubRelease {
+ suffix = "Kitware/CMake";
+ tag = "v"+version;
+ name = "cmake-"+version+".tar.gz";
+ checksum = "6QylwRVKletndTSkZTV2YBRwgd_9rUVgav_QW23HpjUgV21AVYZOUOal8tdBDmO7";
+ compress = gzip;
+ };
+ patches = [
+ "bootstrap-test-no-openssl.patch",
+ "disable-broken-tests-musl.patch",
+ ];
+
+ // test suite expects writable source tree
+ writable = true;
+
+ // expected to be writable in the copy made during bootstrap
+ chmod = true;
+
+ exec = make {
+ omitDefaults = true;
+
+ configureName = "/usr/src/cmake/bootstrap";
+ configure = {
+ "prefix": "/system";
+ "parallel": jobsE;
+ "--";
+ "-DCMAKE_USE_OPENSSL": "OFF";
+ "-DCMake_TEST_NO_NETWORK": "ON";
+ };
+
+ check = [
+ "CTEST_OUTPUT_ON_FAILURE=1",
+ "CTEST_PARALLEL_LEVEL=128",
+ "test",
+ ];
+ };
+
+ inputs = [ kernel-headers ];
+}