Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 18 additions & 0 deletions ninja-fortran.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package: ninja-fortran
version: "fortran-%(short_hash)s"
tag: "v1.11.1.g95dee.kitware.jobserver-1"
source: https://github.com/Kitware/ninja
build_requires:
- "GCC-Toolchain:(?!osx)"
- "CMake"
- alibuild-recipe-tools
---
#!/bin/bash

Check notice on line 10 in ninja-fortran.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Invalid script shebang. Use exactly "#!/bin/bash -e" to match aliBuild environment. You may see spurious errors until you fix the shebang. [ali:bad-shebang]
cmake -Bbuild-cmake $SOURCEDIR

Check notice on line 11 in ninja-fortran.sh

View workflow job for this annotation

GitHub Actions / alidistlint

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

mkdir -p $INSTALLROOT/bin

Check notice on line 14 in ninja-fortran.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Double quote to prevent globbing and word splitting. [SC2086]
cp build-cmake/ninja "$INSTALLROOT/bin"

mkdir -p "$INSTALLROOT/etc/modulefiles"
alibuild-generate-module --bin >"$INSTALLROOT/etc/modulefiles/$PKGNAME"
3 changes: 3 additions & 0 deletions ninja.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ build_requires:
- "GCC-Toolchain:(?!osx)"
- "CMake"
- alibuild-recipe-tools
prefer_system: .*
prefer_system_check: |
type ninja
---
#!/bin/bash
cmake -Bbuild-cmake "$SOURCEDIR"
Expand Down