Skip to content

Commit

Permalink
[libsingular_julia] various updates (#6853)
Browse files Browse the repository at this point in the history
- switch to new repository
- store tree hash of the source code
- update Singular_jll dependency to latest
  • Loading branch information
fingolfin authored Jun 9, 2023
1 parent 426b310 commit 580197e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions L/libsingular_julia/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ uuid = Base.UUID("a83860b7-747b-57cf-bf1f-3e79990d037f")
delete!(Pkg.Types.get_last_stdlibs(v"1.6.3"), uuid)

name = "libsingular_julia"
version = v"0.32.1"
version = v"0.33.0"

# reminder: change the above version if restricting the supported julia versions
julia_versions = [v"1.6.3", v"1.7", v"1.8", v"1.9", v"1.10"]
julia_compat = join("~" .* string.(getfield.(julia_versions, :major)) .* "." .* string.(getfield.(julia_versions, :minor)), ", ")

# Collection of sources required to build libsingular-julia
sources = [
GitSource("https://github.com/oscar-system/libsingular-julia.git", "eff1f172c070325887361c63b85b614de7e6b675"),
GitSource("https://github.com/oscar-system/Singular.jl.git", "14fdb93f83a7bc5a1ba396b85cf1a4fa9eff49d4"),
]

# Bash recipe for building across all platforms
script = raw"""
cd libsingular-julia
cd Singular.jl/deps/src
cmake . -B build \
-DJulia_PREFIX="$prefix" \
-DSingular_PREFIX="$prefix" \
Expand All @@ -34,6 +34,9 @@ cmake . -B build \
VERBOSE=ON cmake --build build --config Release --target install -- -j${nproc}
# store tree hash of the source directory
git ls-tree HEAD .. | cut -c13-52 > ${libdir}/libsingular_julia.treehash
install_license LICENSE.md
"""

Expand All @@ -55,7 +58,7 @@ dependencies = [
BuildDependency("GMP_jll"),
BuildDependency("MPFR_jll"),
Dependency("libcxxwrap_julia_jll"),
Dependency("Singular_jll", compat = "~403.202.200"),
Dependency("Singular_jll", compat = "~403.203.200"),
]

# Build the tarballs, and possibly a `build.jl` as well.
Expand Down

0 comments on commit 580197e

Please sign in to comment.