Skip to content

Commit e11d05f

Browse files
committed
tree_sitter_java_jll build 0.16.0+0
1 parent 3baa0ed commit e11d05f

18 files changed

+835
-0
lines changed

Artifacts.toml

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
[[tree_sitter_java]]
2+
arch = "aarch64"
3+
git-tree-sha1 = "2da56fa06531053d7d20b5d6d9a636245b3ee751"
4+
libc = "glibc"
5+
os = "linux"
6+
7+
[[tree_sitter_java.download]]
8+
sha256 = "fd4dce0af1fe3e276c51ce339ffee45463cfae8fe81eb4edd7a2f36152eb99d5"
9+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.aarch64-linux-gnu.tar.gz"
10+
[[tree_sitter_java]]
11+
arch = "aarch64"
12+
git-tree-sha1 = "40e0124ce3b3637da4d9909b1b1da8951524b465"
13+
libc = "musl"
14+
os = "linux"
15+
16+
[[tree_sitter_java.download]]
17+
sha256 = "bb4447e04fbf62187797f26a6b8b655da7072bd6a3f5918e2d9dd5658779571e"
18+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.aarch64-linux-musl.tar.gz"
19+
[[tree_sitter_java]]
20+
arch = "armv7l"
21+
git-tree-sha1 = "6dfc2151f293e5ae942c10502338b2ef8f26114a"
22+
libc = "glibc"
23+
os = "linux"
24+
25+
[[tree_sitter_java.download]]
26+
sha256 = "2bd160a08f6433e7cf078534cf822c657316d86e27208e07c4867e278adf8e81"
27+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.armv7l-linux-gnueabihf.tar.gz"
28+
[[tree_sitter_java]]
29+
arch = "armv7l"
30+
git-tree-sha1 = "609f83d2ef48d41e17c88b92d68aa8236cae1078"
31+
libc = "musl"
32+
os = "linux"
33+
34+
[[tree_sitter_java.download]]
35+
sha256 = "d6ff5c8bfd5b94ab998cbb266432e91ad31c628169f7bbc271fe63d5b83cdc51"
36+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.armv7l-linux-musleabihf.tar.gz"
37+
[[tree_sitter_java]]
38+
arch = "i686"
39+
git-tree-sha1 = "2f77c4cc22aa6482ab20897a746d410ea67c75bc"
40+
libc = "glibc"
41+
os = "linux"
42+
43+
[[tree_sitter_java.download]]
44+
sha256 = "31f360778b7f174f13fef142a292a85bee48c2fd230463681b9cce48673f9b20"
45+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.i686-linux-gnu.tar.gz"
46+
[[tree_sitter_java]]
47+
arch = "i686"
48+
git-tree-sha1 = "7dbc20e4fdfef26f763bc60d17a1658ec95f0f1b"
49+
libc = "musl"
50+
os = "linux"
51+
52+
[[tree_sitter_java.download]]
53+
sha256 = "37e0eba13e3810b68f4e5e99492021f6ee73ff07fb51d866c8bf61171e6cdd78"
54+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.i686-linux-musl.tar.gz"
55+
[[tree_sitter_java]]
56+
arch = "i686"
57+
git-tree-sha1 = "7d1fdd0bfbd3917cf0562231feee92aa67f971f4"
58+
os = "windows"
59+
60+
[[tree_sitter_java.download]]
61+
sha256 = "b7ea45d2dbfac50b6c6fb03ff27e8d091410270a8974cdd98e39f8235b3d274e"
62+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.i686-w64-mingw32.tar.gz"
63+
[[tree_sitter_java]]
64+
arch = "powerpc64le"
65+
git-tree-sha1 = "752d2bd62fb2d93027c388e0311d3e16025025c0"
66+
libc = "glibc"
67+
os = "linux"
68+
69+
[[tree_sitter_java.download]]
70+
sha256 = "95d4765594884e7e4ac75f6050e324714df11fec231bc4a5b0ee410f167eaf38"
71+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.powerpc64le-linux-gnu.tar.gz"
72+
[[tree_sitter_java]]
73+
arch = "x86_64"
74+
git-tree-sha1 = "5d111e9871a543b8c9ea35278c663b4f8087e241"
75+
os = "macos"
76+
77+
[[tree_sitter_java.download]]
78+
sha256 = "d658c3776a22f0856b16d616a1ed0b39ea3bad3f239142ccbd722482c5b25879"
79+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.x86_64-apple-darwin14.tar.gz"
80+
[[tree_sitter_java]]
81+
arch = "x86_64"
82+
git-tree-sha1 = "850d8ac5c44a82a2a43b8d3b1d8b90de0fbe185d"
83+
libc = "glibc"
84+
os = "linux"
85+
86+
[[tree_sitter_java.download]]
87+
sha256 = "bfd5be749473128192e1b836c81f1ee2eb983a31ed899e6b4aa7b4f811e9c191"
88+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.x86_64-linux-gnu.tar.gz"
89+
[[tree_sitter_java]]
90+
arch = "x86_64"
91+
git-tree-sha1 = "6b75274b1f9069b8d3b9fe94b5830669e3514063"
92+
libc = "musl"
93+
os = "linux"
94+
95+
[[tree_sitter_java.download]]
96+
sha256 = "6897036ea64d32e6f22e8e5463e3b5c5827f89dae27fef8f7211df8cacb8517c"
97+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.x86_64-linux-musl.tar.gz"
98+
[[tree_sitter_java]]
99+
arch = "x86_64"
100+
git-tree-sha1 = "c6058d3753325a932af97eec6c6d4aa55cde2ef8"
101+
os = "freebsd"
102+
103+
[[tree_sitter_java.download]]
104+
sha256 = "ae5ab8c2f6abd8a40be2ecf4e171be3757df38c38edb6058b03258a02ecd120a"
105+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.x86_64-unknown-freebsd11.1.tar.gz"
106+
[[tree_sitter_java]]
107+
arch = "x86_64"
108+
git-tree-sha1 = "80208ec2a4774030022950c008a3824613a2394e"
109+
os = "windows"
110+
111+
[[tree_sitter_java.download]]
112+
sha256 = "29197e58092bca68b5504f872cce471cc9558a58ebfe9e0ec439cb8df5029599"
113+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_java_jll.jl/releases/download/tree_sitter_java-v0.16.0+0/tree_sitter_java.v0.16.0.x86_64-w64-mingw32.tar.gz"

LICENSE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
The Julia source code within this repository (all files under `src/`) are
2+
released under the terms of the MIT "Expat" License, the text of which is
3+
included below. This license does not apply to the binary package wrapped by
4+
this Julia package and automatically downloaded by the Julia package manager
5+
upon installing this wrapper package. The binary package's license is shipped
6+
alongside the binary itself and can be found within the
7+
`share/licenses/tree_sitter_java` directory within its prefix.
8+
19
MIT License
210

311
Copyright (c) 2020 JuliaBinaryWrappers

Project.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name = "tree_sitter_java_jll"
2+
uuid = "4c072129-1ba8-5d2f-8069-715d74d8ac68"
3+
version = "0.16.0+0"
4+
5+
[deps]
6+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
7+
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
8+
9+
[compat]
10+
julia = "1.0"

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# `tree_sitter_java_jll.jl` (v0.16.0+0)
2+
3+
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl). The originating [`build_tarballs.jl`](https://github.com/JuliaPackaging/Yggdrasil/blob/feddfc2f3c4d7c008e0dfc9a27073f15a29a3fe9/T/tree_sitter_java/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree.
4+
5+
For more details about JLL packages and how to use them, see `BinaryBuilder.jl` [documentation](https://juliapackaging.github.io/BinaryBuilder.jl/dev/jll/).
6+
7+
## Sources
8+
9+
The tarballs for `tree_sitter_java_jll.jl` have been built from these sources:
10+
11+
* compressed archive: https://github.com/tree-sitter/tree-sitter-java/archive/v0.16.0.tar.gz (SHA256 checksum: `41af0051be7f9cfb2b85aece37979d1097fddf538b8984fb7726bf1edea4a7ce`)
12+
* files in directory, relative to originating `build_tarballs.jl`: [`./bundled`](https://github.com/JuliaPackaging/Yggdrasil/tree/feddfc2f3c4d7c008e0dfc9a27073f15a29a3fe9/T/tree_sitter_java/bundled)
13+
14+
## Platforms
15+
16+
`tree_sitter_java_jll.jl` is available for the following platforms:
17+
18+
* `Linux(:aarch64, libc=:glibc)` (`aarch64-linux-gnu`)
19+
* `Linux(:aarch64, libc=:musl)` (`aarch64-linux-musl`)
20+
* `Linux(:armv7l, libc=:glibc, call_abi=:eabihf)` (`armv7l-linux-gnueabihf`)
21+
* `Linux(:armv7l, libc=:musl, call_abi=:eabihf)` (`armv7l-linux-musleabihf`)
22+
* `Linux(:i686, libc=:glibc)` (`i686-linux-gnu`)
23+
* `Linux(:i686, libc=:musl)` (`i686-linux-musl`)
24+
* `Windows(:i686)` (`i686-w64-mingw32`)
25+
* `Linux(:powerpc64le, libc=:glibc)` (`powerpc64le-linux-gnu`)
26+
* `MacOS(:x86_64)` (`x86_64-apple-darwin14`)
27+
* `Linux(:x86_64, libc=:glibc)` (`x86_64-linux-gnu`)
28+
* `Linux(:x86_64, libc=:musl)` (`x86_64-linux-musl`)
29+
* `FreeBSD(:x86_64)` (`x86_64-unknown-freebsd11.1`)
30+
* `Windows(:x86_64)` (`x86_64-w64-mingw32`)
31+
32+
## Products
33+
34+
The code bindings within this package are autogenerated from the following `Products`:
35+
36+
* `LibraryProduct`: `libtreesitter_java`

src/tree_sitter_java_jll.jl

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
module tree_sitter_java_jll
2+
3+
if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel"))
4+
@eval Base.Experimental.@optlevel 0
5+
end
6+
7+
if VERSION < v"1.3.0-rc4"
8+
# We lie a bit in the registry that JLL packages are usable on Julia 1.0-1.2.
9+
# This is to allow packages that might want to support Julia 1.0 to get the
10+
# benefits of a JLL package on 1.3 (requiring them to declare a dependence on
11+
# this JLL package in their Project.toml) but engage in heroic hacks to do
12+
# something other than actually use a JLL package on 1.0-1.2. By allowing
13+
# this package to be installed (but not loaded) on 1.0-1.2, we enable users
14+
# to avoid splitting their package versions into pre-1.3 and post-1.3 branches
15+
# if they are willing to engage in the kinds of hoop-jumping they might need
16+
# to in order to install binaries in a JLL-compatible way on 1.0-1.2. One
17+
# example of this hoop-jumping being to express a dependency on this JLL
18+
# package, then import it within a `VERSION >= v"1.3"` conditional, and use
19+
# the deprecated `build.jl` mechanism to download the binaries through e.g.
20+
# `BinaryProvider.jl`. This should work well for the simplest packages, and
21+
# require greater and greater heroics for more and more complex packages.
22+
error("Unable to import tree_sitter_java_jll on Julia versions older than 1.3!")
23+
end
24+
25+
using Pkg, Pkg.BinaryPlatforms, Pkg.Artifacts, Libdl
26+
import Base: UUID
27+
28+
# We put these inter-JLL-package API values here so that they are always defined, even if there
29+
# is no underlying wrapper held within this JLL package.
30+
const PATH_list = String[]
31+
const LIBPATH_list = String[]
32+
33+
# Load Artifacts.toml file
34+
artifacts_toml = joinpath(@__DIR__, "..", "Artifacts.toml")
35+
36+
# Extract all platforms
37+
artifacts = Pkg.Artifacts.load_artifacts_toml(artifacts_toml; pkg_uuid=UUID("4c072129-1ba8-5d2f-8069-715d74d8ac68"))
38+
platforms = [Pkg.Artifacts.unpack_platform(e, "tree_sitter_java", artifacts_toml) for e in artifacts["tree_sitter_java"]]
39+
40+
# Filter platforms based on what wrappers we've generated on-disk
41+
filter!(p -> isfile(joinpath(@__DIR__, "wrappers", replace(triplet(p), "arm-" => "armv7l-") * ".jl")), platforms)
42+
43+
# From the available options, choose the best platform
44+
best_platform = select_platform(Dict(p => triplet(p) for p in platforms))
45+
46+
# Silently fail if there's no binaries for this platform
47+
if best_platform === nothing
48+
@debug("Unable to load tree_sitter_java; unsupported platform $(triplet(platform_key_abi()))")
49+
else
50+
# Load the appropriate wrapper. Note that on older Julia versions, we still
51+
# say "arm-linux-gnueabihf" instead of the more correct "armv7l-linux-gnueabihf",
52+
# so we manually correct for that here:
53+
best_platform = replace(best_platform, "arm-" => "armv7l-")
54+
include(joinpath(@__DIR__, "wrappers", "$(best_platform).jl"))
55+
end
56+
57+
end # module tree_sitter_java_jll

src/wrappers/aarch64-linux-gnu.jl

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for tree_sitter_java_jll for aarch64-linux-gnu
2+
export libtreesitter_java
3+
4+
## Global variables
5+
PATH = ""
6+
LIBPATH = ""
7+
LIBPATH_env = "LD_LIBRARY_PATH"
8+
LIBPATH_default = ""
9+
10+
# Relative path to `libtreesitter_java`
11+
const libtreesitter_java_splitpath = ["lib", "libtreesitter_java.so"]
12+
13+
# This will be filled out by __init__() for all products, as it must be done at runtime
14+
libtreesitter_java_path = ""
15+
16+
# libtreesitter_java-specific global declaration
17+
# This will be filled out by __init__()
18+
libtreesitter_java_handle = C_NULL
19+
20+
# This must be `const` so that we can use it with `ccall()`
21+
const libtreesitter_java = "libtreesitter_java.so"
22+
23+
24+
"""
25+
Open all libraries
26+
"""
27+
function __init__()
28+
global artifact_dir = abspath(artifact"tree_sitter_java")
29+
30+
# Initialize PATH and LIBPATH environment variable listings
31+
global PATH_list, LIBPATH_list
32+
global libtreesitter_java_path = normpath(joinpath(artifact_dir, libtreesitter_java_splitpath...))
33+
34+
# Manually `dlopen()` this right now so that future invocations
35+
# of `ccall` with its `SONAME` will find this path immediately.
36+
global libtreesitter_java_handle = dlopen(libtreesitter_java_path)
37+
push!(LIBPATH_list, dirname(libtreesitter_java_path))
38+
39+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
40+
filter!(!isempty, unique!(PATH_list))
41+
filter!(!isempty, unique!(LIBPATH_list))
42+
global PATH = join(PATH_list, ':')
43+
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':')
44+
45+
46+
end # __init__()
47+

src/wrappers/aarch64-linux-musl.jl

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for tree_sitter_java_jll for aarch64-linux-musl
2+
export libtreesitter_java
3+
4+
## Global variables
5+
PATH = ""
6+
LIBPATH = ""
7+
LIBPATH_env = "LD_LIBRARY_PATH"
8+
LIBPATH_default = ""
9+
10+
# Relative path to `libtreesitter_java`
11+
const libtreesitter_java_splitpath = ["lib", "libtreesitter_java.so"]
12+
13+
# This will be filled out by __init__() for all products, as it must be done at runtime
14+
libtreesitter_java_path = ""
15+
16+
# libtreesitter_java-specific global declaration
17+
# This will be filled out by __init__()
18+
libtreesitter_java_handle = C_NULL
19+
20+
# This must be `const` so that we can use it with `ccall()`
21+
const libtreesitter_java = "libtreesitter_java.so"
22+
23+
24+
"""
25+
Open all libraries
26+
"""
27+
function __init__()
28+
global artifact_dir = abspath(artifact"tree_sitter_java")
29+
30+
# Initialize PATH and LIBPATH environment variable listings
31+
global PATH_list, LIBPATH_list
32+
global libtreesitter_java_path = normpath(joinpath(artifact_dir, libtreesitter_java_splitpath...))
33+
34+
# Manually `dlopen()` this right now so that future invocations
35+
# of `ccall` with its `SONAME` will find this path immediately.
36+
global libtreesitter_java_handle = dlopen(libtreesitter_java_path)
37+
push!(LIBPATH_list, dirname(libtreesitter_java_path))
38+
39+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
40+
filter!(!isempty, unique!(PATH_list))
41+
filter!(!isempty, unique!(LIBPATH_list))
42+
global PATH = join(PATH_list, ':')
43+
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':')
44+
45+
46+
end # __init__()
47+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for tree_sitter_java_jll for armv7l-linux-gnueabihf
2+
export libtreesitter_java
3+
4+
## Global variables
5+
PATH = ""
6+
LIBPATH = ""
7+
LIBPATH_env = "LD_LIBRARY_PATH"
8+
LIBPATH_default = ""
9+
10+
# Relative path to `libtreesitter_java`
11+
const libtreesitter_java_splitpath = ["lib", "libtreesitter_java.so"]
12+
13+
# This will be filled out by __init__() for all products, as it must be done at runtime
14+
libtreesitter_java_path = ""
15+
16+
# libtreesitter_java-specific global declaration
17+
# This will be filled out by __init__()
18+
libtreesitter_java_handle = C_NULL
19+
20+
# This must be `const` so that we can use it with `ccall()`
21+
const libtreesitter_java = "libtreesitter_java.so"
22+
23+
24+
"""
25+
Open all libraries
26+
"""
27+
function __init__()
28+
global artifact_dir = abspath(artifact"tree_sitter_java")
29+
30+
# Initialize PATH and LIBPATH environment variable listings
31+
global PATH_list, LIBPATH_list
32+
global libtreesitter_java_path = normpath(joinpath(artifact_dir, libtreesitter_java_splitpath...))
33+
34+
# Manually `dlopen()` this right now so that future invocations
35+
# of `ccall` with its `SONAME` will find this path immediately.
36+
global libtreesitter_java_handle = dlopen(libtreesitter_java_path)
37+
push!(LIBPATH_list, dirname(libtreesitter_java_path))
38+
39+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
40+
filter!(!isempty, unique!(PATH_list))
41+
filter!(!isempty, unique!(LIBPATH_list))
42+
global PATH = join(PATH_list, ':')
43+
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':')
44+
45+
46+
end # __init__()
47+

0 commit comments

Comments
 (0)