From 966a13c6930e9b15611052a8c933e7071210e681 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 6 Feb 2013 11:27:26 +0100 Subject: [PATCH] gmp: update to 5.1.0a. --- srcpkgs/gmp/gmp-devel.template | 8 ++----- srcpkgs/gmp/template | 44 +++++++++++----------------------- 2 files changed, 16 insertions(+), 36 deletions(-) diff --git a/srcpkgs/gmp/gmp-devel.template b/srcpkgs/gmp/gmp-devel.template index b12cdc0e2ad..24d7945f00c 100644 --- a/srcpkgs/gmp/gmp-devel.template +++ b/srcpkgs/gmp/gmp-devel.template @@ -1,11 +1,7 @@ # Template file for 'gmp-devel'. # -depends="glibc-devel gmp" -short_desc="${sourcepkg} development files" -long_desc="${long_desc} - - This package contains files for development: headers, static libs, etc." - +depends="glibc-devel gmp>=${version}" +short_desc="${short_desc} -- development files" do_install() { vmove usr/include usr diff --git a/srcpkgs/gmp/template b/srcpkgs/gmp/template index ffbdcfc155f..b266485b30a 100644 --- a/srcpkgs/gmp/template +++ b/srcpkgs/gmp/template @@ -1,42 +1,26 @@ # Template build file for 'gmp' pkgname=gmp -version=5.0.5 -homepage="http://gmplib.org/" -distfiles="${GNU_SITE}/gmp/gmp-${version}.tar.bz2" +version=5.1.0a +revision=1 +wrksrc="gmp-5.1.0" +makedepends="automake" +crossmakedepends="zlib-devel" +subpackages="gmp-devel" build_style=gnu-configure # Build with -fexceptions as suggested by ppl. CPPFLAGS="-fexceptions" if [ "${XBPS_MACHINE}" = "i686" ]; then - configure_args="ABI=32" + cnfigure_args="ABI=32" fi -configure_args="${configure_args} --enable-cxx --enable-mpbsd ---build=${XBPS_MACHINE}-unknown-linux-gnu" -revision=1 +configure_args="${configure_args} --enable-cxx --build=${XBPS_MACHINE}-unknown-linux-gnu" short_desc="Library for arbitrary precision arithmetic" maintainer="Juan RP " license="LGPL-3" -checksum=1f588aaccc41bb9aed946f9fe38521c26d8b290d003c5df807f65690f2aadec9 -long_desc=" - GNU MP is a library for arbitrary precision arithmetic, operating on signed - integers, rational numbers, and floating point numbers. It has a rich set - of functions, and the functions have a regular interface. +homepage="http://gmplib.org/" +distfiles="ftp://ftp.gmplib.org/pub/gmp-5.1.0/gmp-${version}.tar.xz" +checksum=0f6c0dc6346a1dc906a3c628118dcc1f44607f2100fbd03b2e457e4138384731 - GNU MP is designed to be as fast as possible, both for small operands and for - huge operands. The speed is achieved by using fullwords as the basic - arithmetic type, by using fast algorithms, by carefully optimized assembly - code for the most common inner loops for a lots of CPUs, and by a general - emphasis on speed (instead of simplicity or elegance). - - The speed of GNU MP is believed to be faster than any other similar library. - The advantage for GNU MP increases with the operand sizes for certain - operations, since GNU MP in many cases has asymptotically faster algorithms." - -bootstrap=yes -subpackages="gmp-devel" - -post_install() { - # Required for multilib build. - if grep -q "\-m32" ${DESTDIR}/usr/include/gmp.h; then - sed -i "s|\-m32 ||g" ${DESTDIR}/usr/include/gmp.h - fi +pre_configure() { + sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in + autoreconf -fi }