package/pkg-rebar.mk: remove dependencies from rebar.config
authorJohan Oudinet <johan.oudinet@gmail.com>
Mon, 26 Nov 2018 11:07:53 +0000 (12:07 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 28 Nov 2018 21:27:04 +0000 (22:27 +0100)
commit1402956d4b7d44026a1a566dfa3995d97a93af7e
tree92fd196be593f62da39df08714a938cada7c910e
parent164aa3d90916fae95e81dd54df2eb62f8d20a696
package/pkg-rebar.mk: remove dependencies from rebar.config

Instead of having a patch in every rebar package to remove the
dependencies in the rebar.config file in order to avoid rebar
downloading such dependencies at build time, implement it directly
as a post-patch hook in the rebar infrastructure.
Add a way to explicitly deactivate this behavior if any package needs
such lines in the rebar.config file.

Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
[Thomas:
 - rename macro to remove-rebar-config-dependencies
 - move the macro outside the inner-rebar-package, so that it is
   declared with the other utility macros found in pkg-rebar.mk]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/ejabberd/0002-remove-dependencies-from-rebar-config.patch [deleted file]
package/erlang-p1-sip/0002-remove-dependencies-from-rebar-config.patch [deleted file]
package/erlang-p1-stun/0001-remove-dependencies-from-rebar-config.patch [deleted file]
package/erlang-p1-xml/0001-remove-dependencies-from-rebar-config.patch [deleted file]
package/erlang-p1-xmpp/0002-remove-dependencies-from-rebar-config.patch [deleted file]
package/erlang-p1-yaml/0001-remove-dependencies-from-rebar-config.patch [deleted file]
package/pkg-rebar.mk