pantry/projects/github.com/nemtrif/utfcpp/package.yml
Jacob Heider c592909465 fix(utfcpp)
closes #3957
closes #3884
2023-11-07 18:48:16 -05:00

50 lines
1.2 KiB
YAML

distributable:
url: https://github.com/nemtrif/utfcpp/archive/v{{version}}.tar.gz
strip-components: 1
display-name: utf8cpp
versions:
github: nemtrif/utfcpp
build:
dependencies:
cmake.org: '*'
darwin:
gnu.org/gcc: '*'
working-directory: build
script:
- cmake .. $ARGS
- make --jobs {{ hw.concurrency }} install
# currently, their builds are just broken :(
- run: |
ln -s . include/utf8cpp
mkdir -p lib/cmake
ln -s ../../share/utf8cpp/cmake lib/cmake/utf8cpp
working-directory: ${{prefix}}
if: '>=4'
env:
ARGS:
- -DUTF8_INSTALL:BOOL=ON
- -DUTF8_SAMPLES:BOOL=OFF
- -DUTF8_TESTS:BOOL=OFF
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_FIND_FRAMEWORK=LAST
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
test:
dependencies:
cmake.org: '*'
gnu.org/gcc: '*'
gnu.org/make: '*'
script:
# currently, their builds are just broken :(
- run: sed -i.bak 's/PRIVATE utf8cpp/PRIVATE utf8cpp::utf8cpp/g' CMakeLists.txt
if: '>=4'
- cmake . -DCMAKE_PREFIX_PATH:STRING="test" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
- make
- ./utf8_append