This repository was archived by the owner on Jan 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +50
-7
lines changed
Expand file tree Collapse file tree 4 files changed +50
-7
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,6 @@ See http://www.mpir.org
2525 - We currently don't use anything of GMP's/MPIR's CC setting, and matching
2626 with the current compiler (`$CC`) is perhaps suboptimal.
2727 * Remove some files / directories not needed for Sage from upstream:
28- rm -rf src/ build.vc* # Microsoft Visual C build files
29- rm -rf src/yasm/Mkfiles/{dj,vc*} # DJGPP, Microsoft Visual C
30- (Saves 13 of 40 MB uncompressed.)
28+ - build.vc* directories ( Microsoft Visual C build files)
29+ * 3.0.0-644faf502c56f97d9accd301965fc57d6ec70868
30+ was created by running the spkg-src script.
Original file line number Diff line number Diff line change 11tarball =mpir-VERSION.tar.bz2
2- sha1 =1f7081c2f4a83fb4e9e3453bbafb6aa18f1c5d5a
3- md5 =308f4a981c0a2e796aa41ff3ac805b81
4- cksum =2473237225
2+ sha1 =30044be9f48ce15ddfc8871bde14e363fe2f46ea
3+ md5 =55e9e31d6371b30dd046f16333c84499
4+ cksum =1799000157
Original file line number Diff line number Diff line change 1- 3.0.1.p0
1+ 3.0.0-644faf502c56f97d9accd301965fc57d6ec70868
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+
5+ if [ -z " $SAGE_DISTFILES " ]; then
6+ echo >&2 " SAGE_DISTFILES undefined ... exiting"
7+ echo >&2 " Maybe run 'sage --sh'?"
8+ exit 1
9+ fi
10+
11+ set -e
12+
13+ PACKAGEVERSION=` cat $SAGE_ROOT /build/pkgs/mpir/package-version.txt`
14+ MPIRVERSION=mpir-` echo $PACKAGEVERSION | sed ' s/-.*//' `
15+ TARBALLVERSION=" mpir-$PACKAGEVERSION "
16+
17+ # Get the sources
18+ cd " $SAGE_DISTFILES "
19+ rm -rf mpir
20+ git clone https://github.com/wbhart/mpir.git mpir
21+ cd mpir
22+ git checkout 644faf502c56f97d9accd301965fc57d6ec70868
23+
24+ # Add auto-generated files
25+ ./autogen.sh
26+
27+ # Create the tarball
28+ ./configure
29+ make dist-bzip2
30+
31+ # Unpack the tarball, remove some unwanted stuff
32+ tar xjf $MPIRVERSION .tar.bz2
33+ find $MPIRVERSION -name ' build.vc*' -prune -exec rm -r {} \;
34+
35+ # Repackage the tarball and put it in SAGE_DISTFILES
36+ mv $MPIRVERSION $TARBALLVERSION
37+ tar c $TARBALLVERSION | bzip2 --best > ../$TARBALLVERSION .tar.bz2
38+ sage-package fix-checksum mpir
39+
40+ # Cleanup
41+ cd " $SAGE_DISTFILES "
42+ rm -rf mpir
43+ echo " New MPIR tarball is ready in $SAGE_DISTFILES /$TARBALLVERSION .tar.bz2"
You can’t perform that action at this time.
0 commit comments