Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=9a566cb32ea2e6b730740c42797faea3039e1c4d

commit 9a566cb32ea2e6b730740c42797faea3039e1c4d
Author: Elentir <elen...@mailoo.org>
Date:   Mon Jul 27 01:06:44 2009 +0200

gap-4r4p12-1-i686

* new package

diff --git a/source/apps-extra/gap/FrugalBuild 
b/source/apps-extra/gap/FrugalBuild
new file mode 100644
index 0000000..19fb3a0
--- /dev/null
+++ b/source/apps-extra/gap/FrugalBuild
@@ -0,0 +1,40 @@
+# Compiling Time: 0.41 SBU
+# Maintainer: Elentir <elen...@mailoo.org>
+
+pkgname=gap
+pkgver=4r4p12
+pkgrel=1
+pkgdesc="Gap is a system for Computational Discrete Algebra"
+archs=('i686' 'x86_64')
+url="http://www.gap-system.org";
+depends=('glibc')
+groups=('apps-extra')
+_F_archive_name="${pkgname}$pkgver"
+_F_cd_path="${pkgname}4r4"
+## a bit ugly but I don't see a better one
+up2date="lynx -dump ftp://ftp.gap-system.org/pub/gap/gap4/tar.gz/ | grep 
'${pkgname}[1-9]*r[1-9]*p[1-9]*\.tar.gz' | cut -d '/' -f8 | sort -V | sed -e 
's/${pkgname}//' -e 's/.tar.gz//' | tail -1"
+source=("ftp://ftp.gap-system.org/pub/gap/gap4/tar.gz/$_F_archive_name.tar.gz"; 
${pkgname}.sh)
+sha1sums=('64cb9ff9c1cffe03cebaef480d7f60af9a2abc76' \
+          'e56df69cd1356bbb16e485be8d180a5f434c4c2d')
+
+build() {
+  Fmake
+  Finstall 755 ${pkgname}.sh /usr/bin/${pkgname}
+  ## there is no make install, need to do it manually :s
+  Fmkdir usr/share/gap/{bin,pkg}
+  Finstall 755 $_F_cd_path/bin/$CARCH-frugalware-linux-gnu-gcc/gap 
/usr/share/gap/bin/gap
+  Finstall 655 $_F_cd_path/sysinfo.gap /usr/share/gap/sysinfo.gap
+  Fcp $_F_cd_path/grp /usr/share/gap/grp
+  Fcp $_F_cd_path/lib /usr/share/gap/lib
+  Fcp $_F_cd_path/prim /usr/share/gap/prim
+  Fcp $_F_cd_path/small /usr/share/gap/small
+  Fcp $_F_cd_path/trans /usr/share/gap/trans
+  Fcp $_F_cd_path/tst /usr/share/gap/tst
+  Fcp $_F_cd_path/pkg/tomlib /usr/share/gap/pkg/tomlib
+
+  ## documentation
+  Fdoc $_F_cd_path/doc
+}
+
+# optimization OK
+
diff --git a/source/apps-extra/gap/gap.sh b/source/apps-extra/gap/gap.sh
new file mode 100644
index 0000000..6b88dee
--- /dev/null
+++ b/source/apps-extra/gap/gap.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+#############################################################################
+##
+##  gap.sh                      GAP                          Martin Schoenert
+##
+##  This is a shell script for the  UNIX  operating system  that starts  GAP.
+##  This is the place  where  you  make  all  the  necessary  customizations.
+##  Then copy this file to a  directory in your  search path,  e.g., '~/bin'.
+##  If you later move GAP to another location you must only change this file.
+##
+
+
+#############################################################################
+##
+##  GAP_DIR . . . . . . . . . . . . . . . . . . . . directory where GAP lives
+##
+##  Set 'GAP_DIR' to the name of the directory where you have installed  GAP,
+##  i.e., the directory with the subdirectories  'lib',  'grp',  'doc',  etc.
+##  The default is '/storage/archlinux/builds/gap-system/src/gap4r4', which is 
where you installed GAP.
+##  You won't have to change this unless you move the installation.
+##
+if [ "x$GAP_DIR" = "x" ];  then
+GAP_DIR="/usr/share/gap"
+fi
+
+
+#############################################################################
+##
+##  GAP_MEM . . . . . . . . . . . . . . . . . . . amount of initial workspace
+##
+##  Set 'GAP_MEM' to the amount of memory GAP shall use as initial workspace.
+##  The default is 32 MByte, which is the minimal reasonable amount of memory.
+##  You have to change it if you want  GAP to use a larger initial workspace.
+##  If you are not going to run  GAP  in parallel with other programs you may
+##  want to set this value close to the  amount of memory your  computer has.
+##
+if [ "x$GAP_MEM" = "x" ];  then
+GAP_MEM=32m
+fi
+
+
+#############################################################################
+##
+##  GAP_PRG . . . . . . . . . . . . . . . . .  name of the executable program
+##
+##  Set 'GAP_PRG' to the  name of the executable  program of the  GAP kernel.
+##  The  default is  '`hostname'/gap'.    You  can   either change this    to
+##  '<target>/gap' where <target> is the  target you have selected during the
+##  compilation or create  a symbolic link  from <target> to  '`hostname`' in
+##  the 'bin' directory.
+##
+if [ "x$GAP_PRG" = "x" ];  then
+GAP_PRG=gap
+fi
+
+
+#############################################################################
+##
+##  GAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . run GAP
+##
+##  You  probably should  not change  this line,  which  finally starts  GAP.
+##
+exec "$GAP_DIR/bin/"$GAP_PRG -m $GAP_MEM -l "$GAP_DIR" $*
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to