diff --git a/d/ipython/ipython-0.10.tar.gz.sha1 b/d/ipython/ipython-0.10.tar.gz.sha1 new file mode 100644 index 00000000..1f121c6c --- /dev/null +++ b/d/ipython/ipython-0.10.tar.gz.sha1 @@ -0,0 +1 @@ +175bbacf74d94336e3fe06e390e04ad2bfff6fd4 ipython-0.10.tar.gz diff --git a/d/ipython/ipython-0.9.1.tar.gz.sha1 b/d/ipython/ipython-0.9.1.tar.gz.sha1 deleted file mode 100644 index 8ce9fab6..00000000 --- a/d/ipython/ipython-0.9.1.tar.gz.sha1 +++ /dev/null @@ -1 +0,0 @@ -2d069416b31ed03eb1cad36f84ef2337362ac6a9 ipython-0.9.1.tar.gz diff --git a/d/ipython/ipython.SlackBuild b/d/ipython/ipython.SlackBuild index 7660d734..89dca0f5 100755 --- a/d/ipython/ipython.SlackBuild +++ b/d/ipython/ipython.SlackBuild @@ -1,43 +1,46 @@ #!/bin/bash # Build script for Slackware -# Damien Goutte-Gattat "gouttegd" +# Copyright (C) 2008,2009 Damien Goutte-Gattat # -# Redistribution and use of this script, with or without modifications, is -# permitted provided that the following conditions are met: +# Redistribution and use of this script, with or without modifications, +# 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. +# 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. +# 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. +# +# Contact: Damien Goutte-Gattat # # Latest ipython sourcecode is available at: -# http://ipython.scipy.org/ +# . # Source package infos NAMESRC=${NAMESRC:-ipython} -VERSION=${VERSION:-0.9.1} +VERSION=${VERSION:-0.10} ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} WGET=${WGET:-http://ipython.scipy.org/dist/$ARCHIVE} -# Built package infos -NAMETGZ=${NAMETGZ:-ipython} +# Build infos +NAMEPKG=${NAMEPKG:-ipython} BUILD=${BUILD:-1GGD} ARCH=${ARCH:-i486} -TARGET=${TARGET:-i486} +EXT=${EXT:-txz} # Directories TMP=${TMP:-/tmp} OUT=${OUT:-$TMP/build} -PKG=${PKG:-$OUT/$NAMETGZ} +PKG=${PKG:-$OUT/$NAMEPKG} CWD=`pwd` set -e # Quit if a command returns non-zero @@ -52,30 +55,19 @@ if [ ! -d $TMP ]; then exit 1 fi -# Compilation flags -case "$ARCH" in -i?86) - CPUOPT="-O2 -march=$ARCH -mtune=i686" - ;; -*) - CPUOPT="-O2" - ;; -esac - # Get and verify the source archive if [ ! -r $ARCHIVE ]; then - wget "$WGET" + wget -c -O $ARCHIVE.part "$WGET" + mv $ARCHIVE.part $ARCHIVE fi sha1sum -c $ARCHIVE.sha1 -NAME=$(tar ft $ARCHIVE | head -1 | cut -d / -f 1) +NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) # Compile cd $TMP echo "Building $ARCHIVE..." tar xf $CWD/$ARCHIVE cd $NAME -CFLAGS=$CPUOPT \ -CXXFLAGS=$CPUOPT \ python setup.py build python setup.py install --prefix=$PKG/usr @@ -93,7 +85,7 @@ cd $PKG mkdir -p $OUT PACKAGING=" chown root:root . -R -/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz +/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT rm -rf $PKG rm -rf $TMP/$NAME "