summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2017-06-04 17:29:18 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-05 11:35:45 +0200
commit997b54aaad18f41a45db750f079703dd38647df1 (patch)
tree0e048f6a5376f2702038d6d705310bcf2e84b171
parentdabd28a4be71e6d8f5a33d4fa34a3515e5fad177 (diff)
downloadbuildroot-997b54aaad18f41a45db750f079703dd38647df1.tar.gz
buildroot-997b54aaad18f41a45db750f079703dd38647df1.zip
package/erlang-jiffy: set version in jiffy.app.src
Fixes: http://autobuild.buildroot.net/results/5c0/5c045a517ccdc97244a4cfca54465dc8d5fcc717 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Johan Oudinet <johan.oudinet@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/erlang-jiffy/erlang-jiffy.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/erlang-jiffy/erlang-jiffy.mk b/package/erlang-jiffy/erlang-jiffy.mk
index 674c80f4b7..3139454546 100644
--- a/package/erlang-jiffy/erlang-jiffy.mk
+++ b/package/erlang-jiffy/erlang-jiffy.mk
@@ -11,4 +11,10 @@ ERLANG_JIFFY_LICENSE = MIT (core), \
BSD-3-Clause (tests)
ERLANG_JIFFY_LICENSE_FILES = LICENSE
+# Set version manually in jiffy.app.src otherwise "git describe" is used.
+define ERLANG_JIFFY_SET_VERSION_HOOK
+ $(SED) 's/{vsn, git}/{vsn, "$(ERLANG_JIFFY_VERSION)"}/' $(@D)/src/jiffy.app.src
+endef
+ERLANG_JIFFY_POST_PATCH_HOOKS = ERLANG_JIFFY_SET_VERSION_HOOK
+
$(eval $(rebar-package))
OpenPOWER on IntegriCloud