Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge branch 'develop' into ticket/15692
Browse files Browse the repository at this point in the history
Conflicts:
	src/sage/misc/cachefunc.pyx
  • Loading branch information
saraedum committed Jul 23, 2014
2 parents 0717849 + 169b80c commit 9eab84b
Show file tree
Hide file tree
Showing 970 changed files with 86,094 additions and 19,729 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
.idea
.iml

# XCode
xcuserdata/

# Eclipse
*.pydevproject
.project
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sage version 6.2, released 2014-05-06
Sage version 6.3.beta6, released 2014-07-19
20 changes: 10 additions & 10 deletions build/deps
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ $(INST)/prereq: ../configure
echo "If you would like to try to build Sage anyway (to help porting),"; \
echo "export the variable 'SAGE_PORT' to something non-empty."; \
exit 1; \
else \
else \
echo "Since 'SAGE_PORT' is set, we will try to build anyway."; \
fi; )
fi; )
touch $@

$(INST)/$(BZIP2): $(INST)/prereq
$(INST)/$(BZIP2): $(INST)/prereq $(INST)/$(PKGCONF)
+$(PIPE) "$(SAGE_SPKG) $(BZIP2) 2>&1" "tee -a $(SAGE_LOGS)/$(BZIP2).log"

$(INST)/$(PATCH): $(INST)/$(BZIP2)
Expand All @@ -176,7 +176,7 @@ $(INST)/$(PATCH): $(INST)/$(BZIP2)
$(INST)/$(ATLAS): $(INST)/$(PYTHON)
+$(PIPE) "$(SAGE_SPKG) $(ATLAS) 2>&1" "tee -a $(SAGE_LOGS)/$(ATLAS).log"

$(INST)/$(BOEHM_GC):
$(INST)/$(BOEHM_GC): $(INST)/$(PKGCONF)
+$(PIPE) "$(SAGE_SPKG) $(BOEHM_GC) 2>&1" "tee -a $(SAGE_LOGS)/$(BOEHM_GC).log"

$(INST)/$(BOOST_CROPPED):
Expand All @@ -185,7 +185,7 @@ $(INST)/$(BOOST_CROPPED):
$(INST)/$(CLIQUER):
+$(PIPE) "$(SAGE_SPKG) $(CLIQUER) 2>&1" "tee -a $(SAGE_LOGS)/$(CLIQUER).log"

$(INST)/$(NCURSES):
$(INST)/$(NCURSES): $(INST)/$(PKGCONF)
+$(PIPE) "$(SAGE_SPKG) $(NCURSES) 2>&1" "tee -a $(SAGE_LOGS)/$(NCURSES).log"

$(INST)/$(READLINE): $(INST)/$(NCURSES)
Expand All @@ -211,7 +211,7 @@ $(INST)/$(GRAPHS):
$(INST)/$(GLPK): $(INST)/$(MPIR) $(INST)/$(ZLIB)
+$(PIPE) "$(SAGE_SPKG) $(GLPK) 2>&1" "tee -a $(SAGE_LOGS)/$(GLPK).log"

$(INST)/$(PYTHON): $(INST)/$(ZLIB) $(INST)/$(BZIP2) \
$(INST)/$(PYTHON): $(INST)/$(ZLIB) $(INST)/$(BZIP2) $(INST)/$(PKGCONF) \
$(INST)/$(READLINE) $(INST)/$(SQLITE) $(INST)/$(LIBPNG)
+$(PIPE) "$(SAGE_SPKG) $(PYTHON) 2>&1" "tee -a $(SAGE_LOGS)/$(PYTHON).log"

Expand Down Expand Up @@ -336,7 +336,7 @@ $(INST)/$(SAGETEX): $(INST)/$(PYTHON) \
$(INST)/$(SETUPTOOLS): $(INST)/$(PYTHON)
+$(PIPE) "$(SAGE_SPKG) $(SETUPTOOLS) 2>&1" "tee -a $(SAGE_LOGS)/$(SETUPTOOLS).log"

$(INST)/$(SINGULAR): $(INST)/$(MPIR) $(INST)/$(NTL) \
$(INST)/$(SINGULAR): $(INST)/$(MPIR) $(INST)/$(NTL) $(INST)/$(FLINT) \
$(INST)/$(READLINE) $(INST)/$(MPFR)
+$(PIPE) "$(SAGE_SPKG) $(SINGULAR) 2>&1" "tee -a $(SAGE_LOGS)/$(SINGULAR).log"

Expand Down Expand Up @@ -401,7 +401,7 @@ $(INST)/$(ECL): $(INST)/$(MPIR) $(INST)/$(READLINE) $(INST)/$(BOEHM_GC)
$(INST)/$(MAXIMA): $(INST)/$(ECL)
+$(PIPE) "$(SAGE_SPKG) $(MAXIMA) 2>&1" "tee -a $(SAGE_LOGS)/$(MAXIMA).log"

$(INST)/$(R): $(INST)/$(ATLAS) $(INST)/$(ICONV) $(INST)/$(READLINE)
$(INST)/$(R): $(INST)/$(ATLAS) $(INST)/$(ICONV) $(INST)/$(READLINE) $(INST)/$(PKGCONF)
+$(PIPE) "$(SAGE_SPKG) $(R) 2>&1" "tee -a $(SAGE_LOGS)/$(R).log"

$(INST)/$(RPY): $(INST)/$(PYTHON) $(INST)/$(R)
Expand All @@ -422,7 +422,7 @@ $(INST)/$(FLINT): $(INST)/$(MPIR) $(INST)/$(MPFR) $(INST)/$(NTL)
$(INST)/$(ECLIB): $(INST)/$(PARI) $(INST)/$(NTL) $(INST)/$(FLINT)
+$(PIPE) "$(SAGE_SPKG) $(ECLIB) 2>&1" "tee -a $(SAGE_LOGS)/$(ECLIB).log"

$(INST)/$(M4RI): $(INST)/$(LIBPNG)
$(INST)/$(M4RI): $(INST)/$(LIBPNG) $(INST)/$(PKGCONF)
+$(PIPE) "$(SAGE_SPKG) $(M4RI) 2>&1" "tee -a $(SAGE_LOGS)/$(M4RI).log"

$(INST)/$(M4RIE): $(INST)/$(M4RI) $(INST)/$(GIVARO) $(INST)/$(NTL)
Expand Down Expand Up @@ -527,7 +527,7 @@ $(INST)/$(PKGCONF):
$(INST)/$(PKGCONFIG): $(INST)/$(PYTHON) $(INST)/$(SETUPTOOLS)
+$(PIPE) "$(SAGE_SPKG) $(PKGCONFIG) 2>&1" "tee -a $(SAGE_LOGS)/$(PKGCONFIG).log"

$(INST)/$(NUMPY): $(INST)/$(PYTHON) $(INST)/$(ATLAS)
$(INST)/$(NUMPY): $(INST)/$(PYTHON) $(INST)/$(ATLAS) $(INST)/$(PKGCONF)
+$(PIPE) "$(SAGE_SPKG) $(NUMPY) 2>&1" "tee -a $(SAGE_LOGS)/$(NUMPY).log"

$(INST)/$(SCIPY): $(INST)/$(ATLAS) $(INST)/$(NUMPY)
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/atlas/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def configure(arch=None, isa_ext=None):

# use hard floats on ARM
if conf['ARM?']:
cmd += '-D c -DATL_ARM_HARDFP=1'
cmd += ' -D c -DATL_ARM_HARDFP=1'

# set machine architecture
if arch is not None:
Expand Down
7 changes: 7 additions & 0 deletions build/pkgs/cddlib/patches/lib-src-gmp_Makefile.am.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ index b3ab11a..a9673b8 100644

include_HEADERS = \
cdd.h \
@@ -24,5 +25,5 @@
cddtypes_f.h \
setoper.h

-AM_CPPFLAGS = -I$(gmpincludedir) -DGMPRATIONAL
+AM_CPPFLAGS = -DGMPRATIONAL
AM_LDFLAGS = -version-info 0:0:0
15 changes: 12 additions & 3 deletions build/pkgs/cddlib/patches/lib-src-gmp_Makefile.in.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ diff --git a/src.bak/lib-src-gmp/Makefile.in b/src/lib-src-gmp/Makefile.in
index 4ab9342..93ff335 100644
--- a/src.bak/lib-src-gmp/Makefile.in
+++ b/src/lib-src-gmp/Makefile.in
@@ -54,7 +54,7 @@ LTLIBRARIES = $(lib_LTLIBRARIES)
@@ -54,7 +54,7 @@
libcddgmp_la_LIBADD =
am_libcddgmp_la_OBJECTS = cddcore.lo cddlp.lo cddmp.lo cddio.lo \
cddlib.lo cddproj.lo cddcore_f.lo cddlp_f.lo cddmp_f.lo \
Expand All @@ -11,7 +11,7 @@ index 4ab9342..93ff335 100644
libcddgmp_la_OBJECTS = $(am_libcddgmp_la_OBJECTS)
DEFAULT_INCLUDES = -I.@am__isrc@
depcomp = $(SHELL) $(top_srcdir)/depcomp
@@ -199,7 +199,8 @@ cddmp_f.c \
@@ -199,7 +199,8 @@
cddio_f.c \
cddlib_f.c \
cddproj_f.c \
Expand All @@ -21,7 +21,16 @@ index 4ab9342..93ff335 100644

include_HEADERS = \
cdd.h \
@@ -293,6 +294,7 @@ distclean-compile:
@@ -210,7 +211,7 @@
cddtypes_f.h \
setoper.h

-AM_CPPFLAGS = -I$(gmpincludedir) -DGMPRATIONAL
+AM_CPPFLAGS = -DGMPRATIONAL
AM_LDFLAGS = -version-info 0:0:0
all: all-am

@@ -293,6 +294,7 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cddmp_f.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cddproj.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cddproj_f.Plo@am__quote@
Expand Down
8 changes: 6 additions & 2 deletions build/pkgs/cddlib/patches/src-gmp_Makefile.am.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ diff --git a/src.bak/src-gmp/Makefile.am b/src/src-gmp/Makefile.am
index e4dbb86..e579d71 100644
--- a/src.bak/src-gmp/Makefile.am
+++ b/src/src-gmp/Makefile.am
@@ -11,7 +11,8 @@ testcdd1_gmp \
@@ -11,7 +11,8 @@
testcdd2_gmp \
testlp1_gmp \
testlp2_gmp \
Expand All @@ -12,11 +12,15 @@ index e4dbb86..e579d71 100644
#cddmathlink

scdd_gmp_SOURCES = simplecdd.c
@@ -27,6 +28,7 @@ testcdd2_gmp_SOURCES = testcdd2.c
@@ -27,10 +28,9 @@
testlp1_gmp_SOURCES = testlp1.c
testlp2_gmp_SOURCES = testlp2.c
testlp3_gmp_SOURCES = testlp3.c
+cdd_both_reps_gmp_SOURCES = cdd_both_reps.c
# cddmathlink_SOURCES = cddmathlink.c cddmlio.h cddmlio.c

LDADD = ../lib-src-gmp/libcddgmp.la
-AM_LDFLAGS = -L$(gmplibdir)
INCLUDES = -I../lib-src-gmp
-INCLUDES += -I$(gmpincludedir)
AM_CPPFLAGS = -DGMPRATIONAL
19 changes: 12 additions & 7 deletions build/pkgs/cddlib/patches/src-gmp_Makefile.in.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ diff --git a/src.bak/src-gmp/Makefile.in b/src/src-gmp/Makefile.in
index f88c83f..3470dc9 100644
--- a/src.bak/src-gmp/Makefile.in
+++ b/src/src-gmp/Makefile.in
@@ -37,7 +37,8 @@ bin_PROGRAMS = scdd_gmp$(EXEEXT) lcdd_gmp$(EXEEXT) \
@@ -37,7 +37,8 @@
projection_gmp$(EXEEXT) adjacency_gmp$(EXEEXT) \
allfaces_gmp$(EXEEXT) testshoot_gmp$(EXEEXT) \
testcdd1_gmp$(EXEEXT) testcdd2_gmp$(EXEEXT) \
Expand All @@ -12,7 +12,7 @@ index f88c83f..3470dc9 100644
subdir = src-gmp
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -57,6 +58,10 @@ am_allfaces_gmp_OBJECTS = allfaces.$(OBJEXT)
@@ -57,6 +58,10 @@
allfaces_gmp_OBJECTS = $(am_allfaces_gmp_OBJECTS)
allfaces_gmp_LDADD = $(LDADD)
allfaces_gmp_DEPENDENCIES = ../lib-src-gmp/libcddgmp.la
Expand All @@ -23,7 +23,7 @@ index f88c83f..3470dc9 100644
am_fourier_gmp_OBJECTS = fourier.$(OBJEXT)
fourier_gmp_OBJECTS = $(am_fourier_gmp_OBJECTS)
fourier_gmp_LDADD = $(LDADD)
@@ -114,19 +119,19 @@ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
@@ -114,19 +119,19 @@
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
$(LDFLAGS) -o $@
SOURCES = $(adjacency_gmp_SOURCES) $(allfaces_gmp_SOURCES) \
Expand Down Expand Up @@ -55,15 +55,20 @@ index f88c83f..3470dc9 100644
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -254,6 +259,7 @@ testcdd2_gmp_SOURCES = testcdd2.c
@@ -254,10 +259,10 @@
testlp1_gmp_SOURCES = testlp1.c
testlp2_gmp_SOURCES = testlp2.c
testlp3_gmp_SOURCES = testlp3.c
+cdd_both_reps_gmp_SOURCES = cdd_both_reps.c
# cddmathlink_SOURCES = cddmathlink.c cddmlio.h cddmlio.c
LDADD = ../lib-src-gmp/libcddgmp.la
AM_LDFLAGS = -L$(gmplibdir)
@@ -326,6 +332,9 @@ adjacency_gmp$(EXEEXT): $(adjacency_gmp_OBJECTS) $(adjacency_gmp_DEPENDENCIES)
-AM_LDFLAGS = -L$(gmplibdir)
-INCLUDES = -I../lib-src-gmp -I$(gmpincludedir)
+INCLUDES = -I../lib-src-gmp
AM_CPPFLAGS = -DGMPRATIONAL
all: all-am

@@ -326,6 +331,9 @@
allfaces_gmp$(EXEEXT): $(allfaces_gmp_OBJECTS) $(allfaces_gmp_DEPENDENCIES)
@rm -f allfaces_gmp$(EXEEXT)
$(LINK) $(allfaces_gmp_OBJECTS) $(allfaces_gmp_LDADD) $(LIBS)
Expand All @@ -73,7 +78,7 @@ index f88c83f..3470dc9 100644
fourier_gmp$(EXEEXT): $(fourier_gmp_OBJECTS) $(fourier_gmp_DEPENDENCIES)
@rm -f fourier_gmp$(EXEEXT)
$(LINK) $(fourier_gmp_OBJECTS) $(fourier_gmp_LDADD) $(LIBS)
@@ -368,6 +377,7 @@ distclean-compile:
@@ -368,6 +376,7 @@

@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adjacency.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/allfaces.Po@am__quote@
Expand Down
6 changes: 3 additions & 3 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=configure-VERSION.tar.gz
sha1=61c073042a1329f34af67ae4b420c791f12aa199
md5=41bc80778003eb287b724138bdc75fe8
cksum=2346983684
sha1=3265062e02ba06ebe5897596eea08fb04cb3c554
md5=f3a75a886044f86dab6565b399141bde
cksum=666076577
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26
36
33 changes: 33 additions & 0 deletions build/pkgs/d3js/SPKG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
= d3js =

== Description ==

D3.js is a JavaScript library for manipulating documents based on data.
The file d3.min.js will be placed into the ${SAGE_SHARE}/d3js/ directory.

== License ==

BSD 3-Clause License

== SPKG Maintainers ==

* Thierry Monteil

== Upstream Contact ==

Author: Mike Bostock (http://bost.ocks.org/mike/)
Home page: http://d3js.org/

== Dependencies ==

None.

== Special Update/Build Instructions ==

Two kind of archives can be downloaded from d3.js website: one with all source
code and tests that weights 2,9M (both in zip and tar.gz formats) and one with
the final javascript scripts which weights 121K (zip format only). Since
testing requires node.js that is not shipped with Sage, we currenlty ship the
final js only. Hence we have to transform it from zip to tar.gz format.
Running sage-src should do all the repackaging job.

4 changes: 4 additions & 0 deletions build/pkgs/d3js/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tarball=d3js-VERSION.tar.gz
sha1=2fd4da34ca9e645cf81bf914d289c21c7bb8c166
md5=d859a120f1eaebb8b563f4598868c564
cksum=527881311
1 change: 1 addition & 0 deletions build/pkgs/d3js/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.4.8
15 changes: 15 additions & 0 deletions build/pkgs/d3js/spkg-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

if [ -z "$SAGE_SHARE" ]; then
echo >&2 "SAGE_SHARE undefined ... exiting"
echo >&2 "Maybe run 'sage --sh'?"
exit 1
fi

TARGET="${SAGE_SHARE}/d3js"
if [ ! -d "${TARGET}" ]; then
mkdir "${TARGET}"
fi

cp 'src/d3.min.js' "${TARGET}/"

41 changes: 41 additions & 0 deletions build/pkgs/d3js/spkg-src
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env bash

set -e

[ -n "${SAGE_ROOT}" ] || SAGE_ROOT="$(pwd)/../../../"


# prepare a clean directory.
[ -d "work" ] && rm -rf "work"
mkdir "work"
cd "work"


# determine latest version.
wget 'https://raw.githubusercontent.com/mbostock/d3/master/package.json'
GIT_VERSION="$(grep '"version":' 'package.json' | sed 's/.*: "\(.*\)",/\1/g')"


# fetch source and check version.
wget "https://github.com/mbostock/d3/releases/download/v${GIT_VERSION}/d3.zip"
unzip 'd3.zip'
ZIP_VERSION="$(grep 'version:' 'd3.js' | sed 's/.*: "\(.*\)"/\1/g')"
if [ ! "${GIT_VERSION}" = "${ZIP_VERSION}" ] ; then
echo "Version mismatch: ${GIT_VERSION} vs ${ZIP_VERSION}."
exit 1
fi


# build and move tarball
mkdir "d3js-${ZIP_VERSION}"
mv 'd3.min.js' 'LICENSE' "d3js-${ZIP_VERSION}"
tar czvf "d3js-${ZIP_VERSION}.tar.gz" "d3js-${ZIP_VERSION}"
mv "d3js-${ZIP_VERSION}.tar.gz" "${SAGE_ROOT}/upstream/"


# update package info
cd ..
echo "${ZIP_VERSION}" > 'package-version.txt'
sage -sh 'sage-fix-pkg-checksums'


6 changes: 3 additions & 3 deletions build/pkgs/database_cremona_ellcurve/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=database_cremona_ellcurve-VERSION.tar.bz2
sha1=25f256d78bf5c4454d85bb9a22df2d396e4962ba
md5=14de1b11227fdd66e1a87e8101940988
cksum=2753267872
sha1=ab96f509574419c03d9f1c8820c4d96042a17a04
md5=56956829063534142f9f12bc1274c01c
cksum=2400753722
2 changes: 1 addition & 1 deletion build/pkgs/database_cremona_ellcurve/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20140325
20140512
6 changes: 3 additions & 3 deletions build/pkgs/database_gap/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=database_gap-VERSION.tar.bz2
sha1=6e5f63df55881a509076c4ecbd02c7afc8f81ef9
md5=6f9d4632f6d2f4a7000c22cff5d15406
cksum=1275532986
sha1=0e81cd017dc0542fc5faf923324eb1fffb61cdeb
md5=879fc85f53fa9ff9f12dc7ebd621a528
cksum=3437971482
2 changes: 1 addition & 1 deletion build/pkgs/database_gap/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.7.4
4.7.5
6 changes: 3 additions & 3 deletions build/pkgs/ecl/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=ecl-VERSION.tar.bz2
sha1=0f5a540bd6d089d206cce674e0c73f4036191547
md5=204bb44496fdda0e552a987f003fed69
cksum=1587965735
sha1=c79fa3573afad1834cf6057c15f303505fc0011d
md5=52ca39a0abd4d0822abdd9e909cc5ffd
cksum=2846116483
2 changes: 1 addition & 1 deletion build/pkgs/ecl/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.12.1.p4
12.12.1.20140409
Loading

0 comments on commit 9eab84b

Please sign in to comment.