pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/smlnj11072 Add a copy of smlnj from before the la...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a7ac562f2ec
branches:  trunk
changeset: 349301:7a7ac562f2ec
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sun Jul 03 17:50:31 2016 +0000

description:
Add a copy of smlnj from before the last update (so, 110.72) because
this version builds and runs on NetBSD/i386. (Yes, the update was
years back. This is what happens with packages that don't build on
amd64...)

diffstat:

 lang/smlnj11072/DESCR            |    6 +
 lang/smlnj11072/Makefile         |  106 ++++++++++++++++++++++
 lang/smlnj11072/Makefile.common  |   37 +++++++
 lang/smlnj11072/PLIST            |  176 ++++++++++++++++++++++++++++++++++++
 lang/smlnj11072/PLIST.FreeBSD    |    2 +
 lang/smlnj11072/distinfo         |   81 ++++++++++++++++
 lang/smlnj11072/files/targets    |   15 +++
 lang/smlnj11072/patches/patch-aa |   79 ++++++++++++++++
 lang/smlnj11072/patches/patch-ab |   29 ++++++
 lang/smlnj11072/patches/patch-ac |   24 +++++
 lang/smlnj11072/patches/patch-ad |   25 +++++
 lang/smlnj11072/patches/patch-ae |  187 +++++++++++++++++++++++++++++++++++++++
 lang/smlnj11072/patches/patch-af |   33 ++++++
 lang/smlnj11072/patches/patch-ag |   29 ++++++
 lang/smlnj11072/patches/patch-ah |   12 ++
 lang/smlnj11072/patches/patch-ai |   12 ++
 lang/smlnj11072/patches/patch-aj |   12 ++
 lang/smlnj11072/patches/patch-ak |   12 ++
 lang/smlnj11072/patches/patch-am |   13 ++
 lang/smlnj11072/patches/patch-an |   13 ++
 lang/smlnj11072/patches/patch-ao |   13 ++
 lang/smlnj11072/patches/patch-ap |   13 ++
 lang/smlnj11072/patches/patch-aq |   13 ++
 lang/smlnj11072/patches/patch-ar |   15 +++
 lang/smlnj11072/patches/patch-as |   15 +++
 lang/smlnj11072/patches/patch-at |   17 +++
 26 files changed, 989 insertions(+), 0 deletions(-)

diffs (truncated from 1093 to 300 lines):

diff -r 6af82be0dedc -r 7a7ac562f2ec lang/smlnj11072/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/smlnj11072/DESCR     Sun Jul 03 17:50:31 2016 +0000
@@ -0,0 +1,6 @@
+A Standard ML implementation from Bell-Labs.  Implements the SML '97
+definition including the new Basis library with a few minor omissions
+and discrepancies.
+
+If you are interested in a lighter weight implementation of ML, the
+Moscow-ML port is recommended.
diff -r 6af82be0dedc -r 7a7ac562f2ec lang/smlnj11072/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/smlnj11072/Makefile  Sun Jul 03 17:50:31 2016 +0000
@@ -0,0 +1,106 @@
+# $NetBSD: Makefile,v 1.1 2016/07/03 17:50:31 dholland Exp $
+#
+
+DISTNAME=      boot.${BOX}-unix
+PKGNAME=       smlnj-${SML_VERSION}
+CATEGORIES=    lang
+MASTER_SITES=  http://smlnj.cs.uchicago.edu/dist/working/${SML_VERSION}/
+DISTFILES=     MLRISC.tgz                      \
+               boot.${BOX}-unix.tgz            \
+               ckit.tgz                        \
+               cm.tgz                          \
+               cml.tgz                         \
+               compiler.tgz                    \
+               config.tgz                      \
+               eXene.tgz                       \
+               ml-burg.tgz                     \
+               ml-lex.tgz                      \
+               nlffi.tgz                       \
+               ml-yacc.tgz                     \
+               runtime.tgz                     \
+               smlnj-lib.tgz                   \
+               system.tgz                      \
+               ml-lpt.tgz                      \
+               pgraph.tgz                      \
+               trace-debug-profile.tgz         \
+               heap2asm.tgz                    \
+               smlnj-c.tgz
+
+MAINTAINER=    richards+netbsd%CS.Princeton.EDU@localhost
+HOMEPAGE=      http://www.smlnj.org/index.html
+COMMENT=       Popular functional language from Bell Labs
+
+SML_VERSION=   110.72
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+WRKSRC=                ${WRKDIR}
+DIST_SUBDIR=   smlnj-${SML_VERSION}
+USE_TOOLS+=    gmake pax
+
+# previous versions of the package had an additional '-'
+CONFLICTS=     sml-nj-[0-9]*
+
+SML_BASE=      ${PREFIX}/lib/smlnj
+SML_LIBDIR=    ${SML_BASE}/lib
+SML_BINDIR=    ${SML_BASE}/bin
+SML_SCRIPTS=   _link-sml _run-sml _ml-build _ml-makedepend
+
+.include "../../lang/smlnj/Makefile.common"
+
+# create parent directory for the runtime system
+pre-extract:
+       ${MKDIR} ${WRKDIR}/src || ${TRUE}
+
+# make it easier to patch the runtime system
+do-extract:
+       ${RUN} extract_file="${_DISTDIR}/config.tgz"; export extract_file;      \
+               cd ${WRKDIR}; ${EXTRACT_CMD}
+       ${RUN} extract_file="${_DISTDIR}/runtime.tgz"; export extract_file;     \
+               cd ${WRKDIR}/src; ${EXTRACT_CMD}
+       ${RUN} extract_file="${_DISTDIR}/runtime.tgz"; export extract_file;     \
+               mkdir ${WRKDIR}/base; cd ${WRKDIR}/base; ${EXTRACT_CMD}
+
+# make symlinks to the dist files
+post-extract:
+       cd ${WRKDIR} && ${LN} -sf ${_DISTDIR}/*  .
+
+# resolve definition of SML_BASE, CFLAGS in patched files
+do-configure:
+       if [ ${MACHINE_ARCH} = "powerpc" ]; then                \
+               ${AWK} '(! /^request nlffi$$/) { print }' \
+               < ${WRKDIR}/config/targets                      \
+               > ${WRKDIR}/temp;                               \
+               ${MV} ${WRKDIR}/temp ${WRKDIR}/config/targets;  \
+       fi
+       cd ${WRKDIR}/config;                            \
+       for f in ${SML_SCRIPTS}; do                     \
+               ${CP} "$${f}" "$${f}.tmp";              \
+               ${SED} -e 's|@SML_BASE@|${SML_BASE}|g'  \
+                       < "$${f}.tmp" > "$${f}";        \
+       done;                                           \
+       cd ${WRKDIR}/src/runtime/objs;                  \
+       for f in *; do                                  \
+               ${CP} "$${f}" "$${f}.tmp";              \
+               ${SED} -e 's|@CFLAGS@|${CFLAGS}|g'      \
+                       < "$${f}.tmp" > "$${f}";        \
+       done
+
+# The build target needs to run $WRKDIR/config/install.sh
+do-build:
+       cd ${WRKDIR} && unset PWD && \
+       FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="${PATCH_ARGS}" \
+               SMLNJ_HOME="${WRKDIR}" ./config/install.sh
+
+# install target
+# (see ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.38/INSTALL)
+# 1. create installation directories
+# 2. copy the ./bin and ./lib directories across
+# 3. install links to executables in $PREFIX/bin
+INSTALLATION_DIRS=     bin
+do-install:
+       ${INSTALL_DATA_DIR} ${DESTDIR}${SML_BASE}
+       cd ${WRKDIR} && pax -rw -pam bin lib ${DESTDIR}${SML_BASE}
+       cd ${DESTDIR}${PREFIX}/bin && ${LN} -sf ../lib/smlnj/bin/* .
+
+.include "../../mk/bsd.pkg.mk"
diff -r 6af82be0dedc -r 7a7ac562f2ec lang/smlnj11072/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/smlnj11072/Makefile.common   Sun Jul 03 17:50:31 2016 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile.common,v 1.1 2016/07/03 17:50:31 dholland Exp $
+
+# smlnj also supports hppa, sparc, ppc, mlrisc & alpha
+# pkg support for those platforms, and say, solaris-x86
+# is left as an (easy) exercise for the reader.
+ONLY_FOR_PLATFORM=     NetBSD-*-i386 NetBSD-*-sparc NetBSD-*-powerpc \
+                       FreeBSD-*-i386 Linux-*-i386 SunOS-*-sparc
+
+.include "../../mk/bsd.prefs.mk"
+
+# Possible values of BOX and OS must be kept in sync with the
+# currently ported platforms.
+
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD"
+OS=            bsd
+.elif ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
+OS=            ${LOWER_OPSYS}
+.endif
+
+PLIST_VARS+=   nlffi           # not available on all platforms
+
+.if ${MACHINE_ARCH} == "i386"
+BOX=           x86
+PLIST.nlffi=   yes
+.elif ${MACHINE_ARCH} == "powerpc"
+BOX=           ppc
+.elif ${MACHINE_ARCH} == "sparc"
+BOX=           ${MACHINE_ARCH}
+PLIST.nlffi=   yes
+.else
+# for "make fetch", default to i386 instead of trying to download
+# a non-existing file
+BOX=           x86
+PLIST.nlffi=   yes
+.endif
+
+PLIST_SUBST+=  BOX=${BOX:Q} OS=${OS:Q} NLFFI=${NLFFI}
diff -r 6af82be0dedc -r 7a7ac562f2ec lang/smlnj11072/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/smlnj11072/PLIST     Sun Jul 03 17:50:31 2016 +0000
@@ -0,0 +1,176 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/03 17:50:31 dholland Exp $
+bin/heap2asm
+bin/heap2exec
+bin/ml-antlr
+bin/ml-build
+bin/ml-burg
+bin/ml-lex
+bin/ml-makedepend
+${PLIST.nlffi}bin/ml-nlffigen
+bin/ml-ulex
+bin/ml-yacc
+bin/nowhere
+bin/sml
+lib/smlnj/bin/.arch-n-opsys
+lib/smlnj/bin/.heap/heap2asm.${BOX}-${OS}
+lib/smlnj/bin/.heap/ml-antlr.${BOX}-${OS}
+lib/smlnj/bin/.heap/ml-burg.${BOX}-${OS}
+lib/smlnj/bin/.heap/ml-lex.${BOX}-${OS}
+${PLIST.nlffi}lib/smlnj/bin/.heap/ml-nlffigen.${BOX}-${OS}
+lib/smlnj/bin/.heap/ml-ulex.${BOX}-${OS}
+lib/smlnj/bin/.heap/ml-yacc.${BOX}-${OS}
+lib/smlnj/bin/.heap/nowhere.${BOX}-${OS}
+lib/smlnj/bin/.heap/sml.${BOX}-${OS}
+lib/smlnj/bin/.link-sml
+lib/smlnj/bin/.run-sml
+lib/smlnj/bin/.run/run.${BOX}-${LOWER_OPSYS}
+lib/smlnj/bin/heap2asm
+lib/smlnj/bin/heap2exec
+lib/smlnj/bin/ml-antlr
+lib/smlnj/bin/ml-build
+lib/smlnj/bin/ml-burg
+lib/smlnj/bin/ml-lex
+lib/smlnj/bin/ml-makedepend
+${PLIST.nlffi}lib/smlnj/bin/ml-nlffigen
+lib/smlnj/bin/ml-ulex
+lib/smlnj/bin/ml-yacc
+lib/smlnj/bin/nowhere
+lib/smlnj/bin/sml
+lib/smlnj/lib/SMLNJ-BASIS/.cm/${BOX}-unix/basis.cm
+lib/smlnj/lib/SMLNJ-LIB/Controls/.cm/${BOX}-unix/controls-lib.cm
+lib/smlnj/lib/SMLNJ-LIB/HTML/.cm/${BOX}-unix/html-lib.cm
+lib/smlnj/lib/SMLNJ-LIB/PP/.cm/${BOX}-unix/pp-lib.cm
+lib/smlnj/lib/SMLNJ-LIB/Util/.cm/${BOX}-unix/smlnj-lib.cm
+lib/smlnj/lib/SMLNJ-ML-YACC-LIB/.cm/${BOX}-unix/ml-yacc-lib.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/ALPHA.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/AMD64-Peephole.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/AMD64.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/CCall-Vararg.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/CCall-sparc.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/CCall-x86-64.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/CCall-x86.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/CCall.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/Control.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/Graphs.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/HPPA.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/IA32-Peephole.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/IA32.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/Lib.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/MLRISC.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/MLTREE.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/PPC.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/Peephole.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/RA.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/SPARC.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/StagedAlloc.cm
+lib/smlnj/lib/SMLNJ-MLRISC/.cm/${BOX}-unix/Visual.cm
+lib/smlnj/lib/burg-ext.cm/.cm/${BOX}-unix/burg-ext.cm
+${PLIST.nlffi}lib/smlnj/lib/c/.cm/${BOX}-unix/c.cm
+${PLIST.nlffi}lib/smlnj/lib/c/internals/.cm/${BOX}-unix/c-int.cm
+${PLIST.nlffi}lib/smlnj/lib/c/memory/.cm/${BOX}-unix/memory.cm
+lib/smlnj/lib/ckit-lib.cm/.cm/${BOX}-unix/ckit-lib.cm
+lib/smlnj/lib/cml-lib/.cm/${BOX}-unix/smlnj-lib.cm
+lib/smlnj/lib/cml-lib/.cm/${BOX}-unix/trace-cml.cm
+lib/smlnj/lib/cml/.cm/${BOX}-unix/basis.cm
+lib/smlnj/lib/cml/.cm/${BOX}-unix/cml-internal.cm
+lib/smlnj/lib/cml/.cm/${BOX}-unix/cml.cm
+lib/smlnj/lib/cml/.cm/${BOX}-unix/core-cml.cm
+lib/smlnj/lib/dir-tool.cm/.cm/${BOX}-unix/dir-tool.cm
+lib/smlnj/lib/eXene.cm/.cm/${BOX}-unix/eXene.cm
+lib/smlnj/lib/grm-ext.cm/.cm/${BOX}-unix/grm-ext.cm
+lib/smlnj/lib/hash-cons-lib.cm/.cm/${BOX}-unix/hash-cons-lib.cm
+lib/smlnj/lib/inet-lib.cm/.cm/${BOX}-unix/inet-lib.cm
+lib/smlnj/lib/json-lib.cm/.cm/${BOX}-unix/json-lib.cm
+lib/smlnj/lib/lex-ext.cm/.cm/${BOX}-unix/lex-ext.cm
+lib/smlnj/lib/make-tool.cm/.cm/${BOX}-unix/make-tool.cm
+lib/smlnj/lib/ml-antlr-tool.cm/.cm/${BOX}-unix/ml-antlr-tool.cm
+lib/smlnj/lib/ml-lpt-lib.cm/.cm/${BOX}-unix/ml-lpt-lib.cm
+lib/smlnj/lib/ml-ulex-tool.cm/.cm/${BOX}-unix/ml-ulex-tool.cm
+lib/smlnj/lib/mlburg-tool.cm/.cm/${BOX}-unix/mlburg-tool.cm
+lib/smlnj/lib/mllex-tool.cm/.cm/${BOX}-unix/mllex-tool.cm
+lib/smlnj/lib/mlrisc-tools/.cm/${BOX}-unix/match-compiler.cm
+lib/smlnj/lib/mlrisc-tools/.cm/${BOX}-unix/parser.cm
+lib/smlnj/lib/mlrisc-tools/.cm/${BOX}-unix/pp.cm
+lib/smlnj/lib/mlrisc-tools/.cm/${BOX}-unix/prec-parser.cm
+lib/smlnj/lib/mlrisc-tools/.cm/${BOX}-unix/sml-ast.cm
+lib/smlnj/lib/mlrisc-tools/.cm/${BOX}-unix/source-map.cm
+lib/smlnj/lib/mlyacc-tool.cm/.cm/${BOX}-unix/mlyacc-tool.cm
+lib/smlnj/lib/noweb-tool.cm/.cm/${BOX}-unix/noweb-tool.cm
+lib/smlnj/lib/nw-ext.cm/.cm/${BOX}-unix/nw-ext.cm
+lib/smlnj/lib/pathconfig
+lib/smlnj/lib/pgraph-util.cm/.cm/${BOX}-unix/pgraph-util.cm
+lib/smlnj/lib/pgraph.cm/.cm/${BOX}-unix/pgraph.cm
+lib/smlnj/lib/pickle-lib.cm/.cm/${BOX}-unix/pickle-lib.cm
+lib/smlnj/lib/reactive-lib.cm/.cm/${BOX}-unix/reactive-lib.cm
+lib/smlnj/lib/regexp-lib.cm/.cm/${BOX}-unix/regexp-lib.cm
+lib/smlnj/lib/shell-tool.cm/.cm/${BOX}-unix/shell-tool.cm
+lib/smlnj/lib/smlnj-tdp/.cm/${BOX}-unix/back-trace.cm
+lib/smlnj/lib/smlnj-tdp/.cm/${BOX}-unix/coverage.cm
+lib/smlnj/lib/smlnj-tdp/.cm/${BOX}-unix/plugins.cm
+lib/smlnj/lib/smlnj/.cm/${BOX}-unix/cm.cm
+lib/smlnj/lib/smlnj/.cm/${BOX}-unix/cmb.cm
+lib/smlnj/lib/smlnj/.cm/${BOX}-unix/compiler.cm
+lib/smlnj/lib/smlnj/.cm/${BOX}-unix/installer.cm
+lib/smlnj/lib/smlnj/.cm/${BOX}-unix/library-install.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/ALPHA.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/AMD64.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/Control.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/Graphs.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/HPPA.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/IA32.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/Lib.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/MLRISC.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/MLTREE.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/PPC.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/SPARC.cm
+lib/smlnj/lib/smlnj/MLRISC/.cm/${BOX}-unix/Visual.cm
+lib/smlnj/lib/smlnj/basis/.cm/${BOX}-unix/basis.cm
+lib/smlnj/lib/smlnj/cm/.cm/${BOX}-unix/cm.cm
+lib/smlnj/lib/smlnj/cm/.cm/${BOX}-unix/tools.cm
+lib/smlnj/lib/smlnj/cmb/.cm/${BOX}-unix/alpha32-unix.cm
+lib/smlnj/lib/smlnj/cmb/.cm/${BOX}-unix/amd64-unix.cm
+lib/smlnj/lib/smlnj/cmb/.cm/${BOX}-unix/current.cm
+lib/smlnj/lib/smlnj/cmb/.cm/${BOX}-unix/hppa-unix.cm
+lib/smlnj/lib/smlnj/cmb/.cm/${BOX}-unix/ppc-macos.cm
+lib/smlnj/lib/smlnj/cmb/.cm/${BOX}-unix/ppc-unix.cm



Home | Main Index | Thread Index | Old Index