11# Note that this script can accept some limited command-line arguments, run
22# `julia build_tarballs.jl --help` to see a usage message.
33using BinaryBuilder
4+ using Pkg
45
56name = " FastJet_Julia_Wrapper"
6- version_number = get (ENV , " TRAVIS_TAG" , " " )
7- if version_number == " "
8- version_number = " v0.99"
9- end
10- version = VersionNumber (version_number)
7+ version = v " 0.7.0"
118
129# Collection of sources required to build Fjwbuilder
1310sources = [
14- " FastJet_Julia_Wrapper" ,
11+ DirectorySource ( " FastJet_Julia_Wrapper" ) ,
1512 ArchiveSource (" https://julialang-s3.julialang.org/bin/linux/x64/1.3/julia-1.3.1-linux-x86_64.tar.gz" , " faa707c8343780a6fe5eaf13490355e8190acf8e2c189b9e7ecbddb0fa2643ad" ; unpack_target= " julia-x86_64-linux-gnu" ),
1613]
1714
1815# Bash recipe for building across all platforms
1916script = raw """
20- Julia_PREFIX=${WORKSPACE}/srcdir/julia-$target/julia-1.3.1
17+ case "$target" in
18+ arm-linux-gnueabihf|x86_64-linux-gnu)
19+ Julia_PREFIX=${WORKSPACE}/srcdir/julia-$target/julia-1.3.1
20+ ;;
21+ x86_64-apple-darwin14|x86_64-w64-mingw32)
22+ Julia_PREFIX=${WORKSPACE}/srcdir/julia-$target/juliabin
23+ ;;
24+ esac
2125cd ${WORKSPACE}/srcdir
2226mkdir build && cd build
23- export JlCxx_DIR=${prefix}
2427cmake -DJulia_PREFIX=${Julia_PREFIX} -DCMAKE_INSTALL_PREFIX=${prefix} -DCMAKE_FIND_ROOT_PATH=${prefix} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} -DCMAKE_BUILD_TYPE=Release ..
2528VERBOSE=ON cmake --build . --config Release --target install
29+ install_license $WORKSPACE/srcdir/LICENSE.md
2630"""
2731
2832# These are the platforms we will build for by default, unless further
@@ -41,7 +45,8 @@ products = [
4145dependencies = [
4246 Dependency (" libcxxwrap_julia_jll" ),
4347 Dependency (" FastJet_jll" )
48+ # Dependency(PackageSpec(;name="FastJet_jll", url="https://github.com/jstrube/FastJet_jll.jl"))
4449]
4550
4651# Build the tarballs, and possibly a `build.jl` as well.
47- build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; preferred_gcc_version= v "8 " )
52+ build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; preferred_gcc_version= v "9 " )
0 commit comments