mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
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
|
|
rm -rf {{prefix}}/share/doc # docs are online
|
|
env:
|
|
# 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}}
|
|
error-log:
|
|
Bootstrap.cmk/cmake_bootstrap.log
|
|
|
|
test:
|
|
script:
|
|
cmake --version
|