diff options
author | William Bowman <wilbowma@indiana.edu> | 2011-08-05 11:11:34 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-08-05 11:11:34 -0300 |
commit | bef4f3c03fd2f42dbc028393bc09a88100be5ba1 (patch) | |
tree | 5e77ff66789bb088f476e78341c57ee21842d2eb | |
parent | 76f24b37e8348f8e1cd835b72fb5a8372786d229 (diff) |
academic/coq: Added (The Coq Proof Assistant)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r-- | academic/coq/README | 19 | ||||
-rw-r--r-- | academic/coq/coq.SlackBuild | 104 | ||||
-rw-r--r-- | academic/coq/coq.info | 10 | ||||
-rw-r--r-- | academic/coq/gpl.txt.gz | bin | 0 -> 12138 bytes | |||
-rw-r--r-- | academic/coq/slack-desc | 19 |
5 files changed, 152 insertions, 0 deletions
diff --git a/academic/coq/README b/academic/coq/README new file mode 100644 index 000000000000..eec7b1118a2b --- /dev/null +++ b/academic/coq/README @@ -0,0 +1,19 @@ +Coq implements a program specification and mathematical higher-level +language called Gallina that is based on an expressive formal language +called the Calculus of Inductive Constructions that itself combines both +a higher-order logic and a richly-typed functional programming language. + +This requires OCaml (>= 3.10.2), camlp5 (with "transitional mode", avoiding +version 5.0.0), and GNU Make (>= 3.81). If you have ocamlopt, Coq +will be compiled to native code, which runs 4-10 times faster. For best +performance, OCaml should have support for pthreads. + +Note: camlp5 6.01 appears to have a bug that prevents Coq from building +correctly. This build has been tested with 6.02.3. + +If you want CoqIDE, you need LablGTK2 (>= 2.10.0) with development +files, and GTK2+ (>= 2.10.0). This also REQUIRES OCaml to have support +for pthreads. + +If you have emacs installed, emacs files for Coq will be installed. +Otherwise, they will be omitted. diff --git a/academic/coq/coq.SlackBuild b/academic/coq/coq.SlackBuild new file mode 100644 index 000000000000..fe4011d7d8b3 --- /dev/null +++ b/academic/coq/coq.SlackBuild @@ -0,0 +1,104 @@ +#!/bin/sh +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +# Slackware build script for coq + +# Written by William Bowman (wilbowma@indiana.edu) + +PRGNAM=coq +VERSION=${VERSION:-8.3pl2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +# This is built using the ocaml compiler, not GCC, so SLKCFLAGS are +# not used. +if [ "$ARCH" = "i486" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +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 {} \; + + +if hash ocamlopt || hash ocamlopt.opt ; then + OPT="-opt" +else + OPT="" +fi + +./configure \ + -prefix /usr \ + -libdir /usr/lib${LIBDIRSUFFIX}/coq \ + -arch $ARCH \ + $OPT + +make world +umask 022 +COQINSTALLPREFIX=$PKG make install + +find $PKG | xargs 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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGES COMPATIBILITY COPYRIGHT CREDITS INSTALL* LICENSE README* \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +zcat $CWD/gpl.txt.gz > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild-license + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Delete this if they don't have emacs. I don't like needless things +if [ `which emacs | grep "no emacs"` ]; then + rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/emacs +fi + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/academic/coq/coq.info b/academic/coq/coq.info new file mode 100644 index 000000000000..f23d0bd09c16 --- /dev/null +++ b/academic/coq/coq.info @@ -0,0 +1,10 @@ +PRGNAM="coq" +VERSION="8.3pl2" +HOMEPAGE="http://coq.inria.fr/" +DOWNLOAD="http://coq.inria.fr/distrib/V8.3pl2/files/coq-8.3pl2.tar.gz" +MD5SUM="db415f6c5372f5a443699c62f5affcb4" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="William Bowman" +EMAIL="wilbowma@indiana.edu" +APPROVED="Niels Horn" diff --git a/academic/coq/gpl.txt.gz b/academic/coq/gpl.txt.gz Binary files differnew file mode 100644 index 000000000000..0ef740a4c7d2 --- /dev/null +++ b/academic/coq/gpl.txt.gz diff --git a/academic/coq/slack-desc b/academic/coq/slack-desc new file mode 100644 index 000000000000..935d8a8071d2 --- /dev/null +++ b/academic/coq/slack-desc @@ -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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +coq: coq (The Coq Proof Assistant) +coq: +coq: coq is a formal proof management system. It provides a formal language +coq: to write mathematical definitions, executable algorithms and theorems +coq: together with an environment for semi-interactive development of +coq: machine-checked proofs. +coq: +coq: +coq: Homepage: http://coq.inria.fr/ +coq: +coq: |