Path: blob/master/build/pkgs/gap/patches/gap_shi.patch
8818 views
Add Sage-specific options to the gap.sh source file12diff -ur old/gap.shi src/gap.shi3--- old/gap.shi 2012-02-20 20:04:01.000000000 +00004+++ src/gap.shi 2012-09-02 10:44:27.488429081 +01005@@ -8,7 +8,10 @@6## Then copy this file to a directory in your search path, e.g., '~/bin'.7## If you later move GAP to another location you must only change this file.8##9-10+if [ $SAGE_LOCAL"" = "" ]; then11+ echo "Set the environment variable SAGE_LOCAL."12+ exit 113+fi1415#############################################################################16##17@@ -20,7 +23,7 @@18## You won't have to change this unless you move the installation.19##20if [ "x$GAP_DIR" = "x" ]; then21-GAP_DIR="@gapdir@"22+ GAP_DIR="$SAGE_LOCAL/gap/latest"23fi242526@@ -35,9 +38,9 @@27## in parallel with other programs you may want to set this value close28## to the amount of memory your computer has.29##30-#if [ "x$GAP_MEM" = "x" ]; then31-#GAP_MEM="-m 256m"32-#fi33+if [ "x$GAP_MEM" = "x" ]; then34+ GAP_MEM="-m 24m"35+fi363738#############################################################################394041