-
Notifications
You must be signed in to change notification settings - Fork 509
/
build_tarballs.jl
41 lines (33 loc) · 1.4 KB
/
build_tarballs.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
include("../common.jl")
gap_version = v"400.1191.001"
gap_lib_version = v"400.1191.000"
name = "cvec"
upstream_version = v"2.7.5" # when you increment this, reset offset to v"0.0.0"
offset = v"0.0.0" # increment this when rebuilding with unchanged upstream_version, e.g. gap_version changes
version = offset_version(upstream_version, offset)
# Collection of sources required to build libsingular-julia
sources = [
ArchiveSource("https://github.com/gap-packages/$(name)/releases/download/v$(upstream_version)/$(name)-$(upstream_version).tar.bz2",
"b9b51356e88f5a4bbdb25edaa41738338567dcdaa0b8a04e4b2807803953e5c5"),
]
# Bash recipe for building across all platforms
script = raw"""
cd cvec*
./configure ${prefix}/share/gap
make -j${nproc}
# copy the loadable module
mkdir -p ${prefix}/lib/gap
cp bin/*/*.so ${prefix}/lib/gap/
install_license LICENSE
"""
name = gap_pkg_name(name)
platforms, dependencies = setup_gap_package(gap_version, gap_lib_version)
# The products that we will ensure are always built
products = [
FileProduct("lib/gap/cvec.so", :cvec),
]
# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
julia_compat="1.6", preferred_gcc_version=v"7")