File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 11# a pythia6 recipe based on the one from FairROOT
22package: pythia6
33version: " %(tag_basename)s"
4- tag: " 428-alice2 "
4+ tag: " 428-alice3 "
55source: https://github.com/alisw/pythia6.git
66requires:
77 - GCC-Toolchain:(? ! osx)
88build_requires:
99 - CMake
10+ - ninja-fortran
11+ - alibuild-recipe-tools
1012---
1113#! /bin/sh
1214
1315cmake ${SOURCEDIR} \
16+ -G Ninja \
1417 -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
1518 -DCMAKE_INSTALL_PREFIX=${INSTALLROOT} \
1619 -DCMAKE_INSTALL_LIBDIR=lib
17- make ${JOBS+-j$JOBS }
18- make install
20+ cmake --build . -- ${JOBS: +-j$JOBS } install
1921
2022# Modulefile
2123MODULEDIR=" $INSTALLROOT /etc/modulefiles"
2224MODULEFILE=" $MODULEDIR /$PKGNAME "
2325mkdir -p " $MODULEDIR "
26+ alibuild-generate-module --lib > " $MODULEFILE "
2427cat > " $MODULEFILE " << EoF
25- #%Module1.0
26- proc ModulesHelp { } {
27- global version
28- puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION -@@PKGREVISION@$PKGHASH @@"
29- }
30- set version $PKGVERSION -@@PKGREVISION@$PKGHASH @@
31- module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION -@@PKGREVISION@$PKGHASH @@"
32- # Dependencies
33- module load BASE/1.0
34- # Our environment
35- set PYTHIA6_ROOT \$ ::env(BASEDIR)/$PKGNAME /\$ version
3628setenv PYTHIA6_ROOT \$ PYTHIA6_ROOT
37- prepend-path LD_LIBRARY_PATH \$ PYTHIA6_ROOT/lib
3829prepend-path AGILE_GEN_PATH \$ PYTHIA6_ROOT
3930EoF
4031
You can’t perform that action at this time.
0 commit comments