aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Psaltis <ampsaltis@gmail.com>2010-05-12 17:40:23 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:40:23 +0200
commit6dc0a3aedc9161a0eb667dce43f7135ae08505b7 (patch)
tree7ea9447ee1492d5612b79c72b1b1c6252dde4834
parentd19b0aa27892a67ad5464fe72c97de59c488d6bb (diff)
libraries/cln: Updated for version 1.2.2
-rw-r--r--libraries/cln/cln.SlackBuild52
-rw-r--r--libraries/cln/cln.info6
-rw-r--r--libraries/cln/doinst.sh7
3 files changed, 36 insertions, 29 deletions
diff --git a/libraries/cln/cln.SlackBuild b/libraries/cln/cln.SlackBuild
index 88382236d05d0..2cf18d2fc0966 100644
--- a/libraries/cln/cln.SlackBuild
+++ b/libraries/cln/cln.SlackBuild
@@ -1,9 +1,8 @@
#!/bin/sh
# Slackware build script for cln
-# Written by Andrew Psaltis (ampsaltis@gmail.com)
-# Copyright 2007 Andrew Psaltis, Vienna, VA, USA
+# Copyright 2007,2009 Andrew Psaltis <ampsaltis@gmail.com>
# All rights reserved.
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -22,25 +21,24 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-set -e
-
-DOCS="COPYING INSTALL* NEWS README TODO"
-
PRGNAM=cln
-VERSION=1.1.13
+VERSION=1.2.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+set -e
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
-elif [ "$ARCH" = "x86_64" ]; then # For BlueWhite64
+elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
@@ -48,7 +46,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xfvj $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -63,33 +61,43 @@ CXXFLAGS="$SLKCFLAGS" \
--infodir=/usr/info \
--enable-shared \
--disable-static \
- --with-gnu-ld
+ --with-gnu-ld \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
-
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
rm -f $PKG/usr/info/dir
-gzip -9 $PKG/usr/info/*.info*
+gzip -9 $PKG/usr/info/*
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-mv $PKG/usr/share/html $PKG/usr/doc/$PRGNAM-$VERSION
+# Remove empty man dir
+rm -rf $PKG/usr/man
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
+cp -a \
+ COPYING INSTALL* NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ examples/*.cc examples/*.1 \
+ $PKG/usr/doc/$PRGNAM-$VERSION/examples
+# Move docs that ignore --docdir to their proper place
+mv $PKG/usr/share/html $PKG/usr/share/dvi/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# Everything that was in $PKG/usr/share has been moved to
+# $PKG/usr/doc/cln-$VERSION (or is empty at time of compression)
+rm -rf $PKG/usr/share/
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# Make the package
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/libraries/cln/cln.info b/libraries/cln/cln.info
index d844c328dd5bd..a6c488c4141a5 100644
--- a/libraries/cln/cln.info
+++ b/libraries/cln/cln.info
@@ -1,8 +1,8 @@
PRGNAM="cln"
-VERSION="1.1.13"
+VERSION="1.2.2"
HOMEPAGE="http://www.ginac.de/CLN"
-DOWNLOAD="http://www.ginac.de/CLN/cln-1.1.13.tar.bz2"
-MD5SUM="1f3d227360003b389bba14c8a5c3695a"
+DOWNLOAD="ftp://ftpthep.physik.uni-mainz.de/pub/gnu/cln-1.2.2.tar.bz2"
+MD5SUM="6b479281fec86314b4c7a9357bd83ef8"
MAINTAINER="Andrew Psaltis"
EMAIL="ampsaltis@gmail.com"
APPROVED="rworkman"
diff --git a/libraries/cln/doinst.sh b/libraries/cln/doinst.sh
index 964306b8c7de8..ce39e69db4408 100644
--- a/libraries/cln/doinst.sh
+++ b/libraries/cln/doinst.sh
@@ -1,5 +1,4 @@
-#!/bin/sh
-
-if [ -x usr/bin/install-info ] ; then
- chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/cln.info.gz 2>/dev/null
+if [ -x /usr/bin/install-info ] ; then
+ chroot . /usr/bin/install-info --info-dir=/usr/info /usr/info/cln.info.gz 2>/dev/null
fi
+