aboutsummaryrefslogtreecommitdiff
path: root/development/mit-scheme
diff options
context:
space:
mode:
authorJason Graham <jgraha8@gmail.com>2017-04-23 11:04:47 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-29 12:51:25 +0700
commite12ee6bf7f1221f0a0ccd6b4cdd2fc8033fa123a (patch)
treed09d5858a46c7a7789809be3d6a83c04c366a4da /development/mit-scheme
parent6e7abbc269768c91628f281a2adbf4531eb694cc (diff)
development/mit-scheme: Cleanup SlackBuild + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/mit-scheme')
-rw-r--r--development/mit-scheme/README2
-rw-r--r--development/mit-scheme/doinst.sh3
-rw-r--r--development/mit-scheme/mit-scheme.SlackBuild68
-rw-r--r--development/mit-scheme/mit-scheme.info22
4 files changed, 38 insertions, 57 deletions
diff --git a/development/mit-scheme/README b/development/mit-scheme/README
index 3b8ead4248fa..09c75a622330 100644
--- a/development/mit-scheme/README
+++ b/development/mit-scheme/README
@@ -2,5 +2,3 @@ MIT/GNU Scheme is an implementation of the Scheme programming language,
providing an interpreter, compiler, source-code debugger, integrated
Emacs-like editor, and a large runtime library. MIT/GNU Scheme is best suited
to programming large applications with a rapid development cycle.
-
-http://www.gnu.org/software/mit-scheme/
diff --git a/development/mit-scheme/doinst.sh b/development/mit-scheme/doinst.sh
new file mode 100644
index 000000000000..f3605d4eeb4e
--- /dev/null
+++ b/development/mit-scheme/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/install-info ]; then
+ chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/blah.gz 2> /dev/null
+fi
diff --git a/development/mit-scheme/mit-scheme.SlackBuild b/development/mit-scheme/mit-scheme.SlackBuild
index f4cf6b96ffd0..a3b01c355bab 100644
--- a/development/mit-scheme/mit-scheme.SlackBuild
+++ b/development/mit-scheme/mit-scheme.SlackBuild
@@ -31,7 +31,7 @@ TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$(uname -m) ;;
esac
@@ -42,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
TARARCH="i386"
elif [ "$ARCH" = "i686" ]; then
@@ -69,72 +69,54 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cd src
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX \
- --build=$ARCH-slackware-linux
-make
-make install DESTDIR=$PKG
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
+ --build=$ARCH-slackware-linux
+
+ make
+ make install DESTDIR=$PKG
cd ..
-find $PKG -print0 | xargs -0 file \
- | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null \
- || true
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/man/man1
cp -a doc/scheme.1 $PKG/usr/man/man1/mit-scheme.1
find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# take prebuilt info doc rather than build them by ourselves
mkdir -p $PKG/usr/info
tar xvf $CWD/$PRGNAM-$VERSION-doc-info.tar.gz
-chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cp -a $PRGNAM-$VERSION/doc/*.info $PKG/usr/info
-find $PKG/usr/info -type f -exec gzip -9 {} \;
-rm -rf $PRGNAM-$VERSION
+install -o root -g root -m 644 $PRGNAM-$VERSION/doc/*.info $PKG/usr/info
+gzip -9 $PKG/usr/info/*.info*
# ditto for html ones
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
-tar xvf $CWD/$PRGNAM-$VERSION-doc-html.tar.gz
-chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cp -a $PRGNAM-$VERSION/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/html
-rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION-doc-html.tar.gz \
+ -C $PKG/usr/doc/$PRGNAM-$VERSION/html \
+ --strip-components=2
+chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION/html
# ditto for pdf ones
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/pdf
tar xvf $CWD/$PRGNAM-$VERSION-doc-pdf.tar.gz
-chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cp -a $PRGNAM-$VERSION/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/pdf
-rm -rf $PRGNAM-$VERSION
+install -o root -g root -m 644 $PRGNAM-$VERSION/doc/*.pdf $PKG/usr/doc/$PRGNAM-$VERSION/pdf
cp -a changelog.txt src/COPYING src/README.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/mit-scheme/mit-scheme.info b/development/mit-scheme/mit-scheme.info
index 04bc44f4f004..c8b623aaf890 100644
--- a/development/mit-scheme/mit-scheme.info
+++ b/development/mit-scheme/mit-scheme.info
@@ -1,24 +1,22 @@
PRGNAM="mit-scheme"
VERSION="9.2"
HOMEPAGE="http://www.gnu.org/software/mit-scheme/"
-DOWNLOAD=" \
- http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-i386.tar.gz \
- http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-html.tar.gz \
- http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-info.tar.gz \
- http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-pdf.tar.gz"
+DOWNLOAD="http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-i386.tar.gz \
+ http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-html.tar.gz \
+ http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-info.tar.gz \
+ http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-pdf.tar.gz"
MD5SUM="b80458f85b9521bdfb0620edc89e3e61 \
a605fd061ec7419f01f7ce18bd4f8dc1 \
fc49f8169484c358cdae9cfd511b65d2 \
db43ff41a3bb0b5e4e13de7a83c13b0d"
-DOWNLOAD_x86_64=" \
- http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-x86-64.tar.gz \
- http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-html.tar.gz \
- http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-info.tar.gz \
- http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-pdf.tar.gz"
+DOWNLOAD_x86_64="http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-x86-64.tar.gz \
+ http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-html.tar.gz \
+ http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-info.tar.gz \
+ http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.2/mit-scheme-9.2-doc-pdf.tar.gz"
MD5SUM_x86_64="9fcc6c156e53efeb0560996551fa0a57 \
a605fd061ec7419f01f7ce18bd4f8dc1 \
fc49f8169484c358cdae9cfd511b65d2 \
db43ff41a3bb0b5e4e13de7a83c13b0d"
REQUIRES=""
-MAINTAINER="Ryan P.C. McQuen"
-EMAIL="ryanpcmcquen@member.fsf.org"
+MAINTAINER="Jason Graham"
+EMAIL="jgraha8@gmail.com"