diff options
author | getzze | 2019-08-06 23:57:29 +0100 |
---|---|---|
committer | getzze | 2019-08-06 23:57:29 +0100 |
commit | 0258bed3a85d2b5f206c6689fc2de08d6d326fc2 (patch) | |
tree | b4b0a910aad1407446eecb1dcc16fc05a09bb1fd /deps.jl | |
parent | ad053e0d484aad35f61be86de14f661204ab75e1 (diff) | |
download | aur-julia-arpack.tar.gz |
remove julia-distrohelper dependency
Diffstat (limited to 'deps.jl')
-rw-r--r-- | deps.jl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/deps.jl b/deps.jl new file mode 100644 index 000000000000..71eeacc74343 --- /dev/null +++ b/deps.jl @@ -0,0 +1,18 @@ + +if isdefined((@static VERSION < v"0.7.0-DEV.484" ? current_module() : @__MODULE__), :Compat) + import Compat.Libdl +elseif VERSION >= v"0.7.0-DEV.3382" + import Libdl +end +const libarpack = joinpath(dirname(@__FILE__), "usr/lib/libarpack.so") +function check_deps() + global libarpack + if !isfile(libarpack) + error("$(libarpack) does not exist, Please re-run Pkg.build(\"Arpack\"), and restart Julia.") + end + + if Libdl.dlopen_e(libarpack) in (C_NULL, nothing) + error("$(libarpack) cannot be opened, Please re-run Pkg.build(\"Arpack\"), and restart Julia.") + end + +end |