pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rebar3: build verbose



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Sat Jul 4 15:08:32 2020 +0200
Changeset:	0a8d5f28c4328be3f1ba4f393fe4bd4e7c3146e0

Modified Files:
	rebar3/Makefile

Log Message:
rebar3: build verbose

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0a8d5f28c4328be3f1ba4f393fe4bd4e7c3146e0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 rebar3/Makefile | 36 ++++++++++++++++++++++++++++--------
 1 file changed, 28 insertions(+), 8 deletions(-)

diffs:
diff --git a/rebar3/Makefile b/rebar3/Makefile
index 88cd7eb753..1602161af8 100644
--- a/rebar3/Makefile
+++ b/rebar3/Makefile
@@ -12,17 +12,19 @@ LICENSE=	apache-2.0
 
 USE_TOOLS+=	tar
 
-REBAR_DEPS+=	erlware_commons-1.3.1
-REBAR_DEPS+=	ssl_verify_fun-1.1.5
-REBAR_DEPS+=	certifi-2.5.1
-REBAR_DEPS+=	parse_trans-3.3.0
-REBAR_DEPS+=	providers-1.8.1
-REBAR_DEPS+=	getopt-1.0.1
 REBAR_DEPS+=	bbmustache-1.8.0
-REBAR_DEPS+=	relx-3.33.0
+REBAR_DEPS+=	certifi-2.5.1
 REBAR_DEPS+=	cf-0.2.2
 REBAR_DEPS+=	cth_readable-1.4.6
+REBAR_DEPS+=	erlware_commons-1.3.1
 REBAR_DEPS+=	eunit_formatters-0.5.0
+REBAR_DEPS+=	getopt-1.0.1
+REBAR_DEPS+=	parse_trans-3.3.0
+REBAR_DEPS+=	providers-1.8.1
+REBAR_DEPS+=	relx-3.33.0
+REBAR_DEPS+=	ssl_verify_fun-1.1.5
+
+MAKE_ENV+=	DEBUG=1
 
 DISTFILES=	${DEFAULT_DISTFILES}
 
@@ -35,14 +37,32 @@ EXTRACT_DIR.${dep}.tar=	${WRKSRC}/_build/default/lib/${dep:C/-.*//}
 #DISTFILES+=				${DISTNAME:S/-/-cache-/}.tar.gz
 #SITES.${DISTNAME:S/-/-cache-/}.tar.gz=	https://ftp.netbsd.org/pub/NetBSD/misc/fhajny/
 
+BUILD_DEPENDS+=		git-[0-9]*:../../devel/git-base
+
 SUBST_CLASSES+=		escript
 SUBST_STAGE.escript=	pre-configure
-SUBST_MESSAGE.escript=	Fix default escript shebangh
+SUBST_MESSAGE.escript=	Fix default escript shebang
 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
 
+# convenience target to rebuild the rebar3 cache file
+build-cache:
+	cd ${WRKDIR} && ${TAR} -c -v -z -f rebar3-cache-${PKGVERSION}${EXTRACT_SUFX} .home
+
+# post-extract:
+# .for dep in ${REBAR_DEPS}
+# 	${MKDIR} ${WRKSRC}/_build/default/lib/${dep:C/-.*//}
+# 	${TAR} xOf ${DISTDIR}/rebar3/${dep}.tar contents.tar.gz |\
+# 		${TAR} xfz - -C ${WRKSRC}/_build/default/lib/${dep:C/-.*//}
+# .endfor
+# 	${MKDIR} ${WRKSRC}/_build/bootstrap/lib
+# 	${MKDIR} ${WRKSRC}/_build/bootstrap/plugins
+# .for dep in ${REBAR_DEPS}
+# 	${LN} -sf ${WRKSRC}/_build/default/lib/${dep:C/-.*//} ${WRKSRC}/_build/bootstrap/lib/
+# .endfor
+
 post-extract:
 	${MKDIR} -p ${WRKSRC}/_build/bootstrap/lib
 .for dep in ${REBAR_DEPS}


Home | Main Index | Thread Index | Old Index