Add sml-nj template
Getty Ritter
6 years ago
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/heap2exec $@
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/ml-antlr $@
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/ml-build $@
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/ml-burg $@
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/ml-lex $@
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/ml-makedepend $@
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/ml-nlffigen $@
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/ml-ulex $@
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/ml-yacc $@
|
| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
export SMLNJ_HOME=${SMLNJ_HOME:-/usr/lib/smlnj}
|
| 4 |
|
| 5 |
exec $SMLNJ_HOME/bin/sml $@
|
| 1 |
# Template file for 'sml-nj'
|
| 2 |
pkgname=sml-nj
|
| 3 |
version=110.82
|
| 4 |
revision=1
|
| 5 |
create_wrksrc=yes
|
| 6 |
only_for_archs="i686 x86_64"
|
| 7 |
hostmakedepends="wget"
|
| 8 |
makedepends="gcc-multilib"
|
| 9 |
depends="glibc-32bit libgcc-32bit"
|
| 10 |
short_desc="Standard ML of New Jersey, an open-source SML compiler"
|
| 11 |
maintainer="Getty Ritter <sml-nj-pkg@infinitenegativeutility.com>"
|
| 12 |
license="BSD alike"
|
| 13 |
homepage="http://www.smlnj.org/"
|
| 14 |
distfiles="http://smlnj.cs.uchicago.edu/dist/working/${version}/config.tgz"
|
| 15 |
checksum=ceff9288e8106d94ce813181d6f4c4da02e4abf808875b27b78d9f6258d016de
|
| 16 |
nopie=yes
|
| 17 |
|
| 18 |
function do_build {
|
| 19 |
config/install.sh
|
| 20 |
}
|
| 21 |
|
| 22 |
function do_install {
|
| 23 |
vmkdir /usr/lib/smlnj
|
| 24 |
cp -R ${wrksrc}/{bin,lib} ${DESTDIR}/usr/lib/smlnj
|
| 25 |
|
| 26 |
for file in heap2exec ml-antlr ml-build ml-burg ml-lex ml-makedepend \
|
| 27 |
ml-nlffigen ml-ulex ml-yacc sml; do
|
| 28 |
vbin ${FILESDIR}/${file}
|
| 29 |
done
|
| 30 |
|
| 31 |
for f in ${wrksrc}/doc/man/man*/*; do
|
| 32 |
vman $f
|
| 33 |
done
|
| 34 |
}
|