mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fix(folly)
version strings should be majored
This commit is contained in:
parent
04795f10d1
commit
5f17329468
|
@ -32,18 +32,24 @@ build:
|
||||||
# our default build directory has a `+` in it which breaks facebook’s
|
# our default build directory has a `+` in it which breaks facebook’s
|
||||||
# piss awful code.
|
# piss awful code.
|
||||||
#TODO don’t use exotic characters in our build directories
|
#TODO don’t 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}}
|
||||||
|
|
Loading…
Reference in a new issue