Marcel Telka
2024-04-07 76a1721da25c9ff6078485e917711feccfacd133
make-rules/prep-hg.mk
@@ -26,6 +26,9 @@
HG =      /usr/bin/hg
MKTEMP =    /usr/gnu/bin/mktemp
COMPONENT_PREP_HG?=yes
ifeq ($(strip $(COMPONENT_PREP_HG)), yes)
#
# Anything that we pull from a Mercurial repo must have a HG_REPO{_[0-9]+} and
# HG_REV{_[0-9]+} to match.
@@ -50,7 +53,7 @@
CLEAN_PATHS += $$(COMPONENT_SRC$(1))
CLOBBER_PATHS += $$(COMPONENT_ARCHIVE$(1))
SOURCE_DIR$(1) = $$(COMPONENT_DIR)/$(COMPONENT_SRC$(1))
SOURCE_DIR$(1) = $$(COMPONENT_DIR)/$$(COMPONENT_SRC$(1))
endif
endif
endef
@@ -78,7 +81,7 @@
      -e "s/\(HG_HASH$(1)[[:space:]]*=[[:space:]]*\).*/\1sha256:$$$${HG_HASH}/" \
      Makefile)
REQUIRED_PACKAGES += developer/versioning/mercurial
USERLAND_REQUIRED_PACKAGES += developer/versioning/mercurial
endif
endif
@@ -90,3 +93,5 @@
$(eval $(call hg-rules,))
$(foreach suffix, $(HG_SUFFIXES), $(eval $(call hg-rules,_$(suffix))))
endif