summaryrefslogtreecommitdiff
path: root/development/spyder/spyder.SlackBuild
diff options
context:
space:
mode:
authorlarryhaja <larryhaja@gmail.com>2013-11-13 19:28:14 -0800
committerRobby Workman <rworkman@slackbuilds.org>2013-11-14 00:06:32 -0600
commitdaa1ffe34aa01826d99964ac7761626a89d2035b (patch)
tree7629f40bc58c56cbe43f43fc4e76efca188a749a /development/spyder/spyder.SlackBuild
parent13685e8c535e9a444765fc0e0a991b4b5ca99bc4 (diff)
downloadslackbuilds-daa1ffe34aa01826d99964ac7761626a89d2035b.tar.gz
development/spyder: Upgraded to 2.2.5
Moved Sphinx to optional dependency and added %README% to spyder.info Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/spyder/spyder.SlackBuild')
-rw-r--r--development/spyder/spyder.SlackBuild35
1 files changed, 24 insertions, 11 deletions
diff --git a/development/spyder/spyder.SlackBuild b/development/spyder/spyder.SlackBuild
index dd0da2a043..f5b967f684 100644
--- a/development/spyder/spyder.SlackBuild
+++ b/development/spyder/spyder.SlackBuild
@@ -2,10 +2,28 @@
# Slackware build script for spyder
-# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2010-2013 Larry Hajali <larryhaja[at]gmail[dot]com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, 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.
+#
+# 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.
PRGNAM=spyder
-VERSION=${VERSION:-2.1.11}
+VERSION=${VERSION:-2.2.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -53,29 +71,24 @@ find . \
# Sphinx craps out when files are in Windows format. We need to
# change doc/conf.py to Unix format. Simple hack! :/
-for FILE in $(find . -type f -exec grep -Pl '\r\n' {} \;); do
+for FILE in $(find . -type f \( ! -iname "*\.*o" ! -iname "*\.png" \) \
+| xargs grep -Pl '\r$');
+do
sed -i 's/\r//g' $FILE
done
-# Use the license found in the __init__.py file
-cat spyderlib/__init__.py | head -n 27 | tail -n 25 > LICENSE
-
-# Fix the .desktop item.
-sed -i 's|Science;||' scripts/$PRGNAM.desktop
-printf "\nIcon=$PRGNAM\n" >> scripts/$PRGNAM.desktop
-
python setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-install -D -m 0644 scripts/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
for i in 16 24 32 36 48 64 96 128; do
convert spyderlib/images/$PRGNAM.svg -resize ${i}x${i}! $PRGNAM-$i.png
install -D -m 0644 $PRGNAM-$i.png $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png
done
install -D -m 0644 spyderlib/images/$PRGNAM.svg \
$PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg
+rm -rf $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a PKG-INFO README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION