summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2011-04-25 20:58:24 +0000
committerasau <asau@pkgsrc.org>2011-04-25 20:58:24 +0000
commit0f414d3eddb03ad40227c2517bff346f53f425dc (patch)
tree472edd2ec749f012988d04cd57e76099116e1356
parent59bc4b83aa1a966aa593ea49426adabaa2d611e4 (diff)
downloadpkgsrc-0f414d3eddb03ad40227c2517bff346f53f425dc.tar.gz
Replace "/usr/bin/env" interpreter to comply with stricter rules.
-rw-r--r--lang/erlang/Makefile14
1 files changed, 13 insertions, 1 deletions
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