diff options
author | Petar Petrov <ppetrov@paju.oulu.fi> | 2012-02-19 14:20:37 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-02-20 12:20:46 -0600 |
commit | fe3095faf885d66e39a7cf0ff242dce6b3353aef (patch) | |
tree | 0684ab050966f1cc52c33842de4e8269a13d3e3b /academic/staden/staden.SlackBuild | |
parent | 63e3433063fed4ed657ea181d933f06cb497b716 (diff) |
academic/staden: Several fixes/enhancements
I notified upstream that Staden had been added to SlackBuilds.org
and got some handy tips. So:
1) The components of the program will now find their documentation
directly.
2) The Staden package is now ready to provide a GUI for EMBOSS.
3) The real icons are used (converted from their Mac format).
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic/staden/staden.SlackBuild')
-rw-r--r-- | academic/staden/staden.SlackBuild | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/academic/staden/staden.SlackBuild b/academic/staden/staden.SlackBuild index a950d643efb32..707e9007deec0 100644 --- a/academic/staden/staden.SlackBuild +++ b/academic/staden/staden.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for staden -# Copyright 2011 Petar Petrov, ppetrov@paju.oulu.fi +# Copyright 2011-2012 Petar Petrov, ppetrov@paju.oulu.fi # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=staden VERSION=${VERSION:-2.0.0b9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -37,7 +37,7 @@ fi SLKTCL=tcl8.5.9 # Slackware 13.37 sources for TCL SLKTK=tk8.5.9 # Slackware 13.37 sources for TK -TKLIB=tklib0.5 # Folder name of TKLIB libraries, see line 117. +TKLIB=tklib0.5 # Folder name of TKLIB CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -95,6 +95,14 @@ sed -i "s:$STADENROOT/lib:$STADENROOT/lib${LIBDIRSUFFIX}:g" \ prefinish/finish_sanger prefinish/prefinish pregap4/pregap4 spin/spin \ spin_emboss/create_emboss_files trev/trev +# Point to the right place of the EMBOSS .acd and data files. This is +# needed if the "create_emboss_files" script is run after install. +sed -i "133 c set acd_dir /usr/share/EMBOSS/acd" spin_emboss/create_emboss_files.tcl +sed -i "73 a EMBOSS_DATA=/usr/share/EMBOSS/data; export EMBOSS_DATA" spin/spin + +# Correct the path where staden components look for their manual. +sed -i "s:/share/doc/staden/manual:/doc/$PRGNAM-$VERSION/manual:" tk_utils/help_config + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -113,7 +121,7 @@ make install DESTDIR=$PKG # Build documentation. In the process, texi2dvi looks for tex and # that's why the SlackBuild should be run as real root (su -). # ## (or just source /etc/profile ) --rworkman -cd ../${PRGNAM}_doc-$VERSION-src +cd $TMP/$PRGNAM-$VERSION/${PRGNAM}_doc-$VERSION-src # Fix the doc and man pages paths sed "s:{datarootdir}/doc/staden:{prefix}/doc/$PRGNAM-$VERSION:" -i Makefile @@ -130,6 +138,9 @@ make install DESTDIR=$PKG # Now that we're done building, let's remove those symlinks from earlier... rm -f /tmp/$SLKTCL /tmp/$SLKTK +# This is empty +rm -rf $PKG/usr/share/doc + 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 @@ -137,17 +148,13 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/share/{applications,pixmaps} -cp $CWD/desktop/* $PKG/usr/share/applications -cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps +cp $CWD/desktop/*.desktop $PKG/usr/share/applications +cp $CWD/desktop/*.png $PKG/usr/share/pixmaps -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cd ../$PRGNAM-$VERSION-src cp -a ChangeLog NEWS README.build $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/References > $PKG/usr/doc/$PRGNAM-$VERSION/References -# Staden components expect the manual to be in /usr/share/doc/staden. -ln -s $PRGNAM-$VERSION $PKG/usr/doc/$PRGNAM -rm -rf $PKG/usr/share/doc # This is empty mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |