Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cli11, doctest, tl-expected, reproc, fmt and spdlog to build libm… #16084

Merged
merged 1 commit into from
Mar 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions cli11.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package:
name: cli11
version: 2.4.1
epoch: 0
description: command line parser for C++11
copyright:
- license: BSD-3-Clause

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- make

pipeline:
- uses: git-checkout
with:
expected-commit: f4d0731cebb123ff0ace712c099dffbcd2c58e5a
repository: https://github.com/CLIUtils/CLI11
tag: v${{package.version}}

- uses: cmake/configure
with:
opts: |
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \

- uses: cmake/build

- uses: cmake/install

- uses: strip

update:
enabled: true
github:
identifier: CLIUtils/CLI11
strip-prefix: v
tag-filter: v
45 changes: 45 additions & 0 deletions doctest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package:
name: doctest
version: 2.4.11
epoch: 0
description: C++11/14/17/20/23 single-header testing framework
copyright:
- license: MIT

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- make

pipeline:
- uses: git-checkout
with:
expected-commit: ae7a13539fb71f270b87eb2e874fbac80bc8dda2
repository: https://github.com/doctest/doctest
tag: v${{package.version}}

- uses: cmake/configure
with:
opts: |
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \

# unsure about this flag
# -DOCTEST_WITH_MAIN_IN_STATIC_LIB=OFF \

- uses: cmake/build

- uses: cmake/install

- uses: strip

update:
enabled: true
github:
identifier: doctest/doctest
strip-prefix: v
tag-filter: v
45 changes: 45 additions & 0 deletions fmt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package:
name: fmt
version: 10.2.1
epoch: 0
description: Modern formatting library
copyright:
- license: MIT

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- make

pipeline:
- uses: git-checkout
with:
expected-commit: e69e5f977d458f2650bb346dadf2ad30c5320281
repository: https://github.com/fmtlib/fmt
tag: ${{package.version}}

- uses: cmake/configure
with:
opts: |
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \

- uses: cmake/build

- uses: cmake/install

- uses: strip

subpackages:
- name: ${{package.name}}-dev
pipeline:
- uses: split/dev

update:
enabled: true
github:
identifier: fmtlib/fmt
6 changes: 3 additions & 3 deletions reproc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: reproc
version: 14.2.5
epoch: 0
epoch: 1
description: A cross-platform (C99/C++11) process library
copyright:
- license: MIT
Expand Down Expand Up @@ -37,12 +37,12 @@ subpackages:
- name: ${{package.name}}++
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/include
mkdir -p ${{targets.contextdir}}/usr/include/reproc
mkdir -p ${{targets.contextdir}}/usr/lib/pkgconfig
mkdir -p ${{targets.contextdir}}/usr/lib/cmake
- runs: |
mv ${{targets.destdir}}/usr/lib/libreproc++* ${{targets.contextdir}}/usr/lib/
mv ${{targets.destdir}}/usr/include/reproc++/* ${{targets.contextdir}}/usr/include
mv ${{targets.destdir}}/usr/include/reproc++ ${{targets.contextdir}}/usr/include
mv ${{targets.destdir}}/usr/lib/pkgconfig/reproc++.pc ${{targets.contextdir}}/usr/lib/pkgconfig
mv ${{targets.destdir}}/usr/lib/cmake/reproc++ ${{targets.contextdir}}/usr/lib/cmake
description: reproc++
Expand Down
56 changes: 56 additions & 0 deletions spdlog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package:
name: spdlog
version: 1.13.0
epoch: 0
description: Fast C++ logging library.
copyright:
- license: MIT

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- fmt-dev
- make

pipeline:
- uses: git-checkout
with:
expected-commit: 7c02e204c92545f869e2f04edaab1f19fe8b19fd
repository: https://github.com/gabime/spdlog
tag: v${{package.version}}

- uses: cmake/configure
with:
opts: |
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DSPDLOG_BUILD_BENCH=OFF \
-DSPDLOG_BUILD_TESTS=OFF \
-DSPDLOG_SANITIZE_ADDRESS=OFF \
-DSPDLOG_FMT_EXTERNAL=ON \
-DSPDLOG_BUILD_SHARED=ON \
-DSPDLOG_BUILD_EXAMPLE=OFF \
# to verify if this is the right flag
# -DSPDLOG_FMT_EXTERNAL_HO=ON \

- uses: cmake/build

- uses: cmake/install

- uses: strip

subpackages:
- name: ${{package.name}}-dev
pipeline:
- uses: split/dev

update:
enabled: true
github:
identifier: gabime/spdlog
strip-prefix: v
tag-filter: v
42 changes: 42 additions & 0 deletions tl-expected.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package:
name: tl-expected
version: 1.1.0
epoch: 0
description: C++11/14/17 std::expected with functional-style extensions
copyright:
- license: CC0-1.0

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- make

pipeline:
- uses: git-checkout
with:
expected-commit: 292eff8bd8ee230a7df1d6a1c00c4ea0eb2f0362
repository: https://github.com/TartanLlama/expected
tag: v${{package.version}}

- uses: cmake/configure
with:
opts: |
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \

- uses: cmake/build

- uses: cmake/install

- uses: strip

update:
enabled: true
github:
identifier: TartanLlama/expected
strip-prefix: v
tag-filter: v