Commit graph

19 commits

Author SHA1 Message Date
Jimmy Olgeni
117604b711 Fix usage of left braces to be compatible with extended regular
expressions.

PR:		218600
Submitted by:	Kyle Evans
2017-04-25 08:34:26 +00:00
Tijl Coosemans
02f27a83b4 The output of tools like awk, date, sort, tr,... depends on the current
locale set by the user.  Add LANG=C and LC_ALL=C at the beginning of
bsd.port.mk and export them so all commands are executed with the C locale.
LC_ALL=C overrides all other LC_* variables.  LANG is used by setlocale(3)
as default value for LC_* variables, so normally it isn't used when LC_ALL
is set, but there's code out there that looks at LANG directly so it's safer
to set it as well.  The only commands not captured by this are !=
assignments before any inclusion of bsd.port.*mk.

Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to
CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a
different locale (e.g. USE_LOCALE=en_US.UTF-8).

PR:		215882
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2017-01-18 13:20:31 +00:00
Mathieu Arnold
eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00
Baptiste Daroussin
421767bd88 Remove the now unneeded ${PORTSDIR} from dependency definition in
The infrastructure Makefiles

PR:		206569
Exp run by:	antoine
Differential Revision:	D5047
2016-03-27 01:23:25 +00:00
Jimmy Olgeni
c9d55fb214 Do not try to depend on Erlang libraries (if any) in
ELIXIR_LIB_ROOT, because they do not exist there.

This fixes r406955 for fmake compatibility (on 9.3).
2016-01-23 16:46:11 +00:00
Antoine Brodin
2c3e43278e Revert r406955, it break INDEX with fmake
With hat:	portmgr
Reported by:	beefy1, beefy2
2016-01-23 06:42:45 +00:00
Jimmy Olgeni
5c0857d7b1 Do not try to depend on Erlang libraries (if any) in
ELIXIR_LIB_ROOT, because they do not exist there.
2016-01-22 23:27:40 +00:00
Baptiste Daroussin
8cea2b0147 Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
2015-10-15 07:36:38 +00:00
Baptiste Daroussin
869e1f27d0 Drop the necessity to add ${PORTSDIR} to dependency line
Modify make describe to automatically prepend ${PORTSDIR} if the path for the
port is not absolute

Checked with poudriere, portmaster, portupgrade

PR:		203685
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D3866
2015-10-14 16:49:35 +00:00
Jimmy Olgeni
c23da21aec Not all Hex package specifications start with the '~' character,
so let's just look for '"'.
2015-07-27 15:34:25 +00:00
Jimmy Olgeni
17122ec9fa Allow underscores in Elixir application names. 2015-07-18 19:32:58 +00:00
Jimmy Olgeni
c3aacb3bc6 In MIX_REWRITE, suppress optional dependencies too. 2015-07-16 09:27:51 +00:00
Jimmy Olgeni
08382140c7 Find more instances of ":only" dependencies in MIX_REWRITE. 2015-07-15 14:09:26 +00:00
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
Jimmy Olgeni
d270a866c3 The correct default for ELIXIR_HIDDEN is ELIXIR_APP_NAME, which
can be different from PORTNAME.
2015-07-14 17:44:22 +00:00
Jimmy Olgeni
f2a359f6d2 Add support for more variables in elixir.mk.
- MIX_ENV, which works like MAKE_ENV for Mix builds
- MIX_TARGET ("compile", etc.)
2015-07-13 11:23:37 +00:00
Jimmy Olgeni
87825d92d3 In elixir.mk, replace custom targets with do-build and do-install. 2015-07-07 23:03:07 +00:00
Jimmy Olgeni
d8ae3118e5 Change the default ELIXIR_HIDDEN regexp to match PORTNAME exactly. 2015-07-04 08:53:49 +00:00
Jimmy Olgeni
708b7d3bf9 Add a new USES elixir.mk (from lang/elixir/bsd.elixir.mk) and
adjust all Elixir ports.
2015-07-03 13:59:45 +00:00
Renamed from lang/elixir/bsd.elixir.mk (Browse further)