aboutsummaryrefslogtreecommitdiff
path: root/libraries/itcl/itcl.SlackBuild
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2014-06-29 09:35:35 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-29 09:40:56 +0700
commit7b842dcb626ab1b812b86f3962cddf6fcc1a874a (patch)
tree5e62638a6f0b381a955e66341c3a9a1f5f2dfc67 /libraries/itcl/itcl.SlackBuild
parentfa20e7f2a8ba730c41ff3368651a1995effae3ca (diff)
libraries/itcl: New Maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/itcl/itcl.SlackBuild')
-rw-r--r--libraries/itcl/itcl.SlackBuild54
1 files changed, 40 insertions, 14 deletions
diff --git a/libraries/itcl/itcl.SlackBuild b/libraries/itcl/itcl.SlackBuild
index 68017b0394d2..489679c0714d 100644
--- a/libraries/itcl/itcl.SlackBuild
+++ b/libraries/itcl/itcl.SlackBuild
@@ -1,8 +1,26 @@
#!/bin/sh
# Slackware build script for itcl
-# Written by Richard Ellis <rellis@dp100.com>
-# Hereby dedicated to the public domain.
+# Originally written by Richard Ellis <rellis@dp100.com>
+# Now maintained by: R. S. Ananda Murthy <rsamurti@gmail.com>
+# 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.
PRGNAM=itcl
VERSION=${VERSION:-3.4.1}
@@ -38,7 +56,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -54,10 +72,10 @@ tar -C /tmp -xvf $CWD/tcl$TCL-src.tar.xz
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 \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -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 {} \;
TCL_SRC_DIR="$TMP/tc$TCL" \
CFLAGS="$SLKCFLAGS" \
@@ -73,22 +91,30 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
+# Removed to avoid conflict with tcl-8.6.0
+rm -rf "$PKG"/usr/include
+rm -rf "$PKG"/usr/share/man
+
# There's nothing in $PKG/usr/bin
rmdir $PKG/usr/bin
# Add manpages that are part of the source tarball, but that upstream
# doesn't include for some reason.
-mkdir -p $PKG/usr/man/man3
-for manpage in $TMP/$PRGNAM-$VERSION/doc/*.3 ; do
- gzip -9 -c $manpage > $PKG/usr/man/man3/$( basename $manpage ).gz; done
+# Since these man pages are clashing with itcl4.0.0 which is included with
+# Slackware 14.1 these lines are commented out.
+# mkdir -p $PKG/usr/man/man3
+# for manpage in $TMP/$PRGNAM-$VERSION/doc/*.3 ; do
+# gzip -9 -c $manpage > $PKG/usr/man/man3/$( basename $manpage ).gz; done
+
+# I am removing these man pages which conflict with the man pages
+# provided by the Tcl package of Slackware 14.1.
+rm -rf $PKG/usr/man
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- license.terms \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a license.terms $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install