aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xmx/Makefile
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2015-07-15 07:05:31 +0800
committerolgeni <olgeni@FreeBSD.org>2015-07-15 07:05:31 +0800
commit8037fc5ab20f1beb3efd1b85fd82db4e087efde9 (patch)
treea07d91ab92d03495bcf1c5b44ec8a8aff5481e07 /x11/xmx/Makefile
parent733d63c0409bfbc8aab2d5584b91bae6b28dc02e (diff)
downloadfreebsd-ports-gnome-8037fc5ab20f1beb3efd1b85fd82db4e087efde9.tar.gz
freebsd-ports-gnome-8037fc5ab20f1beb3efd1b85fd82db4e087efde9.tar.zst
freebsd-ports-gnome-8037fc5ab20f1beb3efd1b85fd82db4e087efde9.zip
In elixir.mk, add MIX_REWRITE and ELIXIR_LIB_ROOT.
ELIXIR_LIB_ROOT is the default Elixir library path in LOCALBASE. If MIX_REWRITE is defined, all optional dependencies will be stripped out (test, doc, etc.), while all required libs will be converted to actual code paths in ELIXIR_LIB_ROOT. For example, it will turn the following dependency definitions: defp deps do [ { :inflex, "~> 1.0" }, { :estree, "~> 2.0" }, { :shouldi, only: :test }, { :earmark, "~> 0.1", only: :dev }, { :ex_doc, "~> 0.7", only: :dev } ] end into these: defp deps do [ { :inflex, path: "/usr/local/lib/elixir/lib/inflex", compile: false }, { :estree, path: "/usr/local/lib/elixir/lib/estree", compile: false }, ] end Setting MIX_REWRITE allows escriptize to bundle all dependencies in the script, else it will not be able to pull them from the usual code path. It already works for all Elixir ports and should make patches to mix.exs unnecessary, but for now the default is off. Sneak in a whitespace fix while I'm here.
Diffstat (limited to 'x11/xmx/Makefile')
0 files changed, 0 insertions, 0 deletions