aboutsummaryrefslogtreecommitdiff
path: root/development/ipython/ipython.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/ipython/ipython.SlackBuild')
-rw-r--r--development/ipython/ipython.SlackBuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/development/ipython/ipython.SlackBuild b/development/ipython/ipython.SlackBuild
index 8be93914eaea8..8f82a702f6520 100644
--- a/development/ipython/ipython.SlackBuild
+++ b/development/ipython/ipython.SlackBuild
@@ -25,7 +25,7 @@
# Maintained by Benjamin-Trigona-Harany
PRGNAM=ipython
-VERSION=${VERSION:-1.1.0}
+VERSION=${VERSION:-1.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,6 +41,7 @@ CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+DOCS=${DOCS:-no}
set -e
@@ -60,7 +61,7 @@ find -L . \
python setup.py install --root="$PKG"
mkdir -p $PKG/usr/doc
-mv $PKG/usr/share/doc/ipython $PKG/usr/doc/ipython-$VERSION
+mv $PKG/usr/share/doc/ipython $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \;
mv $PKG/usr/share/man $PKG/usr
@@ -70,6 +71,17 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
# Delete now empty directory
rm -rf $PKG/usr/share
+# Build and install optional html docs
+if [ "$DOCS" = "yes" ] ; then
+ cd docs
+ make html
+ cp -r build/html $PKG/usr/doc/$PRGNAM-$VERSION
+ cd ..
+fi
+
+cp COPYING.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc