mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
587441621e
commit
aaa455a539
1 changed files with 11 additions and 1 deletions
|
@ -26,6 +26,14 @@ build:
|
||||||
cmake --build build_static
|
cmake --build build_static
|
||||||
cmake --install build_static
|
cmake --install build_static
|
||||||
- install build_static/liblib/libnetcdf.a {{prefix}}/lib/
|
- install build_static/liblib/libnetcdf.a {{prefix}}/lib/
|
||||||
|
- run: |
|
||||||
|
sed -E -i.bak \
|
||||||
|
-e "s:{{pkgx.prefix}}:\$\{_IMPORT_PREFIX\}/../../..:g" \
|
||||||
|
-e '/^ INTERFACE_INCLUDE_DIRECTORIES/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/include|/v\1/include|g' \
|
||||||
|
-e '/^ INTERFACE_LINK_LIBRARIES/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/lib|/v\1/lib|g' \
|
||||||
|
*.cmake
|
||||||
|
rm *.cmake.bak
|
||||||
|
working-directory: ${{prefix}}/lib/cmake/netCDF
|
||||||
- run: |
|
- run: |
|
||||||
sed -i.bak \
|
sed -i.bak \
|
||||||
-e "s|$PKGX_DIR|\${PKGX_DIR}|g" \
|
-e "s|$PKGX_DIR|\${PKGX_DIR}|g" \
|
||||||
|
@ -60,7 +68,9 @@ provides:
|
||||||
- bin/ncgen
|
- bin/ncgen
|
||||||
- bin/ncgen3
|
- bin/ncgen3
|
||||||
test:
|
test:
|
||||||
|
dependencies:
|
||||||
|
gnu.org/gcc: '*'
|
||||||
script:
|
script:
|
||||||
- cc test.c -lnetcdf -o test
|
- gcc test.c -lnetcdf -o test
|
||||||
- ./test | grep {{version}}
|
- ./test | grep {{version}}
|
||||||
- nc-config --version | grep {{version}}
|
- nc-config --version | grep {{version}}
|
||||||
|
|
Loading…
Reference in a new issue