Wed Apr 7 13:34:42 2021 UTC ()
erlang-idna: Fix cache directory of rebar3

pkgsrc changes:
---------------
  * The default cache directory of rebar3 is ~/.cache/rebar3 which can be
    not writable. Now set it to ${WRKDIR}/rebar
  * Bump revision


(triaxx)
diff -r1.2 -r1.3 pkgsrc/net/erlang-idna/Makefile

cvs diff -r1.2 -r1.3 pkgsrc/net/erlang-idna/Makefile (expand / switch to unified diff)

--- pkgsrc/net/erlang-idna/Makefile 2021/01/16 00:02:07 1.2
+++ pkgsrc/net/erlang-idna/Makefile 2021/04/07 13:34:41 1.3
@@ -1,26 +1,27 @@ @@ -1,26 +1,27 @@
1# $NetBSD: Makefile,v 1.2 2021/01/16 00:02:07 triaxx Exp $ 1# $NetBSD: Makefile,v 1.3 2021/04/07 13:34:41 triaxx Exp $
2 2
3DISTNAME= idna-6.1.1 3DISTNAME= idna-6.1.1
 4PKGREVISION= 1
4CATEGORIES= net 5CATEGORIES= net
5MASTER_SITES= ${MASTER_SITE_GITHUB:=benoitc/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=benoitc/}
6 7
7MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= https://github.com/benoitc/erlang-idna/ 9HOMEPAGE= https://github.com/benoitc/erlang-idna/
9COMMENT= Pure Erlang IDNA implementation following the RFC5891 10COMMENT= Pure Erlang IDNA implementation following the RFC5891
10LICENSE= mit 11LICENSE= mit
11 12
12BUILD_DEPENDS+= rebar3-[0-9]*:../../devel/rebar3 13BUILD_DEPENDS+= rebar3-[0-9]*:../../devel/rebar3
13 14
14WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} 15WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
15 16
16REBAR= ${PREFIX}/bin/rebar3 17REBAR= ${PREFIX}/bin/rebar3
17 18
18do-build: 19do-build:
19 cd ${WRKSRC} && ${REBAR} compile 20 cd ${WRKSRC} && REBAR_CACHE_DIR=${WRKDIR}/rebar ${REBAR} compile
20 21
21pre-install: 22pre-install:
22 ${MV} ${WRKSRC}/_build/default/lib/idna/ebin ${WRKSRC} 23 ${MV} ${WRKSRC}/_build/default/lib/idna/ebin ${WRKSRC}
23 ${RM} -rf ${WRKSRC}/_build 24 ${RM} -rf ${WRKSRC}/_build
24 25
25.include "../../lang/erlang/module.mk" 26.include "../../lang/erlang/module.mk"
26.include "../../mk/bsd.pkg.mk" 27.include "../../mk/bsd.pkg.mk"