From 10170ff49bdb346304dfb758fe70b45ea4bb2b87 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 3 Nov 2015 20:01:05 +0000 Subject: [PATCH] gmp: bump version. * gcc2 not supported anymore. --- dev-libs/gmp/gmp-4.3.2.recipe | 33 ---------------- dev-libs/gmp/gmp-6.1.0.recipe | 73 +++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 33 deletions(-) delete mode 100644 dev-libs/gmp/gmp-4.3.2.recipe create mode 100644 dev-libs/gmp/gmp-6.1.0.recipe diff --git a/dev-libs/gmp/gmp-4.3.2.recipe b/dev-libs/gmp/gmp-4.3.2.recipe deleted file mode 100644 index 8c9f523df..000000000 --- a/dev-libs/gmp/gmp-4.3.2.recipe +++ /dev/null @@ -1,33 +0,0 @@ -DESCRIPTION="GMP - GNU Multiple Precision Arithmetic Library" -HOMEPAGE="http://gmplib.org/" -SOURCE_URI="ftp://ftp.gmplib.org/pub/gmp-4.3.2/gmp-4.3.2.tar.bz2" -CHECKSUM_MD5="dd60683d7057917e34630b4a787932e8" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd gmp-4.3.2 - libtoolize --force --copy --install - aclocal - autoconf - automake --add-missing - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd gmp-4.3.2 - make install -} - -TEST() -{ - cd gmp-4.3.2 - make check -} - -LICENSE="GNU GPL v3 - GNU LGPL v3" -COPYRIGHT="1991-2009 Free Software Foundation, Inc." diff --git a/dev-libs/gmp/gmp-6.1.0.recipe b/dev-libs/gmp/gmp-6.1.0.recipe new file mode 100644 index 000000000..dba9eece1 --- /dev/null +++ b/dev-libs/gmp/gmp-6.1.0.recipe @@ -0,0 +1,73 @@ +SUMMARY="The GNU multiple precision arithmetic library" +DESCRIPTION="The GNU Multiple Precision Arithmetic Library (GMP) is a free \ +library for arbitrary-precision arithmetic, operating on signed integers, \ +rational numbers, and floating point numbers. + +There are no practical limits to the precision except the ones implied by \ +the available memory in the machine GMP runs on (operand dimension limit is \ +2^(32)-1 bits on 32-bit machines and 2^37 bits on 64-bit machines). +GMP has a rich set of functions, and the functions have a regular interface. \ +The basic interface is for C but wrappers exist for other languages including \ +Ada, C++, C#, OCaml, Perl, PHP, and Python." +HOMEPAGE="http://gmplib.org/" +COPYRIGHT="1991-2014 Free Software Foundation, Inc." +LICENSE="GNU GPL v3 + GNU LGPL v3" +REVISION="1" +SOURCE_URI="https://gmplib.org/download/gmp/gmp-6.1.0.tar.xz" +CHECKSUM_SHA256="68dadacce515b0f8a54f510edf07c1b636492bcdb8e8d54c56eb216225d16989" + +ARCHITECTURES="x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + gmp$secondaryArchSuffix = $portVersion compat >= 6.0 + lib:libgmp$secondaryArchSuffix = 10.2.0 compat >= 10 + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + gmp${secondaryArchSuffix}_devel = $portVersion + devel:libgmp$secondaryArchSuffix = 10.2.0 compat >= 10 + " +REQUIRES_devel=" + gmp$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:libtool + cmd:autoconf + cmd:automake + cmd:make + " + +BUILD() +{ + touch doc/*.info* + autoreconf -fi + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install includedir=$includeDir includeexecdir=$includeDir + + # prepare devel/lib + prepareInstalledDevelLibs libgmp + + # devel package + packageEntries devel \ + $developDir +} + +TEST() +{ + make $jobArgs check +}