summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/rebar/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/devel/rebar/Makefile b/devel/rebar/Makefile
index bef69646fbc..9d23803ac17 100644
--- a/devel/rebar/Makefile
+++ b/devel/rebar/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2015/04/26 11:52:19 ryoon Exp $
+# $NetBSD: Makefile,v 1.3 2015/05/03 19:44:00 joerg Exp $
DISTNAME= 2.5.1
PKGNAME= rebar-${DISTNAME}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=rebar/rebar/archive/}
@@ -19,5 +19,10 @@ AUTO_MKDIRS= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/rebar ${DESTDIR}${PREFIX}/bin/rebar
+SUBST_CLASSES+= shebang
+SUBST_FILES.shebang= src/rebar_escripter.erl
+SUBST_SED.shebang+= -e 's,/usr/bin/env escript,${PREFIX}/bin/escript,'
+SUBST_STAGE.shebang= post-patch
+
.include "../../lang/erlang/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"