academic/sympy: Added to 12.2 repository

This commit is contained in:
grissiom 2010-05-12 23:27:42 +02:00 committed by David Somero
parent 53a10a02a5
commit 354aea4aa1
4 changed files with 85 additions and 0 deletions

6
academic/sympy/README Normal file
View File

@ -0,0 +1,6 @@
SymPy is a Python library for symbolic mathematics. It aims to become a
full-featured computer algebra system (CAS) while keeping the code as simple as
possible in order to be comprehensible and easily extensible. SymPy is written
entirely in Python and does not require any external libraries.
If you install iPython on your machine, sympy could take advantage of it.

19
academic/sympy/slack-desc Normal file
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------------------------------------------------------|
sympy: SymPy (Python library for symbolic mathematics)
sympy:
sympy: SymPy aims to become a full-featured computer algebra system (CAS)
sympy: while keeping the code as simple as possible in order to be
sympy: comprehensible and easily extensible. SymPy is written entirely in
sympy: Python and does not require any external libraries.
sympy:
sympy:
sympy: Homepage: http://code.google.com/p/sympy/
sympy:
sympy:

View File

@ -0,0 +1,52 @@
#!/bin/sh
# Slackware build script for sympy
# Written by Grissiom <chaos.proton@gmail.com>
PRGNAM=sympy
VERSION=${VERSION:-0.6.4}
ARCH=${ARCH:-noarch}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$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 {} \;
python setup.py install --root=$PKG
mv $PKG/usr/share/man $PKG/usr/man
rmdir $PKG/usr/share
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS LICENSE README TODO \
$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
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

View File

@ -0,0 +1,8 @@
PRGNAM="sympy"
VERSION="0.6.4"
HOMEPAGE="http://code.google.com/p/sympy/"
DOWNLOAD="http://sympy.googlecode.com/files/sympy-0.6.4.tar.gz"
MD5SUM="5b1c4f76d5b7e1477c852a0ec2201092"
MAINTAINER="grissiom"
EMAIL="chaos.proton@gmail.com"
APPROVED="dsomero"