summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Mario Preksavec <mario@slackware.hr>2022-01-07 03:58:49 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-01-13 08:58:48 +0700
commit65a7a4e0156c587f77fd1d94b984011b338004a8 (patch)
tree40fdd792d9595bfee9fa7a404dd33750761ab55a
parent88b85ccef5b9ac72c61f812f4de220bbd63e6d3d (diff)
downloadslackbuilds-65a7a4e0156c587f77fd1d94b984011b338004a8.tar.gz
slackbuilds-65a7a4e0156c587f77fd1d94b984011b338004a8.tar.xz
development/guile2.0: Added (GNU's extension language library).
Signed-off-by: Mario Preksavec <mario@slackware.hr> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/guile2.0/README11
-rw-r--r--development/guile2.0/guile2.0.SlackBuild148
-rw-r--r--development/guile2.0/guile2.0.info10
-rw-r--r--development/guile2.0/slack-desc19
4 files changed, 188 insertions, 0 deletions
diff --git a/development/guile2.0/README b/development/guile2.0/README
new file mode 100644
index 0000000000..f7b811dfdb
--- /dev/null
+++ b/development/guile2.0/README
@@ -0,0 +1,11 @@
+Guile is the GNU Ubiquitous Intelligent Language for Extensions.
+
+Guile is an interpreter for Scheme, packaged as a library that you
+can link into your applications to give them their own scripting
+language. Guile will eventually support other languages as well,
+giving users of Guile-based applications a choice of languages.
+
+This is Guile 2.0 (legacy version) needed by some packages in SBo.
+Heavily based on Guile 1.8 and 2.2 SlackBuilds, also found on SBo.
+
+This package can be installed alongside with Slackware's Guile
diff --git a/development/guile2.0/guile2.0.SlackBuild b/development/guile2.0/guile2.0.SlackBuild
new file mode 100644
index 0000000000..f31708676f
--- /dev/null
+++ b/development/guile2.0/guile2.0.SlackBuild
@@ -0,0 +1,148 @@
+#!/bin/bash
+
+# Slackware build script for guile2.0
+
+# Copyright 2022 Mario Preksavec, Zagreb, Croatia
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=guile2.0
+SRCNAM=guile
+VERSION=${VERSION:-2.0.14}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ 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
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z
+cd $SRCNAM-$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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --infodir=/usr/info \
+ --mandir=/usr/man \
+ --program-suffix=2.0 \
+ --with-threads \
+ --disable-error-on-warning \
+ --disable-static \
+ --disable-rpath \
+ --build=$ARCH-slackware-linux
+
+make -j1
+make install DESTDIR=$PKG
+
+# Move libguile*-gdb.scm to GDB's autoload directory to avoid
+# getting "not an ELF file" errors from ldconfig:
+mkdir -p $PKG/usr/share/gdb/auto-load/usr/lib${LIBDIRSUFFIX}
+mv $PKG/usr/lib${LIBDIRSUFFIX}/libguile*-gdb.scm $PKG/usr/share/gdb/auto-load/usr/lib${LIBDIRSUFFIX} || exit 1
+
+# Change timestamps on *.go and *.scm files, otherwise on multilib systems
+# the compiled (go) files may be detected as older than the source (scm)
+# files, causing guile to attempt to recompile itself with every use:
+find $PKG/usr/lib${LIBDIRSUFFIX} -name "*.go" -exec touch -r $CWD/$PRGNAM.SlackBuild "{}" \;
+find $PKG/usr/share -name "*.scm" -exec touch -r $CWD/$PRGNAM.SlackBuild "{}" \;
+
+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/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
+
+# Compress info files
+if [ -d $PKG/usr/info ]; then
+ ( cd $PKG/usr/info
+ rm -f dir
+ gzip -9 *
+ # rename them so that they will not overwrite Slackware's files from the guile 3.0 package
+ for i in {1..10}
+ do
+ mv guile.info-$i.gz guile2.0.info-$i.gz
+ done
+ mv guile.info.gz guile2.0.info.gz
+ mv r5rs.info.gz r5rs2.0.info.gz
+ )
+fi
+
+# Avoid duplicate with Slackware's guile.m4
+# It can detect newer and older versions of guile installed on system
+mv $PKG/usr/share/aclocal/guile.m4 $PKG/usr/share/aclocal/guile20.m4
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING* GUILE-VERSION HACKING INSTALL LICENSE NEWS README* THANKS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Fix guile-config2.0 info
+sed -i '1s/guile/guile2.0/' -i $PKG/usr/bin/guile-config2.0
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
+
diff --git a/development/guile2.0/guile2.0.info b/development/guile2.0/guile2.0.info
new file mode 100644
index 0000000000..2dce570cd4
--- /dev/null
+++ b/development/guile2.0/guile2.0.info
@@ -0,0 +1,10 @@
+PRGNAM="guile2.0"
+VERSION="2.0.14"
+HOMEPAGE="https://www.gnu.org/software/guile"
+DOWNLOAD="https://ftp.gnu.org/gnu/guile/guile-2.0.14.tar.xz"
+MD5SUM="c64977c775effd19393364b3018fd8cd"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Mario Preksavec"
+EMAIL="mario at slackware dot hr"
diff --git a/development/guile2.0/slack-desc b/development/guile2.0/slack-desc
new file mode 100644
index 0000000000..ad5340f3e1
--- /dev/null
+++ b/development/guile2.0/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+guile2.0: guile2.0 (GNU's extension language library)
+guile2.0:
+guile2.0: Guile is the GNU Ubiquitous Intelligent Language for Extensions.
+guile2.0: Guile is an interpreter for Scheme, packaged as a library that you
+guile2.0: can link into your applications to give them their own scripting
+guile2.0: language. Guile will eventually support other languages as well,
+guile2.0: giving users of Guile-based applications a choice of languages.
+guile2.0:
+guile2.0: This is Guile 2.0 (legacy version) needed by some packages in SBo.
+guile2.0:
+guile2.0: