diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-01 08:41:25 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-01 08:48:14 +0000 |
commit | cb8fc691289c17163bef935c5bdef160c15f9423 (patch) | |
tree | c124d71d5efbdd7a92e0bcb583ff2519d75ef5db /main/gmp | |
parent | c6f90506390842a1911e8c72fcc09afc455fc118 (diff) | |
download | aports-cb8fc691289c17163bef935c5bdef160c15f9423.tar.bz2 aports-cb8fc691289c17163bef935c5bdef160c15f9423.tar.xz |
main/gmp: rename from gmp5 and upgrade to 6.0.0a
Diffstat (limited to 'main/gmp')
-rw-r--r-- | main/gmp/APKBUILD | 58 | ||||
-rw-r--r-- | main/gmp/gmp-4.1.4-noexecstack.patch | 20 |
2 files changed, 78 insertions, 0 deletions
diff --git a/main/gmp/APKBUILD b/main/gmp/APKBUILD new file mode 100644 index 0000000000..36754f55f7 --- /dev/null +++ b/main/gmp/APKBUILD @@ -0,0 +1,58 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=gmp +pkgver=6.0.0a +pkgrel=0 +pkgdesc="A free library for arbitrary precision arithmetic" +url="http://gmplib.org/" +arch="all" +license="LGPL3" +makedepends="m4 texinfo" +depends= +subpackages="$pkgname-doc $pkgname-dev libgmpxx" +source="ftp://ftp.gnu.org/gnu/gmp/gmp-$pkgver.tar.bz2 + " +replaces="gmp5" +_builddir="$srcdir"/gmp-${pkgver%[a-z]} + +prepare() { + cd "$_builddir" + sed -i -e "/# We cannot seem to hardcode it, guess we'll fake it./"'{ n; s/add_dir="-L$libdir"/add_dir="-L$lt_sysroot$libdir"/ }' ltmain.sh || return 1 +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --with-sysroot=$CBUILDROOT \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --localstatedir=/var/state/gmp \ + --enable-cxx \ + --with-pic \ + || return 1 + make || return 1 + make check || return 1 +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="${pkgdir}" install || return 1 + rm "$pkgdir"/usr/lib/*.la || return 1 +} + +libgmpxx() { + pkgdesc="C++ support for gmp" + mkdir -p "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/libgmpxx.so.* "$subpkgdir"/usr/lib/ +} + +doc() { + default_doc + replaces="gmp5-doc" +} + +md5sums="b7ff2d88cae7f8085bd5006096eed470 gmp-6.0.0a.tar.bz2" +sha256sums="7f8e9a804b9c6d07164cf754207be838ece1219425d64e28cfa3e70d5c759aaf gmp-6.0.0a.tar.bz2" +sha512sums="04c8fde7f6e9c2e42753cebf6345d74ef6bdae5ef764df303b6615d17c8d851ac2876ca32c6ba5e111a8d07575c8b725c7b90518a6616be27a7b46d6aeb82c1a gmp-6.0.0a.tar.bz2" diff --git a/main/gmp/gmp-4.1.4-noexecstack.patch b/main/gmp/gmp-4.1.4-noexecstack.patch new file mode 100644 index 0000000000..093bec1a5d --- /dev/null +++ b/main/gmp/gmp-4.1.4-noexecstack.patch @@ -0,0 +1,20 @@ +fixed executable stack + +http://bugs.gentoo.org/115038 + +--- gmp-4.1.4/configure ++++ gmp-4.1.4/configure +@@ -21689,6 +21689,13 @@ + fi + echo "')" >> $gmp_configm4 + echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4 ++# Gentoo hack ++case $host_os in ++ *linux*) ++ echo '.section .note.GNU-stack,"",%progbits' >> $gmp_configm4 ++ echo '.previous' >> $gmp_configm4 ++ ;; ++esac + + # Create Makefiles + # FIXME: Upcoming version of autoconf/automake may not like broken lines. |