diff options
author | Carlos Corbacho <carlos@strangeworlds.co.uk> | 2010-05-13 00:24:49 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:24:49 +0200 |
commit | c3638014f7ff8172b7f3efd1ba847121fc78cba8 (patch) | |
tree | 4d0f95872cd85462a09defba94315f4dde70b6c4 /development/ipython/ipython.SlackBuild | |
parent | 7b87bc849ace261c13172c5f991fdf33800558f6 (diff) |
development/ipython: Updated for version 0.10
Diffstat (limited to 'development/ipython/ipython.SlackBuild')
-rw-r--r-- | development/ipython/ipython.SlackBuild | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/development/ipython/ipython.SlackBuild b/development/ipython/ipython.SlackBuild index ad37bdd7d6424..66f304fad6db1 100644 --- a/development/ipython/ipython.SlackBuild +++ b/development/ipython/ipython.SlackBuild @@ -2,7 +2,7 @@ # SlackBuild for IPython -# Copyright 2008 Carlos Corbacho <carlos AT strangeworlds.co.uk> +# Copyright 2008-2009 Carlos Corbacho <carlos@strangeworlds.co.uk> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,39 +22,44 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=ipython -VERSION=${VERSION:-0.9.1} +PKGNAM=ipython +VERSION=${VERSION:-0.10} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM +PKG=$TMP/package-$PKGNAM OUTPUT=${OUTPUT:-/tmp} +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.gz +cd $PKGNAM-$VERSION -cd $TMP || exit 1 -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +# Make sure ownerships and permissions are sane: find . \ \( -perm 777 -o -perm 775 -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 {} \; +# Build and install: python setup.py \ install \ - --root="$PKG" \ - || exit 1 + --root="$PKG" +# Install documentation: mkdir -p $PKG/usr/doc mv $PKG/usr/share/doc/ipython $PKG/usr/doc/ipython-$VERSION -chmod -R 644 $PKG/usr/doc/$PRGNAM-$VERSION/* +chmod -R 644 $PKG/usr/doc/$PKGNAM-$VERSION/* +# Compress and link manpages, if any: mv $PKG/usr/share/man $PKG/usr if [ -d $PKG/usr/man ]; then ( cd $PKG/usr/man @@ -69,16 +74,26 @@ if [ -d $PKG/usr/man ]; then done ) fi + +# Compress info files, if any: +if [ -d $PKG/usr/info ]; then + ( cd $PKG/usr/info + rm -f dir + gzip -9 * + ) +fi + +# Delete now empty directory rm -rf $PKG/usr/share 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.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then - rm -rf $TMP/$PRGNAM-$VERSION + rm -rf $TMP/$PKGNAM-$VERSION rm -rf $PKG fi |