[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / rebar3

File: [cvs.NetBSD.org] / pkgsrc / devel / rebar3 / Makefile (download)

Revision 1.5, Fri Mar 19 16:42:47 2021 UTC (8 months, 1 week ago) by triaxx
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, HEAD
Changes since 1.4: +2 -2 lines

rebar3: Update to 3.14.4

upstream changes:
-----------------

3.14.4

@github-actions github-actions released this 23 days ago

This is a point release containing various bug fixes, some performance enhancements, and adding support for OTP-24.

  o Common test: make group paths work for --group "[g1,g2],g3" option
  o Adapt to upcoming OTP 24 dialyzer output
  o Sanitize repo configuration in DEBUG output
  o Modify algorithm to decide compilation order between apps to resolve header dependencies
  o Use rebar_packages_cdn for fetching package resource
  o bump relx to 4.3.0
  o Compile nothing if there are no extra virtual apps (performance increase)
  o Print actural download repo in DEBUG output
  o bump cth readable to 1.5.0
  o Make sure dialyzer static analysis is performed at least once, in CI
  o Use "git rev-list --count" to count refs (performance increase)
  o OTP-24 Readiness
  o fix injection of cth_readable to allow for hook configuration
  o Fixed link to list of plugins.
  o rebar_compiler: fix DAG and speed-up analysis for large repositories
  o use newest certifi release

# $NetBSD: Makefile,v 1.5 2021/03/19 16:42:47 triaxx Exp $

DISTNAME=	rebar3-3.14.4
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=erlang/}
DIST_SUBDIR=	rebar3

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/erlang/rebar3/
COMMENT=	Erlang build tool
LICENSE=	apache-2.0

USE_TOOLS+=	tar

REBAR_DEPS=	erlware_commons-1.3.1 \
		ssl_verify_fun-1.1.6 \
		certifi-2.5.2 \
		parse_trans-3.3.0 \
		providers-1.8.1 \
		getopt-1.0.1 \
		bbmustache-1.10.0 \
		relx-4.2.0 \
		cf-0.3.1 \
		cth_readable-1.4.9 \
		eunit_formatters-0.5.0

DISTFILES=	${DEFAULT_DISTFILES}

.for dep in ${REBAR_DEPS}
DISTFILES+=		${dep}.tar
SITES.${dep}.tar=	https://repo.hex.pm/tarballs/
EXTRACT_DIR.${dep}.tar=	${WRKSRC}/_build/default/lib/${dep:C/-.*//}
.endfor

SUBST_CLASSES+=		escript
SUBST_STAGE.escript=	pre-configure
SUBST_MESSAGE.escript=	Fix default escript shebangh
SUBST_FILES.escript=	src/rebar_prv_escriptize.erl
SUBST_SED.escript=	-e 's,/usr/bin/env escript,${PREFIX}/bin/escript,'

INSTALLATION_DIRS+=	bin ${PKGMANDIR}/man1 share/examples/rebar3

post-extract:
	${MKDIR} -p ${WRKSRC}/_build/bootstrap/lib
.for dep in ${REBAR_DEPS}
	cd ${WRKSRC}/_build/default/lib/${dep:C/-.*//} && \
		${TAR} -xzf contents.tar.gz
	${LN} -sf ../../default/lib/${dep:C/-.*//} \
		${WRKSRC}/_build/bootstrap/lib/${dep:C/-.*//}
.endfor

do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./bootstrap

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/rebar3 ${DESTDIR}${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/manpages/rebar3.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
	${INSTALL_DATA} ${WRKSRC}/rebar.config.sample \
		${DESTDIR}${PREFIX}/share/examples/rebar3

.include "../../lang/erlang/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"