From d2e4129cd1ec19291944f144549ab83f4a475327 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 9 Aug 2014 12:37:38 +0200 Subject: [PATCH] MPC: make it work. * 4 failed tests on gcc2 - use with caution (probably because of the broken MPFR) * All tests pased on gcc4. --- dev-libs/mpc/mpc-1.0.1.recipe | 34 ------------------ dev-libs/mpc/mpc-1.0.2.recipe | 67 +++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 34 deletions(-) delete mode 100644 dev-libs/mpc/mpc-1.0.1.recipe create mode 100644 dev-libs/mpc/mpc-1.0.2.recipe diff --git a/dev-libs/mpc/mpc-1.0.1.recipe b/dev-libs/mpc/mpc-1.0.1.recipe deleted file mode 100644 index f53eedff9..000000000 --- a/dev-libs/mpc/mpc-1.0.1.recipe +++ /dev/null @@ -1,34 +0,0 @@ -DESCRIPTION="library for multiple-precision complex arithmetics with exact rounding" -HOMEPAGE="mpc.multiprecision.org" -SRC_URI="http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-libs/gmp = 5.0.5" -CHECKSUM_SHA1="8c7e19ad0dd9b3b5cc652273403423d6cf0c5edf" -BUILD() -{ - cd mpc-1.0.1 -# libtoolize --force --copy --install -# aclocal -I m4 -# automake --add-missing -# autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ - --datarootdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY` \ - --with-gmp=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd mpc-1.0.1 - make install -} - -TEST() -{ - cd mpc-1.0.1 - make check -} - -LICENSE="GNU LGPL v3" -#COPYRIGHT="" diff --git a/dev-libs/mpc/mpc-1.0.2.recipe b/dev-libs/mpc/mpc-1.0.2.recipe new file mode 100644 index 000000000..5595390e3 --- /dev/null +++ b/dev-libs/mpc/mpc-1.0.2.recipe @@ -0,0 +1,67 @@ +SUMMARY="Arithmetics of complex numbers with arbitrarily high precision." +DESCRIPTION="Gnu Mpc is a C library for the arithmetic of complex numbers \ +with arbitrarily high precision and correct rounding of the result. It \ +extends the principles of the IEEE-754 standard for fixed precision real \ +floating point numbers to complex numbers, providing well-defined semantics \ +for every operation. At the same time, speed of operation at high precision \ +is a major design goal. +" +LICENSE="GNU LGPL v3" +COPYRIGHT="2006-2014 Andreas Enge, Mickaël Gastineau, Philippe Théveny +and Paul Zimmermann" +REVISION="1" +ARCHITECTURES="x86_gcc2" +SECONDARY_ARCHITECTURES="x86" +HOMEPAGE="http://www.multiprecision.org" +SRC_URI="$HOMEPAGE/mpc/download/mpc-$portVersion.tar.gz" +CHECKSUM_SHA256="b561f54d8a479cee3bc891ee52735f18ff86712ba30f036f8b8537bae380c488" + +PROVIDES=" + mpc$secondaryArchSuffix = $portVersion + lib:libmpc$secondaryArchSuffix = 3.0.0 compat = 3 +" + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgmp$secondaryArchSuffix + lib:libmpfr$secondaryArchSuffix +" + +BUILD_REQUIRES=" + devel:libgmp$secondaryArchSuffix + devel:libmpfr$secondaryArchSuffix +" + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel + cmd:awk + cmd:gcc + cmd:make +" + +PROVIDES_devel=" + mpc_devel$secondaryArchSuffix = $portVersion + devel:libmpc$secondaryArchSuffix = 3.0.0 compat = 3 +" + +REQUIRES_devel=" + mpc$secondaryArchSuffix == $portVersion base +" + +BUILD() +{ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + prepareInstalledDevelLibs libmpc + packageEntries devel $developDir +} + +TEST() +{ + make $jobArgs check +}