Skip to content

Instantly share code, notes, and snippets.

@dch
Created September 21, 2018 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dch/86c7c6eb290f7237006a6310dce734e0 to your computer and use it in GitHub Desktop.
Save dch/86c7c6eb290f7237006a6310dce734e0 to your computer and use it in GitHub Desktop.
# $FreeBSD$
#
# Fetch packages from https://hex.pm/packages/ for Elixir and Erlang/OTP
#
# Feature: hexpm
# Usage: USES=hexpm
# Valid ARGS: does not require args
#
# MAINTAINER= erlang@FreeBSD.org
#
# Arguments:
#
# hexpm Specifies that the port uses hex packages
#
# Targets:
#
# makehexpm This target will
#
# Variables overridable by the port:
#
# HEXPM_PACKAGEDIR The directory in which the port expects the packages
# to be available
# $default: ${WRKDIR}/.hex/packages/
#
# HEXPM_CDN The fetch-compatible URL to download packages from
# default: ${MASTER_SITE_HEXPM} which is https://repo.hex.pm/tarballs/
.if !defined(_INCLUDE_USES_HEXPM_MK)
_INCLUDE_USES_HEXPM_MK=yes
HEXPM_PACKAGEDIR?= ${WRKDIR}/.hex/packages/
HEXPM_CDN?= https://repo.hex.pm/tarballs/
.endif #!defined(_INCLUDE_USES_HEXPM_MK)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment