aboutsummaryrefslogtreecommitdiff
path: root/development/ipython/ipython.SlackBuild
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <slackbuilds@jaxartes.net>2014-03-04 17:39:38 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-03-04 22:43:41 +0700
commit0d6aeb29cf15a0151e6757e5a41ff2b39fc531bd (patch)
tree279f389651ffa8bfb41e0b3a7f2f599a745fb359 /development/ipython/ipython.SlackBuild
parent3a5d22a5b6946f73bb8b085f11287a7dd0672d40 (diff)
development/ipython: Updated for version 1.2.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 8be93914eaea..8f82a702f652 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