pantry/projects/cmake.org/package.yml

54 lines
1.2 KiB
YAML
Raw Normal View History

2022-08-02 05:50:33 +03:00
distributable:
url: https://github.com/Kitware/CMake/releases/download/v{{ version }}/cmake-{{ version }}.tar.gz
strip-components: 1
versions:
github: Kitware/CMake/releases/tags
detect:
cmd: cmake --version
regex: cmake version \v
dependencies:
curl.se: '>=5'
zlib.net: 1
sourceware.org/bzip2: 1
provides:
- bin/cmake
- bin/ccmake
- bin/cpack
- bin/ctest
# TODO
# * --system-libs (provide all deps ourselves)
# (Zlib, Bzip2, cURL, nghttp2, Expat and libarchive)
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |-
./bootstrap \
--prefix={{ prefix }} \
--parallel={{ hw.concurrency }} \
--datadir=/var \
--docdir=/share/doc \
--mandir=/share/man \
--system-zlib \
--system-bzip2 \
--system-curl \
-- \
-DCMake_BUILD_LTO=ON
make --jobs {{ hw.concurrency }} install
2022-08-31 21:05:21 +03:00
rm -rf {{prefix}}/share/doc # docs are online
2022-08-02 05:50:33 +03:00
env:
2022-09-25 16:06:00 +03:00
# tea/cli does this for things that depend on cmake, but we *are* cmake so…
CMAKE_PREFIX_PATH: ${{deps.curl.se.prefix}}:${{deps.sourceware.org/bzip2.prefix}}:${{deps.zlib.net.prefix}}
2022-08-02 05:50:33 +03:00
error-log:
Bootstrap.cmk/cmake_bootstrap.log
test:
script:
cmake --version