fix(folly)

version strings should be majored
This commit is contained in:
Jacob Heider 2023-08-14 15:06:41 -04:00
parent 04795f10d1
commit 5f17329468
No known key found for this signature in database
GPG key ID: A98011B5713535BF

View file

@ -32,18 +32,24 @@ build:
# our default build directory has a `+` in it which breaks facebooks # our default build directory has a `+` in it which breaks facebooks
# piss awful code. # piss awful code.
#TODO dont use exotic characters in our build directories #TODO dont use exotic characters in our build directories
script: | script:
test -d xyz.tea.srcs && rm -rf xyz.tea.srcs - test -d xyz.tea.srcs && rm -rf xyz.tea.srcs
mv $SRCROOT xyz.tea.srcs - mv $SRCROOT xyz.tea.srcs
cmake $ARGS -S xyz.tea.srcs -B . - cmake $ARGS -S xyz.tea.srcs -B .
make --jobs {{hw.concurrency}} install - make --jobs {{hw.concurrency}} install
sed -i.bak "s:$(tea --prefix):\$\{_IMPORT_PREFIX\}/../../..:g" "{{prefix}}"/lib/cmake/folly/folly-targets.cmake - run: |
rm "{{prefix}}"/lib/cmake/folly/folly-targets.cmake.bak sed -E -i.bak \
-e "s:$(tea --prefix):\$\{_IMPORT_PREFIX\}/../../..:g" \
-e '/^ INTERFACE_INCLUDE_DIRECTORIES/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/include|/v\1/include|g' \
folly-targets.cmake
rm folly-targets.cmake.bak
working-directory: ${{prefix}}/lib/cmake/folly
cd {{prefix}}/lib/pkgconfig - run: |
sed -i.bak -e 's/-I[^ ]* *//g' ./libfolly.pc sed -i.bak -e 's/-I[^ ]* *//g' libfolly.pc
rm *.bak rm libfolly.pc.bak
working-directory: ${{prefix}}/lib/pkgconfig
env: env:
ARGS: ARGS:
- -DCMAKE_INSTALL_PREFIX={{prefix}} - -DCMAKE_INSTALL_PREFIX={{prefix}}