freebsd-ports/Mk/Uses
Jimmy Olgeni d8d24faf9c 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.
2015-07-14 23:05:31 +00:00
..
ada.mk Ada Framework: Switch to gcc5-aux, upgrade 6 packages at once 2015-06-23 22:20:35 +00:00
alias.mk - Instead of limiting effect of alias.mk to DragonFly, extend it to everything which is not FreeBSD 2015-07-03 16:54:08 +00:00
autoreconf.mk Run intltoolize before running autoreconf when a port uses intltool and 2015-02-17 10:30:55 +00:00
bison.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
blaslapack.mk Adding ports/Mk/Uses/blaslapack.mk. 2015-01-05 20:43:02 +00:00
charsetfix.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
cmake.mk Uses/cmake.mk: Reword description of CMAKE_VERBOSE and CMAKE_NOCOLOR a bit. 2014-12-18 16:47:19 +00:00
compiler.mk Add support for USES= compiler:c++14 2015-07-14 20:32:14 +00:00
cpe.mk CPE strings are all lower case. 2015-04-02 15:02:44 +00:00
cran.mk - Don't add @dirrm's to pkg-plists for cran:auto-plist 2015-05-20 12:38:11 +00:00
desktop-file-utils.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
desthack.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
display.mk Make fonts repecting XDG 2015-03-21 23:05:19 +00:00
dos2unix.mk Move MAINTAINER lines to the end of the initial comment block and 2014-03-15 10:31:54 +00:00
drupal.mk Cleanup plist a bit, DRUPAL_MODDIR and DRUPAL_BASE belong to drupal ports, 2014-11-15 17:05:44 +00:00
elixir.mk In elixir.mk, add MIX_REWRITE and ELIXIR_LIB_ROOT. 2015-07-14 23:05:31 +00:00
erlang.mk Improvements in erlang.mk: 2015-07-14 10:44:50 +00:00
execinfo.mk - Set variables with libexecinfo preprocessor and linker flags 2015-04-16 14:15:12 +00:00
fakeroot.mk Only the definition of the fakeroot command should conditioned to the UID 2014-12-18 08:30:20 +00:00
fam.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
fmake.mk Allow user to override MAKE_CMD without breaking gmake/fmake/scons ports. 2015-03-23 03:59:04 +00:00
fonts.mk Prevent double inclusion 2015-06-12 19:52:27 +00:00
fortran.mk Move LANG_GCC_IS from bsd.gcc.mk to bsd.default-versions.mk and use 2015-01-26 00:03:46 +00:00
fuse.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
gecko.mk - Update NSS and ca_root_nss to 3.19 2015-05-12 18:06:36 +00:00
gettext-runtime.mk Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The 2014-11-29 18:22:32 +00:00
gettext-tools.mk Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The 2014-11-29 18:22:32 +00:00
gettext.mk Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The 2014-11-29 18:22:32 +00:00
gmake.mk Allow user to override MAKE_CMD without breaking gmake/fmake/scons ports. 2015-03-23 03:59:04 +00:00
gnustep.mk Update GNUstep ports to their latest versions. 2015-07-01 13:50:28 +00:00
gperf.mk Fix typo 2014-10-07 16:45:30 +00:00
gssapi.mk Add missing GSSAPI{LIB,INC}DIR when :mit is specified. 2014-12-02 23:45:15 +00:00
horde.mk Use "horde" as default CPE vendor for all horde applications 2015-04-15 11:13:49 +00:00
iconv.mk Update GNUstep ports to their latest versions. 2015-07-01 13:50:28 +00:00
imake.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
jpeg.mk Add USES=jpeg, to handle dependency on a jpeg library 2015-06-22 18:30:35 +00:00
kmod.mk Use a custom keyword for kldxref, that allows to control exactly when it is run 2014-12-26 12:43:44 +00:00
lha.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
libtool.mk Make ports using libtool treat elftoolchain's strip the same as GNU strip 2015-06-08 05:59:13 +00:00
lua.mk bye lua@ 2015-04-16 12:44:17 +00:00
makeinfo.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
makeself.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
metaport.mk meta ports are always NO_ARCH 2015-04-01 17:59:57 +00:00
mono.mk Set an arbitrary time-zone. 2015-03-10 12:58:43 +00:00
motif.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
ncurses.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
ninja.mk - Make it possible to override _MAKE_JOBS when MAKE_JOBS_NUMBER=1 2015-04-10 05:45:15 +00:00
objc.mk Update GNUstep ports to their latest versions. 2015-07-01 13:50:28 +00:00
openal.mk Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in 2014-12-08 16:48:38 +00:00
pathfix.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
pear.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
perl5.mk - Fix regression-test: TEST_ARGS and TEST_ENV should be overwritable 2015-07-06 17:48:04 +00:00
pgsql.mk - Fix dependencies on docs, plperl, pltcl 2015-07-07 21:31:39 +00:00
pkgconfig.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
pure.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
python.mk Pass the default Python version (or the version required by port) 2015-06-10 09:23:54 +00:00
qmail.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
qmake.mk Update Qt5 ports to 5.3.2. 2014-11-05 09:39:21 +00:00
readline.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
scons.mk Allow user to override MAKE_CMD without breaking gmake/fmake/scons ports. 2015-03-23 03:59:04 +00:00
shared-mime-info.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
shebangfix.mk Fix a typo 2015-06-12 19:51:23 +00:00
tar.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
tcl.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
tk.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
twisted.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
uidfix.mk Always define GID, this fixes build of uidfix when building as root 2015-06-04 11:53:06 +00:00
uniquefiles.mk Mk/Uses/uniquefiles.mk: Clearer and less ambiguous output 2015-06-02 03:25:00 +00:00
waf.mk Fix a typo 2015-04-08 18:32:18 +00:00
webplugin.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
xfce.mk USES=xfce: Stop overriding MASTER_SITE_SUBDIR. 2015-04-28 17:01:46 +00:00
zip.mk Change the way USES is handled: 2014-09-28 16:36:31 +00:00
zope.mk Move MAINTAINER lines to the end of the initial comment block and 2014-03-15 10:31:54 +00:00