Skip to content

Commit

Permalink
Upgrade to v2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnimuc committed Sep 4, 2018
1 parent 1d3b142 commit 3eefba5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.7
BinaryProvider 0.2.0
BinaryProvider 0.3.0
48 changes: 27 additions & 21 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,40 +1,46 @@
using BinaryProvider
using BinaryProvider # requires BinaryProvider 0.3.0 or later

# Parse some basic command-line arguments
const verbose = "--verbose" in ARGS
const prefix = Prefix(get([a for a in ARGS if a != "--verbose"], 1, joinpath(@__DIR__, "usr")))
products = [
LibraryProduct(prefix, String["libfreetype"], :libfreetype),
LibraryProduct(prefix, ["libfreetype"], :libfreetype),
]

# Download binaries from hosted location
bin_prefix = "https://github.com/Gnimuc/FreeTypeBuilder/releases/download/v2.9"
bin_prefix = "https://github.com/JuliaGraphics/FreeTypeBuilder/releases/download/v2.9.1-1"

# Listing of files generated by BinaryBuilder:
download_info = Dict(
BinaryProvider.Linux(:aarch64, :glibc, :blank_abi) => ("$bin_prefix/FreeType2.aarch64-linux-gnu.tar.gz", "9c5c14749702c26181f593662418bbd1bf6179ffbb1d5d728de173825aa6cc40"),
BinaryProvider.Linux(:armv7l, :glibc, :eabihf) => ("$bin_prefix/FreeType2.arm-linux-gnueabihf.tar.gz", "28232b19f746e290a45a1eb151dd2491b976e8296e76eaa518e8db884df9516e"),
BinaryProvider.Linux(:i686, :glibc, :blank_abi) => ("$bin_prefix/FreeType2.i686-linux-gnu.tar.gz", "a01458a413c9148dc387f8acc8c88df457a12a57e59e59187a3e5a9fe8859b12"),
BinaryProvider.Windows(:i686, :blank_libc, :blank_abi) => ("$bin_prefix/FreeType2.i686-w64-mingw32.tar.gz", "88a7b31938eac0aa356fc7b4715a74fba07db4cf77bb12f2c1ae0c7fc70c216b"),
BinaryProvider.Linux(:powerpc64le, :glibc, :blank_abi) => ("$bin_prefix/FreeType2.powerpc64le-linux-gnu.tar.gz", "36388c3ddabaef23fe535778059191cbe25ccace246d6eb9043c477602ee55cb"),
BinaryProvider.MacOS(:x86_64, :blank_libc, :blank_abi) => ("$bin_prefix/FreeType2.x86_64-apple-darwin14.tar.gz", "ab95d6da4e11d5550951bf58bf0daedca319c1376018400bf05f3f4de5fa1eb0"),
BinaryProvider.Linux(:x86_64, :glibc, :blank_abi) => ("$bin_prefix/FreeType2.x86_64-linux-gnu.tar.gz", "dccf1fbef6f1e382d422f60d4aef2270ff3a37faf34891ae1689a60037d26b7f"),
BinaryProvider.Windows(:x86_64, :blank_libc, :blank_abi) => ("$bin_prefix/FreeType2.x86_64-w64-mingw32.tar.gz", "e7209e83acd354876bd7d9df4dc6d9cd4404b79b49a36c0ee779a6e6155b2826"),
Linux(:aarch64, :glibc) => ("$bin_prefix/FreeType2.v2.9.1.aarch64-linux-gnu.tar.gz", "3f5a7c895e5362764d4398d9ed6b2b45311b1709c7aafc46b10e03d168e505ef"),
Linux(:aarch64, :musl) => ("$bin_prefix/FreeType2.v2.9.1.aarch64-linux-musl.tar.gz", "0af61d8f42c7482d6969d3f35013534471989f9e17e5ef08142fbc1643204f46"),
Linux(:armv7l, :glibc, :eabihf) => ("$bin_prefix/FreeType2.v2.9.1.arm-linux-gnueabihf.tar.gz", "41b26aa8aca9dbfc9272b1dc3e8b67a632198a3505dcc0b4b28b253ae297cd35"),
Linux(:armv7l, :musl, :eabihf) => ("$bin_prefix/FreeType2.v2.9.1.arm-linux-musleabihf.tar.gz", "67082d464c92cc1a5ebdbbb548cbb5eb8c955d05d01fab15f5322cc08281a185"),
Linux(:i686, :glibc) => ("$bin_prefix/FreeType2.v2.9.1.i686-linux-gnu.tar.gz", "e27e24a13b694dbc2e3ed8a96b486e1ce7dc4bfff048a515998f2abf5316817c"),
Linux(:i686, :musl) => ("$bin_prefix/FreeType2.v2.9.1.i686-linux-musl.tar.gz", "759f2bd5f1f2cd38cda82c6fe2d1d62a3042076212f915a16b95b2def14edd40"),
Windows(:i686) => ("$bin_prefix/FreeType2.v2.9.1.i686-w64-mingw32.tar.gz", "243fdc5ec1c0c9b26a2c80310bceace166a9e7ec1fec9599404627eb0c20dde2"),
Linux(:powerpc64le, :glibc) => ("$bin_prefix/FreeType2.v2.9.1.powerpc64le-linux-gnu.tar.gz", "448b0aeb96d36db0934f031acc13ef0b00c510d39289afd8a8bc97d02ecd3619"),
MacOS(:x86_64) => ("$bin_prefix/FreeType2.v2.9.1.x86_64-apple-darwin14.tar.gz", "0e1db5bf45ddb182ea326eeb4de4b9c9a3b607ca5a4a41cf026f610be91174c5"),
Linux(:x86_64, :glibc) => ("$bin_prefix/FreeType2.v2.9.1.x86_64-linux-gnu.tar.gz", "78969a470ee711836120361a1ec96e70e5486c1be4c33799e55e24e07a1a00b9"),
Linux(:x86_64, :musl) => ("$bin_prefix/FreeType2.v2.9.1.x86_64-linux-musl.tar.gz", "7098d87ddbc1cd26a5c0cb0d4b1e367dd84bc512648457023a2966fa59f69266"),
FreeBSD(:x86_64) => ("$bin_prefix/FreeType2.v2.9.1.x86_64-unknown-freebsd11.1.tar.gz", "8478e32c147696d6c464d88034f1654d7caf57d566146d10895c122defc79a0f"),
Windows(:x86_64) => ("$bin_prefix/FreeType2.v2.9.1.x86_64-w64-mingw32.tar.gz", "cce383e04d53b47aa50cdf50702f0e85238417beba701dfd6c68d226edacae22"),
)

# First, check to see if we're all satisfied
if any(!satisfied(p; verbose=verbose) for p in products)
if haskey(download_info, platform_key())
# Install unsatisfied or updated dependencies:
unsatisfied = any(!satisfied(p; verbose=verbose) for p in products)
if haskey(download_info, platform_key())
url, tarball_hash = download_info[platform_key()]
if unsatisfied || !isinstalled(url, tarball_hash; prefix=prefix)
# Download and install binaries
url, tarball_hash = download_info[platform_key()]
install(url, tarball_hash; prefix=prefix, force=true, verbose=verbose)
else
# If we don't have a BinaryProvider-compatible .tar.gz to download, complain.
# Alternatively, you could attempt to install from a separate provider,
# build from source or something more even more ambitious here.
error("Your platform $(triplet(platform_key())) is not supported by this package!")
end
elseif unsatisfied
# If we don't have a BinaryProvider-compatible .tar.gz to download, complain.
# Alternatively, you could attempt to install from a separate provider,
# build from source or something even more ambitious here.
error("Your platform $(triplet(platform_key())) is not supported by this package!")
end

# Write out a deps.jl file that will contain mappings for our products
write_deps_file(joinpath(@__DIR__, "deps.jl"), products)
write_deps_file(joinpath(@__DIR__, "deps.jl"), products, verbose=verbose)

0 comments on commit 3eefba5

Please sign in to comment.