diff options
Diffstat (limited to 'academic/mathics')
-rw-r--r-- | academic/mathics/README | 25 | ||||
-rw-r--r-- | academic/mathics/mathics.SlackBuild | 28 | ||||
-rw-r--r-- | academic/mathics/mathics.info | 8 | ||||
-rw-r--r-- | academic/mathics/slack-desc | 14 |
4 files changed, 50 insertions, 25 deletions
diff --git a/academic/mathics/README b/academic/mathics/README index 89bae8e2a1..59741fe499 100644 --- a/academic/mathics/README +++ b/academic/mathics/README @@ -1,9 +1,22 @@ -Mathics is a free, light-weight alternative to Mathematica. Mathics is -a general-purpose online computer algebra system featuring Mathematica- -compatible syntax and functions. It is backed by highly extensible -Python code, relying on SymPy for most mathematical tasks. +Mathics is a general-purpose computer algebra system (CAS). It is an +open-source alternative to Mathematica. It is free both as in "free +beer" and as in "freedom". +The home page of Mathics is https://mathics.org. -Optional Dependency +Installing and Running +See read the docs guide +https://mathics-development-guide.readthedocs.io/en/latest/ +for instructions on installing +https://mathics-development-guide.readthedocs.io/en/latest/ +and running +https://mathics-development-guide.readthedocs.io/en/latest/running.html -You can install Cython for some extra functionality/optimizations. +Contributing +Please feel encouraged to contribute to Mathics! Create your own fork, +make the desired changes, commit, and make a pull request. + +License + +Mathics is released under the GNU General Public License Version 3 +(GPL3). diff --git a/academic/mathics/mathics.SlackBuild b/academic/mathics/mathics.SlackBuild index fe30f109d5..72870973ea 100644 --- a/academic/mathics/mathics.SlackBuild +++ b/academic/mathics/mathics.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Mathics @@ -22,10 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=mathics -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-4.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRCNAM=Mathics3 if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +40,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -59,9 +71,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf Mathics-$VERSION -tar xvf $CWD/Mathics-$VERSION.tar.gz -cd Mathics-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -69,7 +81,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG +python3 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 @@ -84,4 +96,4 @@ 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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/academic/mathics/mathics.info b/academic/mathics/mathics.info index f61f3000c2..4f4c0e7aa2 100644 --- a/academic/mathics/mathics.info +++ b/academic/mathics/mathics.info @@ -1,10 +1,10 @@ PRGNAM="mathics" -VERSION="1.0" +VERSION="4.0.0" HOMEPAGE="http://www.mathics.org/" -DOWNLOAD="https://github.com/mathics/Mathics/archive/v1.0/Mathics-1.0.tar.gz" -MD5SUM="a0a161a1787093b90b21e73b0d44c0fc" +DOWNLOAD="https://files.pythonhosted.org/packages/35/68/72d4ec12fe91c3cf569fe95ba20ae324414e59f624ad3fb3eaf767cf2620/Mathics3-4.0.0.tar.gz" +MD5SUM="f221aaf0ef9a27e2953429a32fe94652" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="colorama mpmath ply python-dateutil python-django-legacy six sympy" +REQUIRES="python2-numpy python2-sympy" MAINTAINER="David Melik" EMAIL="dchmelik@gmail.com" diff --git a/academic/mathics/slack-desc b/academic/mathics/slack-desc index 1578bda0e9..a351c60962 100644 --- a/academic/mathics/slack-desc +++ b/academic/mathics/slack-desc @@ -8,12 +8,12 @@ |-----handy-ruler------------------------------------------------------| mathics: mathics (A free, light-weight alternative to Mathematica) mathics: -mathics: Mathics is a free, general-purpose online computer algebra system -mathics: featuring Mathematica-compatible syntax and functions. It is backed -mathics: by highly extensible Python code, relying on SymPy for most -mathics: mathematical tasks. -mathics: -mathics: http://www.mathics.org/ -mathics: +mathics: Mathics is a general-purpose computer algebra system (CAS). It is an +mathics: open-source alternative to Mathematica. It is free both as in "free +mathics: beer" and as in "freedom". mathics: +mathics: The home page of Mathics is https://mathics.org. mathics: +mathics: Installing and Running +mathics: See https://mathics-development-guide.readthedocs.io/en/latest/ for +mathics: instructions on installing and running. |