Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup abseil recipe and bump version #5756

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions abseil.sh
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
package: abseil
version: "%(tag_basename)s"
tag: "20220623.1"
tag: "20250127.0"
requires:
- "GCC-Toolchain:(?!osx)"
build_requires:
- CMake
- ninja
- alibuild-recipe-tools
source: https://github.com/abseil/abseil-cpp
incremental_recipe: |
make ${JOBS:+-j$JOBS} install
cmake --build . -- ${JOBS:+-j$JOBS} install
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
---
#!/bin/bash -e

mkdir -p $INSTALLROOT
cmake $SOURCEDIR \
-G Ninja \
-DCMAKE_INSTALL_LIBDIR=lib \
${CXXSTD:+-DCMAKE_CXX_STANDARD=$CXXSTD} \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT

make ${JOBS:+-j$JOBS} install
cmake --build . -- ${JOBS:+-j$JOBS} install

# A copy of abseil-cpp for those who want to build it themselves via FETCHCONTENT (e.g. ONNX)
rsync -av $SOURCEDIR/ $INSTALLROOT/src/

Check notice on line 28 in abseil.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Double quote to prevent globbing and word splitting. [SC2086]

Check notice on line 28 in abseil.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Double quote to prevent globbing and word splitting. [SC2086]

# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
alibuild-generate-module --lib --bin --cmake > "$MODULEFILE"
cat >> "$MODULEFILE" <<EoF
prepend-path LD_LIBRARY_PATH \$PKG_ROOT/lib64
EoF