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
# piss awful code.
#TODO dont use exotic characters in our build directories
script: |
test -d xyz.tea.srcs && rm -rf xyz.tea.srcs
mv $SRCROOT xyz.tea.srcs
cmake $ARGS -S xyz.tea.srcs -B .
make --jobs {{hw.concurrency}} install
script:
- test -d xyz.tea.srcs && rm -rf xyz.tea.srcs
- mv $SRCROOT xyz.tea.srcs
- cmake $ARGS -S xyz.tea.srcs -B .
- make --jobs {{hw.concurrency}} install
sed -i.bak "s:$(tea --prefix):\$\{_IMPORT_PREFIX\}/../../..:g" "{{prefix}}"/lib/cmake/folly/folly-targets.cmake
rm "{{prefix}}"/lib/cmake/folly/folly-targets.cmake.bak
- run: |
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
sed -i.bak -e 's/-I[^ ]* *//g' ./libfolly.pc
rm *.bak
- run: |
sed -i.bak -e 's/-I[^ ]* *//g' libfolly.pc
rm libfolly.pc.bak
working-directory: ${{prefix}}/lib/pkgconfig
env:
ARGS:
- -DCMAKE_INSTALL_PREFIX={{prefix}}