academic/QtiPlot: Added (Data Analysis and Visualisation)

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Petar Petrov 2011-10-20 00:02:09 -02:00 committed by Niels Horn
parent 5327d32896
commit 56863f1f4f
9 changed files with 307 additions and 0 deletions

View File

@ -0,0 +1,137 @@
#!/bin/sh
# Slackware build script for QtiPlot
# 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_
# RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS CAUSED BY IT.
PRGNAM=QtiPlot
VERSION=${VERSION:-0.9.8.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=$(echo $PRGNAM | tr A-Z a-z)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
cd $TMP/$SRCNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Build QtiPlot's qwt
cd $TMP/$SRCNAM-$VERSION/3rdparty/qwt
qmake
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make
# Build QtiPlot's qwtplot3d
cd $TMP/$SRCNAM-$VERSION/3rdparty/qwtplot3d
qmake
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make
# Build QTeXEngine
cd $TMP/$SRCNAM-$VERSION/3rdparty
unzip $CWD/QTeXEngine-0.3-opensource.zip
cd QTeXEngine
qmake
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make
# Use the custom build.conf
cd $TMP/$SRCNAM-$VERSION
cp $CWD/build.conf.slack build.conf
# A few path fixes to qtiplot.pro
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.
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
# Build QtiPlot
cd $TMP/$SRCNAM-$VERSION/qtiplot
qmake qtiplot.pro
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
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
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
cp $CWD/qtiplot.xml $PKG/usr/share/mime/packages
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
README.html gpl_licence.txt qtiplot.css qtiplot_logo.png \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/build.conf.slack > $PKG/usr/doc/$PRGNAM-$VERSION/build.conf.slack
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -0,0 +1,12 @@
PRGNAM="QtiPlot"
VERSION="0.9.8.8"
HOMEPAGE="http://soft.proindependent.com/qtiplot.html"
DOWNLOAD="http://download.berlios.de/qtiplot/qtiplot-0.9.8.8.tar.bz2 \
http://download.berlios.de/qtiplot/QTeXEngine-0.3-opensource.zip"
MD5SUM="f14cd1af9087696ff1c8a48c3677f4dc \
d1b234623770ec6209b14d1b5137f2f1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Petar Petrov"
EMAIL="ppetrov@paju.oulu.fi"
APPROVED="Niels Horn"

33
academic/QtiPlot/README Normal file
View File

@ -0,0 +1,33 @@
QtiPlot is a program for two- and three-dimensional graphical
presentation of data sets and for data analysis. Plots can be produced
from data sets stored in tables or from analytical functions. QtiPlot
offers a complete alternative solution to software like Origin,
SigmaPlot, SPSS, Regressi or Igor Pro. QtiPlot is used for teaching as
well as for complex data analysis and visualisation in companies, high
schools, universities and reseach institutes all over the world.
Features:
- Fully Python scriptable
- OpenGL based 3D plotting
- Publication quality plots and easy export to various image formats
(EMF, EPS, PS, PDF, SVG, BMP, JPG, PNG, TIFF, etc ...)
- Easy integration with LaTeX typesetting system
- Powerful and versatile spreadsheets with column-logic calculations
and easy import/export of multiple files
- One-click access to extensive built-in data analysis routines
- Advanced statistical analysis: Student's t-Test, ANOVA, chi-square
test for variance, normality test (Shapiro-Wilk)
- Linear and nonlinear curve fitting with weighting and estimation of
statistical errors of the fit-parameters
- Multi-peak fitting
- Image analysis tools
- Templates support: all settings for plots, tables and matrices can
be saved and restored later on for a fast editing process
- 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.

View File

@ -0,0 +1,73 @@
isEmpty( QTI_ROOT ) {
message( "each file including this config needs to set QTI_ROOT to the dir containing this file!" )
}
# System specific configuration
SYS_INCLUDEPATH = /usr/include
SYS_LIBS = -L/usr/lib${LIBDIRSUFFIX}
# zlib (http://www.zlib.net/)
ZLIB_INCLUDEPATH =
# muParser (http://muparser.sourceforge.net/)
MUPARSER_INCLUDEPATH =
MUPARSER_LIBS = -lmuparser
# GNU Sientific Library (http://www.gnu.org/software/gsl/)
GSL_INCLUDEPATH =
GSL_LIBS = -lgsl -lgslcblas
# QWT - use local copy till upstream catches up
# (http://qwt.sourceforge.net/index.html)
QWT_INCLUDEPATH = $$QTI_ROOT/3rdparty/qwt/src
QWT_LIBS = $$QTI_ROOT/3rdparty/qwt/lib/libqwt.a
# QwtPlot3D - use local copy till upstream catches up
# (http://qwtplot3d.sourceforge.net/)
QWT3D_INCLUDEPATH = $$QTI_ROOT/3rdparty/qwtplot3d/include
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
# TAMUANOVA (http://www.stat.tamu.edu/~aredd/tamuanova/)
TAMUANOVA_INCLUDEPATH = /usr/include/tamu_anova
TAMUANOVA_LIBS = -ltamuanova
# the python interpreter to use
PYTHON = python
# Qt tools - allows to use specific versions
LUPDATE = lupdate
LRELEASE = lrelease
# Target specific configuration: configure Qtiplot itself
contains( TARGET, qtiplot ) {
# building without muParser doesn't work yet
SCRIPTING_LANGS += muParser
SCRIPTING_LANGS += Python
# a console displaying output of scripts
DEFINES += SCRIPTING_CONSOLE
# Uncomment the following line if you want to perform a custom
# installation using the *.path variables defined in ./qtiplot.pro.
CONFIG += CustomInstall
# Uncomment the following line if you want to build QtiPlot as a browser plugin (not working on Internet Explorer).
#CONFIG += BrowserPlugin
#CONFIG += release
#CONFIG += debug
# Uncomment the following line if you want to link statically against Qt.
#CONFIG += StaticBuild
}

View File

@ -0,0 +1,7 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=qtiplot
Terminal=false
Name=QtiPlot
Protocols=file
Icon=qtiplot.png
Categories=Office;

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-qtiplot-project">
<sub-class-of type="text/plain"/>
<comment>QtiPlot project file</comment>
<glob pattern="*.qti" />
</mime-type>
<mime-type type="application/x-qtiplot-project-compressed">
<comment>Compressed QtiPlot project file</comment>
<glob pattern="*.qti.gz" />
</mime-type>
<mime-type type="application/x-qtiplot-project-backup">
<sub-class-of type="text/plain"/>
<comment>QtiPlot project file backup</comment>
<glob pattern="*.qti~" />
</mime-type>
</mime-info>

View File

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
QtiPlot: QtiPlot (Data Analysis and Visualisation)
QtiPlot:
QtiPlot: QtiPlot is a program for two- and three-dimensional graphical
QtiPlot: presentation of data sets and for data analysis. Plots can be
QtiPlot: produced from data sets stored in tables or from analytical
QtiPlot: functions.
QtiPlot:
QtiPlot:
QtiPlot:
QtiPlot:
QtiPlot: Home: http://soft.proindependent.com/qtiplot.html