aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-11-14 15:33:19 +0100
committerLoïc Hoguin <[email protected]>2024-11-14 15:33:19 +0100
commite8aa6ab5d17e38e953161cc58228f113123e749c (patch)
tree078f97ed8020c3c76094c9a0884287e45dba95b3
parent66e970fdbce823f84fce855bb48c2d1fabfcf0ff (diff)
downloaderlang.mk-e8aa6ab5d17e38e953161cc58228f113123e749c.tar.gz
erlang.mk-e8aa6ab5d17e38e953161cc58228f113123e749c.tar.bz2
erlang.mk-e8aa6ab5d17e38e953161cc58228f113123e749c.zip
Add hex_core as a proper Erlang.mk package
-rw-r--r--index/hex_core.mk7
-rw-r--r--plugins/hex.mk11
2 files changed, 7 insertions, 11 deletions
diff --git a/index/hex_core.mk b/index/hex_core.mk
new file mode 100644
index 0000000..3c5a5d7
--- /dev/null
+++ b/index/hex_core.mk
@@ -0,0 +1,7 @@
+PACKAGES += hex_core
+pkg_hex_core_name = hex_core
+pkg_hex_core_description = Reference implementation of Hex specifications
+pkg_hex_core_homepage = https://github.com/hexpm/hex_core
+pkg_hex_core_fetch = git
+pkg_hex_core_repo = https://github.com/hexpm/hex_core
+pkg_hex_core_commit = v0.10.1
diff --git a/plugins/hex.mk b/plugins/hex.mk
index 6467e31..366f9d5 100644
--- a/plugins/hex.mk
+++ b/plugins/hex.mk
@@ -1,17 +1,6 @@
# Copyright (c) 2020, Loïc Hoguin <[email protected]>
# This file is part of erlang.mk and subject to the terms of the ISC License.
-HEX_CORE_GIT ?= https://github.com/hexpm/hex_core
-HEX_CORE_COMMIT ?= v0.10.1
-
-PACKAGES += hex_core
-pkg_hex_core_name = hex_core
-pkg_hex_core_description = Reference implementation of Hex specifications
-pkg_hex_core_homepage = $(HEX_CORE_GIT)
-pkg_hex_core_fetch = git
-pkg_hex_core_repo = $(HEX_CORE_GIT)
-pkg_hex_core_commit = $(HEX_CORE_COMMIT)
-
# We automatically depend on hex_core when the project isn't already.
$(if $(filter hex_core,$(DEPS) $(BUILD_DEPS) $(DOC_DEPS) $(REL_DEPS) $(TEST_DEPS)),,\
$(eval $(call dep_target,hex_core)))