Skip to content

Commit

Permalink
GR_jll build 0.51.2+0
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbuild committed Aug 27, 2020
1 parent 1701805 commit 4be4c7c
Show file tree
Hide file tree
Showing 13 changed files with 1,403 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
override/
66 changes: 66 additions & 0 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[[GR]]
arch = "armv7l"
cxxstring_abi = "cxx03"
git-tree-sha1 = "04be617805c1020590d9d312ad60b190ffa91f2d"
libc = "glibc"
os = "linux"

[[GR.download]]
sha256 = "cf00ef6c17a48b48210c69556f358036994716afd9418a7a2ff39284a134f8f7"
url = "https://github.com/JuliaBinaryWrappers/GR_jll.jl/releases/download/GR-v0.51.2+0/GR.v0.51.2.armv7l-linux-gnueabihf-cxx03.tar.gz"
[[GR]]
arch = "armv7l"
cxxstring_abi = "cxx11"
git-tree-sha1 = "470be223d974fd945d8a7890196ae7199f750438"
libc = "glibc"
os = "linux"

[[GR.download]]
sha256 = "08071d98e5296ab39dd57cf2b9004109a5e2680a9ee36bdc704d17b85c395db7"
url = "https://github.com/JuliaBinaryWrappers/GR_jll.jl/releases/download/GR-v0.51.2+0/GR.v0.51.2.armv7l-linux-gnueabihf-cxx11.tar.gz"
[[GR]]
arch = "x86_64"
git-tree-sha1 = "35fbd0565157bb11e835f17fd1775134df7fc0f8"
os = "macos"

[[GR.download]]
sha256 = "dd64309df7023b8729f30bc91e4aa57995c3fd3fe63e543a0493381a6bc143b5"
url = "https://github.com/JuliaBinaryWrappers/GR_jll.jl/releases/download/GR-v0.51.2+0/GR.v0.51.2.x86_64-apple-darwin14.tar.gz"
[[GR]]
arch = "x86_64"
cxxstring_abi = "cxx03"
git-tree-sha1 = "e33ec515eb79e210cb3c49009907c7d0ef5623d5"
libc = "glibc"
os = "linux"

[[GR.download]]
sha256 = "b3c96d50dce3e6070430abf9b0c5902070decdf61b6fe87484ad312eabc98447"
url = "https://github.com/JuliaBinaryWrappers/GR_jll.jl/releases/download/GR-v0.51.2+0/GR.v0.51.2.x86_64-linux-gnu-cxx03.tar.gz"
[[GR]]
arch = "x86_64"
cxxstring_abi = "cxx11"
git-tree-sha1 = "7c49843190e331d69f9c91fcfeb930e8401eb34c"
libc = "glibc"
os = "linux"

[[GR.download]]
sha256 = "a99ac2c1e2811cc2e7539ae16b85e467e2a10a61a4d141bb64c44d03fc14bb98"
url = "https://github.com/JuliaBinaryWrappers/GR_jll.jl/releases/download/GR-v0.51.2+0/GR.v0.51.2.x86_64-linux-gnu-cxx11.tar.gz"
[[GR]]
arch = "x86_64"
cxxstring_abi = "cxx03"
git-tree-sha1 = "08d85505122a6071e66c07d1dceda6d623b43f6c"
os = "windows"

[[GR.download]]
sha256 = "48e7baa2b5944a69e026459d43a2bc579b0f96c341cbea0a3a63f133fb4dcc62"
url = "https://github.com/JuliaBinaryWrappers/GR_jll.jl/releases/download/GR-v0.51.2+0/GR.v0.51.2.x86_64-w64-mingw32-cxx03.tar.gz"
[[GR]]
arch = "x86_64"
cxxstring_abi = "cxx11"
git-tree-sha1 = "d71c814540e222a8db657307735b2332c4136ac6"
os = "windows"

[[GR.download]]
sha256 = "283979419263b8b2d624b341c79838e62130e4bb1ff7e4e5209c3d9edf9f648c"
url = "https://github.com/JuliaBinaryWrappers/GR_jll.jl/releases/download/GR-v0.51.2+0/GR.v0.51.2.x86_64-w64-mingw32-cxx11.tar.gz"
8 changes: 8 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
The Julia source code within this repository (all files under `src/`) are
released under the terms of the MIT "Expat" License, the text of which is
included below. This license does not apply to the binary package wrapped by
this Julia package and automatically downloaded by the Julia package manager
upon installing this wrapper package. The binary package's license is shipped
alongside the binary itself and can be found within the
`share/licenses/GR` directory within its prefix.

MIT License

Copyright (c) 2020 JuliaBinaryWrappers
Expand Down
22 changes: 22 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name = "GR_jll"
uuid = "d2c73de3-f751-5644-a686-071e5b155ba9"
version = "0.51.2+0"

[deps]
Qt_jll = "ede63266-ebff-546c-83e0-1c6fb6d0efc8"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Zlib_jll = "83775a58-1f1d-513f-b197-d71354ab007a"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Fontconfig_jll = "a3f928ae-7b40-5064-980b-68af3947d34b"
Pixman_jll = "30392449-352a-5448-841d-b1acce4e97dc"
FFMPEG_jll = "b22a6f82-2f65-5046-a5b2-351ab43fb4e5"
JpegTurbo_jll = "aacddb02-875f-59d6-b918-886e6ef4fbf8"
Cairo_jll = "83423d85-b0ee-5818-9007-b63ccbeb887a"
Libtiff_jll = "89763e89-9b03-5906-acba-b20f662cd828"
GLFW_jll = "0656b61e-2033-5cc2-a64a-77c0f6c09b89"
Bzip2_jll = "6e34b625-4abd-537c-b88f-471c36dfa7a0"
Qhull_jll = "784f63db-0788-585a-bace-daefebcd302b"
libpng_jll = "b53b4c65-9356-5827-b1ea-8c7a1a84506f"

[compat]
julia = "1.0"
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# `GR_jll.jl` (v0.51.2+0)

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/1a0b7ffc0cd7837151926559016a22a2b4bb8402/G/GR/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree. If you have any issue, please report it to the Yggdrasil [bug tracker](https://github.com/JuliaPackaging/Yggdrasil/issues).

For more details about JLL packages and how to use them, see `BinaryBuilder.jl` [documentation](https://juliapackaging.github.io/BinaryBuilder.jl/dev/jll/).

## Sources

The tarballs for `GR_jll.jl` have been built from these sources:

* git repository: https://github.com/sciapp/gr.git (revision: `ad3fe53dbc5396cba47ad75364da69ad6a1f405f`)

## Platforms

`GR_jll.jl` is available for the following platforms:

* `Linux(:armv7l, libc=:glibc, call_abi=:eabihf, compiler_abi=CompilerABI(cxxstring_abi=:cxx03))` (`armv7l-linux-gnueabihf-cxx03`)
* `Linux(:armv7l, libc=:glibc, call_abi=:eabihf, compiler_abi=CompilerABI(cxxstring_abi=:cxx11))` (`armv7l-linux-gnueabihf-cxx11`)
* `MacOS(:x86_64)` (`x86_64-apple-darwin14`)
* `Linux(:x86_64, libc=:glibc, compiler_abi=CompilerABI(cxxstring_abi=:cxx03))` (`x86_64-linux-gnu-cxx03`)
* `Linux(:x86_64, libc=:glibc, compiler_abi=CompilerABI(cxxstring_abi=:cxx11))` (`x86_64-linux-gnu-cxx11`)
* `Windows(:x86_64, compiler_abi=CompilerABI(cxxstring_abi=:cxx03))` (`x86_64-w64-mingw32-cxx03`)
* `Windows(:x86_64, compiler_abi=CompilerABI(cxxstring_abi=:cxx11))` (`x86_64-w64-mingw32-cxx11`)

## Dependencies

The following JLL packages are required by `GR_jll.jl`:

* [`Bzip2_jll`](https://github.com/JuliaBinaryWrappers/Bzip2_jll.jl)
* [`Cairo_jll`](https://github.com/JuliaBinaryWrappers/Cairo_jll.jl)
* [`FFMPEG_jll`](https://github.com/JuliaBinaryWrappers/FFMPEG_jll.jl)
* [`Fontconfig_jll`](https://github.com/JuliaBinaryWrappers/Fontconfig_jll.jl)
* [`GLFW_jll`](https://github.com/JuliaBinaryWrappers/GLFW_jll.jl)
* [`JpegTurbo_jll`](https://github.com/JuliaBinaryWrappers/JpegTurbo_jll.jl)
* [`Libtiff_jll`](https://github.com/JuliaBinaryWrappers/Libtiff_jll.jl)
* [`Pixman_jll`](https://github.com/JuliaBinaryWrappers/Pixman_jll.jl)
* [`Qhull_jll`](https://github.com/JuliaBinaryWrappers/Qhull_jll.jl)
* [`Qt_jll`](https://github.com/JuliaBinaryWrappers/Qt_jll.jl)
* [`Zlib_jll`](https://github.com/JuliaBinaryWrappers/Zlib_jll.jl)
* [`libpng_jll`](https://github.com/JuliaBinaryWrappers/libpng_jll.jl)

## Products

The code bindings within this package are autogenerated from the following `Products`:

* `ExecutableProduct`: `gksqt`
* `LibraryProduct`: `libGKS`
* `LibraryProduct`: `libGR`
* `LibraryProduct`: `libGR3`
* `LibraryProduct`: `libGRM`
101 changes: 101 additions & 0 deletions src/GR_jll.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
module GR_jll

if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel"))
@eval Base.Experimental.@optlevel 0
end

if VERSION < v"1.3.0-rc4"
# We lie a bit in the registry that JLL packages are usable on Julia 1.0-1.2.
# This is to allow packages that might want to support Julia 1.0 to get the
# benefits of a JLL package on 1.3 (requiring them to declare a dependence on
# this JLL package in their Project.toml) but engage in heroic hacks to do
# something other than actually use a JLL package on 1.0-1.2. By allowing
# this package to be installed (but not loaded) on 1.0-1.2, we enable users
# to avoid splitting their package versions into pre-1.3 and post-1.3 branches
# if they are willing to engage in the kinds of hoop-jumping they might need
# to in order to install binaries in a JLL-compatible way on 1.0-1.2. One
# example of this hoop-jumping being to express a dependency on this JLL
# package, then import it within a `VERSION >= v"1.3"` conditional, and use
# the deprecated `build.jl` mechanism to download the binaries through e.g.
# `BinaryProvider.jl`. This should work well for the simplest packages, and
# require greater and greater heroics for more and more complex packages.
error("Unable to import GR_jll on Julia versions older than 1.3!")
end

using Pkg, Pkg.BinaryPlatforms, Pkg.Artifacts, Libdl
import Base: UUID

wrapper_available = false
"""
is_available()
Return whether the artifact is available for the current platform.
"""
is_available() = wrapper_available

# We put these inter-JLL-package API values here so that they are always defined, even if there
# is no underlying wrapper held within this JLL package.
const PATH_list = String[]
const LIBPATH_list = String[]

# We determine, here, at compile-time, whether our JLL package has been dev'ed and overridden
override_dir = joinpath(dirname(@__DIR__), "override")
if isdir(override_dir)
function find_artifact_dir()
return override_dir
end
else
function find_artifact_dir()
return artifact"GR"
end

"""
dev_jll()
Check this package out to the dev package directory (usually ~/.julia/dev),
copying the artifact over to a local `override` directory, allowing package
developers to experiment with a locally-built binary.
"""
function dev_jll()
# First, `dev` out the package, but don't effect the current project
mktempdir() do temp_env
Pkg.activate(temp_env) do
Pkg.develop("GR_jll")
end
end
# Create the override directory
override_dir = joinpath(Pkg.devdir(), "GR_jll", "override")
# Copy the current artifact contents into that directory
if !isdir(override_dir)
cp(artifact"GR", override_dir)
end
# Force recompilation of that package, just in case it wasn't dev'ed before
touch(joinpath(Pkg.devdir(), "GR_jll", "src", "GR_jll.jl"))
@info("GR_ll dev'ed out to /depot/dev/GR_jll with pre-populated override directory")
end
end
# Load Artifacts.toml file
artifacts_toml = joinpath(@__DIR__, "..", "Artifacts.toml")

# Extract all platforms
artifacts = Pkg.Artifacts.load_artifacts_toml(artifacts_toml; pkg_uuid=UUID("d2c73de3-f751-5644-a686-071e5b155ba9"))
platforms = [Pkg.Artifacts.unpack_platform(e, "GR", artifacts_toml) for e in artifacts["GR"]]

# Filter platforms based on what wrappers we've generated on-disk
filter!(p -> isfile(joinpath(@__DIR__, "wrappers", replace(triplet(p), "arm-" => "armv7l-") * ".jl")), platforms)

# From the available options, choose the best platform
best_platform = select_platform(Dict(p => triplet(p) for p in platforms))

# Silently fail if there's no binaries for this platform
if best_platform === nothing
@debug("Unable to load GR; unsupported platform $(triplet(platform_key_abi()))")
else
# Load the appropriate wrapper. Note that on older Julia versions, we still
# say "arm-linux-gnueabihf" instead of the more correct "armv7l-linux-gnueabihf",
# so we manually correct for that here:
best_platform = replace(best_platform, "arm-" => "armv7l-")
include(joinpath(@__DIR__, "wrappers", "$(best_platform).jl"))
end

end # module GR_jll
Loading

0 comments on commit 4be4c7c

Please sign in to comment.