- correctly pass SMLNJ_HOME around, unbreaking some scripts.

from Alexander Polakov
ok sthen@
This commit is contained in:
jasper 2013-02-12 22:32:39 +00:00
parent e7663d3def
commit 2fe11c9811
7 changed files with 59 additions and 1 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.14 2013/01/16 12:20:40 sthen Exp $
# $OpenBSD: Makefile,v 1.15 2013/02/12 22:32:39 jasper Exp $
ONLY_FOR_ARCHS=i386
COMMENT= New Jersey Standard ML
V= 110.75
REVISION= 0
PKGNAME= smlnj-$V
CATEGORIES= lang
@ -52,6 +53,9 @@ post-extract:
do-build:
cd ${WRKDIR} && unset PWD && \
for file in "config/_*"; do \
${SUBST_CMD} ${WRKDIR}/$$file; \
done; \
FILESDIR="$(FILESDIR)" ./config/install.sh
do-install:

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-config__arch-n-opsys,v 1.3 2013/02/12 22:32:39 jasper Exp $
--- config/_arch-n-opsys.orig Sat Jul 28 07:32:38 2012
+++ config/_arch-n-opsys Tue Feb 12 23:18:58 2013
@@ -1,4 +1,5 @@
#!@SHELL@
+SMLNJ_HOME=${TRUEPREFIX}/smlnj
#
# .arch-n-opsys -- get architecture and system info
#

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-config__heap2exec,v 1.1 2013/02/12 22:32:39 jasper Exp $
--- config/_heap2exec.orig Thu Apr 20 19:28:53 2006
+++ config/_heap2exec Tue Feb 12 23:18:58 2013
@@ -1,4 +1,5 @@
#!@SHELL@
+SMLNJ_HOME=${TRUEPREFIX}/smlnj
CMD=`basename "$0"`

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-config__link-sml,v 1.1 2013/02/12 22:32:39 jasper Exp $
--- config/_link-sml.orig Tue Jan 4 00:13:16 2005
+++ config/_link-sml Tue Feb 12 23:18:58 2013
@@ -1,4 +1,5 @@
#!@SHELL@
+SMLNJ_HOME=${TRUEPREFIX}/smlnj
#
# The standard "link" script for SML/NJ
#

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-config__ml-build,v 1.1 2013/02/12 22:32:39 jasper Exp $
--- config/_ml-build.orig Tue Feb 13 00:05:27 2007
+++ config/_ml-build Tue Feb 12 23:18:58 2013
@@ -1,4 +1,5 @@
#!@SHELL@
+SMLNJ_HOME=${TRUEPREFIX}/smlnj
if [ x${SMLNJ_HOME} = x ] ; then
BIN_DIR="@BINDIR@"

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-config__ml-makedepend,v 1.1 2013/02/12 22:32:39 jasper Exp $
--- config/_ml-makedepend.orig Thu Mar 27 22:23:09 2008
+++ config/_ml-makedepend Tue Feb 12 23:18:58 2013
@@ -1,4 +1,5 @@
#!@SHELL@
+SMLNJ_HOME=${TRUEPREFIX}/smlnj
if [ x${SMLNJ_HOME} = x ] ; then
BIN_DIR="@BINDIR@"

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-config__run-sml,v 1.1 2013/02/12 22:32:39 jasper Exp $
--- config/_run-sml.orig Fri May 13 23:34:14 2011
+++ config/_run-sml Tue Feb 12 23:18:58 2013
@@ -1,4 +1,5 @@
#!@SHELL@
+SMLNJ_HOME=${TRUEPREFIX}/smlnj
#
# The standard driver for SML/NJ under the new runtime system
#