summaryrefslogtreecommitdiffstats
path: root/development/smlnj
diff options
context:
space:
mode:
author Diniz Bortolotto <diniz.bortolotto@gmail.com>2024-05-18 13:20:13 -0300
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-05-21 11:14:56 +0700
commit4f9ce8bef4156b5eea03480ca6b306090296aa7e (patch)
treea046ee893a84e654945e4f48d89eeba7975a84f2 /development/smlnj
parentadc489c038bc97e3b2f54c59dab62c5f53f3a863 (diff)
downloadslackbuilds-4f9ce8bef4156b5eea03480ca6b306090296aa7e.tar.gz
slackbuilds-4f9ce8bef4156b5eea03480ca6b306090296aa7e.tar.xz
development/smlnj: Amend. Patch misalign.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/smlnj')
-rw-r--r--development/smlnj/_arch-n-opsys.patch10
-rw-r--r--development/smlnj/doinst.sh2
-rw-r--r--development/smlnj/smlnj.SlackBuild6
3 files changed, 13 insertions, 5 deletions
diff --git a/development/smlnj/_arch-n-opsys.patch b/development/smlnj/_arch-n-opsys.patch
new file mode 100644
index 0000000000..4addf45eb2
--- /dev/null
+++ b/development/smlnj/_arch-n-opsys.patch
@@ -0,0 +1,10 @@
+--- _arch-n-opsys 2015-07-09 04:54:20.000000000 -0300
++++ _arch-n-opsys.new 2024-05-21 00:47:47.253431563 -0300
+@@ -66,6 +66,7 @@
+ 2.6.*) ;;
+ 3.*) ;;
+ 4.*) ;;
++ 5.*) ;;
+ *) exit 1 ;;
+ esac
+ ;;
diff --git a/development/smlnj/doinst.sh b/development/smlnj/doinst.sh
index 048eb17e79..65c7e2eeb9 100644
--- a/development/smlnj/doinst.sh
+++ b/development/smlnj/doinst.sh
@@ -7,5 +7,3 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
-
-chmod +x /etc/profile.d/smlnj.sh
diff --git a/development/smlnj/smlnj.SlackBuild b/development/smlnj/smlnj.SlackBuild
index f1c4a612b8..86899607f1 100644
--- a/development/smlnj/smlnj.SlackBuild
+++ b/development/smlnj/smlnj.SlackBuild
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -76,6 +73,8 @@ tar xvf $CWD/config.tgz
# Confuses install.sh
unset SMLNJ_HOME
+patch $TMP/$PRGNAM/config/_arch-n-opsys < $CWD/_arch-n-opsys.patch
+
config/install.sh
mkdir -p "$PKG/usr/lib/smlnj"
@@ -83,6 +82,7 @@ cp -R "$TMP/$PRGNAM/"{bin,lib} "$PKG/usr/lib/smlnj"
mkdir -p "$PKG/etc/profile.d"
cp "$CWD/smlnj.sh" "$PKG/etc/profile.d/smlnj.sh"
+chmod +x $PKG/etc/profile.d/smlnj.sh
chown -R root:root .
find -L . \