From da4c2a8e7b3c83eecab9b7f01bfafc5a0e487e38 Mon Sep 17 00:00:00 2001 From: asau Date: Mon, 25 Apr 2011 20:58:24 +0000 Subject: Replace "/usr/bin/env" interpreter to comply with stricter rules. --- lang/erlang/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lang/erlang') diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile index 4e7ae8c6741..257fc09f47e 100644 --- a/lang/erlang/Makefile +++ b/lang/erlang/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.46 2011/04/14 19:34:07 asau Exp $ +# $NetBSD: Makefile,v 1.47 2011/04/25 20:58:24 asau Exp $ DISTNAME= otp_src_${DIST_VERSION_MAJOR}${DIST_VERSION_MINOR:D-${DIST_VERSION_MINOR}} PKGNAME= erlang-${ERLANG_VERSION} +PKGREVISION= 1 CATEGORIES= lang MASTER_SITES= http://www.erlang.org/download/ @@ -27,6 +28,17 @@ CONFIGURE_ARGS+= --enable-threads MAKE_ENV+= DESTDIR=${DESTDIR} +REPLACE_INTERPRETER+= escript +REPLACE.escript.old= .*escript +REPLACE.escript.new= ${LOCALBASE}/bin/escript +REPLACE_FILES.escript= \ + lib/reltool/examples/display_args \ + lib/reltool/examples/mnesia_core_dump_viewer \ + lib/snmp/src/compile/snmpc.src \ + lib/erl_docgen/priv/bin/codeline_preprocessing.escript \ + lib/erl_docgen/priv/bin/xml_from_edoc.escript \ + lib/snmp/bin/snmpc + SUBST_CLASSES+= target SUBST_STAGE.target= post-patch SUBST_FILES.target= make/target.mk -- cgit v1.2.3