This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsage.yaml
85 lines (78 loc) · 2.51 KB
/
sage.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: SageMath
repository: https://github.com/sagemath/sage.git
branch: develop
build: |
export SAGE_FAT_BINARY=yes
if [ `uname` != "Darwin" ]; then
# We need to install GCC because we need the gfortran library
# in the binary.
export SAGE_INSTALL_GCC=yes
fi
export MAKE='make -j{ncpu}'
./bootstrap -d
./configure
# workaround for https://trac.sagemath.org/ticket/
export MAKE='make -j2'
make build || exit 1
./sage -c 'print(sin(x).simplify_full())'
# end workaround
make || exit 1
git gc --aggressive --prune=now
version: |
source src/bin/sage-version.sh && echo $SAGE_VERSION
package:
- name: Full binary tarball
dist: |
tar cjf {dist}/sage-{version}-{osname}-{arch}.tar.bz2 {path}
files: &FILES_DEFAULT
- include: '**'
- exclude: '**.pyc'
- exclude: '**.pyo'
- exclude: upstream/**
- exclude: local/share/doc/sage/doctrees/** # weird string terminators
- exclude: src/build/lib.*/**
- exclude: src/build/temp.*/**
- exclude: logs/**
- exclude: config.log
rewrite_path: &REWRITE_PATH_DEFAULT
- exclude: '**/*dvi' # pascal strings?
- exclude: 'local/lib/*.a'
- exclude: local/lib/ecl-*/help.doc
- name: Runtime binaries only
dist: |
tar cjf {dist}/sage-runtime-{version}-{osname}-{arch}.tar.bz2 {path}
files:
- include: '**'
- exclude: '**.pyc'
- exclude: '**.pyo'
- exclude: upstream/**
- exclude: logs/**
- exclude: config.log
- exclude: build/**
- exclude: src/**
- exclude: local/lib/**.a
- exclude: .git/**
rewrite_path: *REWRITE_PATH_DEFAULT
strip: True
- name: OSX DMG image
dist: |
DMG={dist}/sage-{version}-{osname}-{arch}.dmg
rm -f $DMG
# This is also the directory name under which OSX will mount it
TARGET=$(dirname {path})/sage-{version}-{osname}-{arch}
mkdir -p $TARGET
cp {path}/src/bin/sage-README-osx.txt $TARGET/README.txt
cp -a {path} $TARGET/
hdiutil create -srcfolder $TARGET -format UDBZ $DMG
rm -rf $TARGET
files: *FILES_DEFAULT
rewrite_path: *REWRITE_PATH_DEFAULT
- name: OSX mac app
dist: |
DMG={dist}/sage-{version}-{osname}-{arch}.app.dmg
rm -f $DMG
pwd
(cd {path}/src/mac-app && make)
cp {path}/src/mac-app/sage-{version}-*.app.dmg $DMG
files: *FILES_DEFAULT
rewrite_path: *REWRITE_PATH_DEFAULT