pantry/projects/github.com/nemtrif/utfcpp/package.yml

55 lines
1.4 KiB
YAML
Raw Normal View History

distributable:
url: https://github.com/nemtrif/utfcpp/archive/v{{version}}.tar.gz
strip-components: 1
display-name: utf8cpp
2023-10-31 22:16:49 +03:00
versions:
github: nemtrif/utfcpp
build:
dependencies:
cmake.org: '*'
darwin:
gnu.org/gcc: '*'
working-directory: build
script:
- cmake .. $ARGS
- make --jobs {{ hw.concurrency }} install
2023-11-08 02:20:43 +03:00
# currently, their builds are just broken :(
- run: |
2023-12-04 18:15:52 +03:00
if test -d include/utf8cpp; then
mv include/utf8cpp/* include/
rmdir include/utf8cpp
fi
2023-11-08 02:20:43 +03:00
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: '*'
2023-11-08 02:20:43 +03:00
gnu.org/gcc: '*'
gnu.org/make: '*'
script:
2023-11-08 02:20:43 +03:00
# 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
2023-12-04 18:15:52 +03:00
- ./utf8_append