From 9448bfc04f277c68a70b8c26193c1dd9f65fe541 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 29 Sep 2014 13:23:32 +0000 Subject: [PATCH] libgmp: updated to 6.0.0a --- libgmp/.footprint | 13 +++++++------ libgmp/.md5sum | 3 ++- libgmp/Pkgfile | 9 ++++++--- libgmp/gmp.h | 16 ++++++++++++++++ 4 files changed, 31 insertions(+), 10 deletions(-) create mode 100644 libgmp/gmp.h diff --git a/libgmp/.footprint b/libgmp/.footprint index 74ea801..4182d08 100644 --- a/libgmp/.footprint +++ b/libgmp/.footprint @@ -1,15 +1,16 @@ drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/gmp-32.h -rw-r--r-- root/root usr/include/gmp.h -rw-r--r-- root/root usr/include/gmpxx.h drwxr-xr-x root/root usr/lib/ -rw-r--r-- root/root usr/lib/libgmp.a -rwxr-xr-x root/root usr/lib/libgmp.la -lrwxrwxrwx root/root usr/lib/libgmp.so -> libgmp.so.10.1.2 -lrwxrwxrwx root/root usr/lib/libgmp.so.10 -> libgmp.so.10.1.2 --rwxr-xr-x root/root usr/lib/libgmp.so.10.1.2 +lrwxrwxrwx root/root usr/lib/libgmp.so -> libgmp.so.10.2.0 +lrwxrwxrwx root/root usr/lib/libgmp.so.10 -> libgmp.so.10.2.0 +-rwxr-xr-x root/root usr/lib/libgmp.so.10.2.0 -rw-r--r-- root/root usr/lib/libgmpxx.a -rwxr-xr-x root/root usr/lib/libgmpxx.la -lrwxrwxrwx root/root usr/lib/libgmpxx.so -> libgmpxx.so.4.3.2 -lrwxrwxrwx root/root usr/lib/libgmpxx.so.4 -> libgmpxx.so.4.3.2 --rwxr-xr-x root/root usr/lib/libgmpxx.so.4.3.2 +lrwxrwxrwx root/root usr/lib/libgmpxx.so -> libgmpxx.so.4.4.0 +lrwxrwxrwx root/root usr/lib/libgmpxx.so.4 -> libgmpxx.so.4.4.0 +-rwxr-xr-x root/root usr/lib/libgmpxx.so.4.4.0 diff --git a/libgmp/.md5sum b/libgmp/.md5sum index f023fc3..b232e77 100644 --- a/libgmp/.md5sum +++ b/libgmp/.md5sum @@ -1 +1,2 @@ -06fe2ca164221c59ce74867155cfc1ac gmp-5.1.2.tar.xz +1e6da4e434553d2811437aa42c7f7c76 gmp-6.0.0a.tar.xz +daeab39b836818ac780974b146ea7e4f gmp.h diff --git a/libgmp/Pkgfile b/libgmp/Pkgfile index e0ca8e5..124712a 100644 --- a/libgmp/Pkgfile +++ b/libgmp/Pkgfile @@ -5,17 +5,20 @@ # Depends on: name=libgmp -version=5.1.2 +version=6.0.0a release=1 -source=(ftp://ftp.gnu.org/gnu/gmp/gmp-$version.tar.xz) +source=(ftp://ftp.gmplib.org/pub/gmp-${version%a}/gmp-$version.tar.xz \ + gmp.h) build() { - cd gmp-$version + cd gmp-${version%a} ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ --enable-cxx make make DESTDIR=$PKG install + mv $PKG/usr/include/gmp{,-32}.h + install -m 0644 $SRC/gmp.h $PKG/usr/include/ rm -r $PKG/usr/share } diff --git a/libgmp/gmp.h b/libgmp/gmp.h new file mode 100644 index 0000000..be48ef6 --- /dev/null +++ b/libgmp/gmp.h @@ -0,0 +1,16 @@ +/* gmp.h stub */ + +#ifndef __STUB__GMP_H__ +#define __STUB__GMP_H__ + +#if defined(__x86_64__) || \ + defined(__sparc64__) || \ + defined(__arch64__) || \ + defined(__powerpc64__) || \ + defined(__s390x__) +#include "gmp-64.h" +#else +#include "gmp-32.h" +#endif + +#endif -- 2.26.2