Skip to content

Commit

Permalink
[Fontconfig] Set relevant environment variables in __init__ (#1287)
Browse files Browse the repository at this point in the history
[skip build]
  • Loading branch information
giordano authored Jul 5, 2020
1 parent 5551099 commit d2359cf
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions F/Fontconfig/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,16 @@ products = [

# Dependencies that must be installed before this package can be built
dependencies = [
"FreeType2_jll",
"Bzip2_jll",
"Zlib_jll",
"Libuuid_jll",
"Expat_jll",
Dependency("FreeType2_jll"),
Dependency("Bzip2_jll"),
Dependency("Zlib_jll"),
Dependency("Libuuid_jll"),
Dependency("Expat_jll"),
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
init_block = """
ENV["FONTCONFIG_FILE"] = get(ENV, "FONTCONFIG_FILE", fonts_conf)
ENV["FONTCONFIG_PATH"] = get(ENV, "FONTCONFIG_PATH", dirname(ENV["FONTCONFIG_FILE"]))
""")

0 comments on commit d2359cf

Please sign in to comment.