diff options
Diffstat (limited to 'academic/QtiPlot')
-rw-r--r-- | academic/QtiPlot/QtiPlot.SlackBuild | 50 | ||||
-rw-r--r-- | academic/QtiPlot/QtiPlot.info | 6 | ||||
-rw-r--r-- | academic/QtiPlot/README | 8 | ||||
-rw-r--r-- | academic/QtiPlot/build.conf.slack | 8 |
4 files changed, 48 insertions, 24 deletions
diff --git a/academic/QtiPlot/QtiPlot.SlackBuild b/academic/QtiPlot/QtiPlot.SlackBuild index 77ea874e3d7a1..7ea89104c0030 100644 --- a/academic/QtiPlot/QtiPlot.SlackBuild +++ b/academic/QtiPlot/QtiPlot.SlackBuild @@ -1,19 +1,15 @@ #!/bin/sh # Slackware build script for QtiPlot -# Written by Petar Petrov, <ppetrov@paju.oulu.fi> and +# Written by Petar Petrov, <ppetrov@paju.oulu.fi> and # hereby submitted to the public domain -# Based on the QtiPlot package PKGBUILD from Arch Extra. -# Maintainer and packager is Ronald van Haren. Thank you! -# http://www.archlinux.org/packages/extra/i686/qtiplot - -# THIS SLACKBUILD IS DISTRIBUTETD IN THE HOPE OF BEING -# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_ +# THIS SLACKBUILD IS DISTRIBUTED IN THE HOPE OF BEING +# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_ # RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS CAUSED BY IT. PRGNAM=QtiPlot -VERSION=${VERSION:-0.9.8.8} +VERSION=${VERSION:-0.9.8.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -93,13 +89,24 @@ sed -i "s:/usr/local:/usr/share:" qtiplot/qtiplot.pro sed -i "s:/share/man:/man:" qtiplot/qtiplot.pro sed -i "s:/share/doc/qtiplot:/doc/$PRGNAM-$VERSION:" qtiplot/qtiplot.pro -# Point to the right places of qt-assistant-compat, libreoffice -# (when installed), latex, java and python configuration files. +# Point to the right places of qt-assistant-compat, libreoffice (when +# installed), latex, java, the QtiPlot html manual and fitPlugins sed -i "s:<QAssistantClient>:<QtAssistant/qassistantclient.h>:" qtiplot/src/core/ApplicationWindow.cpp sed -i "s:/usr/bin/soffice:/usr/bin/libreoffice:" qtiplot/src/core/ApplicationWindow.cpp sed -i "s:/usr/bin/latex:/usr/share/texmf/bin/latex:" qtiplot/src/core/ApplicationWindow.cpp sed -i "s:/usr/bin/java:/usr/lib${LIBDIRSUFFIX}/java/bin/java:" qtiplot/src/core/ApplicationWindow.cpp -sed -i 's#d_python_config_folder + "#"/usr/share/qtiplot#' qtiplot/src/core/ApplicationWindow.cpp +sed -i "s:/index.html:/html/index.html:" qtiplot/src/core/ApplicationWindow.cpp +sed -i "s:/local/qtiplot/fitPlugins:/lib${LIBDIRSUFFIX}/qtiplot/plugins:" qtiplot/src/core/ApplicationWindow.cpp + +# A few path fixes, needed to generate the html manual +sed -i "s:/stylesheet/dsssl/modular:/dsssl-stylesheets-1.79:" manual/qtiplot.dsl +sed -i "s:/stylesheet/nwalsh:/xsl-stylesheets-1.75.2:" manual/qtiplot_html.xsl +sed -i "s:/schema/dtd/4.4:/xml-dtd-4.5:" manual/docbook-en/index.docbook + +# Make the html manual. If you want to generate the handbook as a PDF, +# change "web" to "en" below and make sure you have installed dblatex +cd $TMP/$SRCNAM-$VERSION/manual +make web # Build QtiPlot cd $TMP/$SRCNAM-$VERSION/qtiplot @@ -108,7 +115,24 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ make make install INSTALL_ROOT=$PKG -cd - + +# Generate translations and copy them to their proper place +lrelease qtiplot.pro +mkdir -p $PKG/usr/share/qtiplot/translations +cp translations/*.qm $PKG/usr/share/qtiplot/translations + +# Copy some python examples +mkdir -p $PKG/usr/share/qtiplot/python-examples +cp examples/python/* $PKG/usr/share/qtiplot/python-examples + +# Build fitPlugins +cd $TMP/$SRCNAM-$VERSION/fitPlugins +qmake +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +make +make install INSTALL_ROOT=$PKG +cd .. 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 @@ -116,7 +140,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr 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 -# Menu item, icon and mime types +# Menu item, icon and mime types. The .xml is from Arch. Thank you! mkdir -p $PKG/usr/share/{pixmaps,applications,mime/packages} cp $CWD/qtiplot.png $PKG/usr/share/pixmaps cp $CWD/qtiplot.desktop $PKG/usr/share/applications diff --git a/academic/QtiPlot/QtiPlot.info b/academic/QtiPlot/QtiPlot.info index e3b245be5aca5..1bdad1f9a3da4 100644 --- a/academic/QtiPlot/QtiPlot.info +++ b/academic/QtiPlot/QtiPlot.info @@ -1,9 +1,9 @@ PRGNAM="QtiPlot" -VERSION="0.9.8.8" +VERSION="0.9.8.9" HOMEPAGE="http://soft.proindependent.com/qtiplot.html" -DOWNLOAD="http://download.berlios.de/qtiplot/qtiplot-0.9.8.8.tar.bz2 \ +DOWNLOAD="http://download.berlios.de/qtiplot/qtiplot-0.9.8.9.tar.bz2 \ http://download.berlios.de/qtiplot/QTeXEngine-0.3-opensource.zip" -MD5SUM="f14cd1af9087696ff1c8a48c3677f4dc \ +MD5SUM="652096a365851da3b5f6fefdcbe2aaec \ d1b234623770ec6209b14d1b5137f2f1" DOWNLOAD_x86_64="" MD5SUM_x86_64="" diff --git a/academic/QtiPlot/README b/academic/QtiPlot/README index f9aaa8daab1f7..7306fd2bf6699 100644 --- a/academic/QtiPlot/README +++ b/academic/QtiPlot/README @@ -27,7 +27,7 @@ Features: - Project files based on folders, a powerful project explorer with built-in drag and drop and searching facilities -This requires gsl, muParser, qt-assistant-compat, tamu_anova and -(optionally) liborigin. All of these are available at SlackBuilds.org. -In addition, QtiPlot comes with QTeXEngine built in and its own, -slightly modified versions of qwt and qwtplot3d. +This requires gsl, muParser, qt-assistant-compat, tamu_anova and +alglib, all of which are available at SlackBuilds.org. QtiPlot comes +with QTeXEngine built in and its own, slightly modified versions of +qwt and qwtplot3d. diff --git a/academic/QtiPlot/build.conf.slack b/academic/QtiPlot/build.conf.slack index 4c42efcc8cd65..b4238b5535ff8 100644 --- a/academic/QtiPlot/build.conf.slack +++ b/academic/QtiPlot/build.conf.slack @@ -30,14 +30,14 @@ QWT3D_LIBS = $$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a # libpng LIBPNG_LIBS = -lpng -# Liborigin (http://sourceforge.net/projects/liborigin/) -LIB_ORIGIN_INCLUDEPATH = /usr/include/liborigin -LIB_ORIGIN_LIBS = -lorigin - # QTeXEngine (http://soft.proindependent.com/qtexengine/) TEX_ENGINE_INCLUDEPATH = $$QTI_ROOT/3rdparty/QTeXEngine/src TEX_ENGINE_LIBS = $$QTI_ROOT/3rdparty/QTeXEngine/libQTeXEngine.a +# ALGLIB (http://www.alglib.net/) +ALGLIB_INCLUDEPATH = /usr/include/libalglib +ALGLIB_LIBS = -lalglib + # TAMUANOVA (http://www.stat.tamu.edu/~aredd/tamuanova/) TAMUANOVA_INCLUDEPATH = /usr/include/tamu_anova TAMUANOVA_LIBS = -ltamuanova |