From f537c94312a31849137f6b6d5a1e2be7156f8352 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Thu, 9 Aug 2012 22:56:38 +0000 Subject: [PATCH] Added cln .bep and .patch files from cipri, this fixes #600. --- sci-libs/cln/cln-1.3.2.bep | 25 +++++++++++++++++++++++++ sci-libs/cln/patches/cln-1.3.2.patch | 21 +++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 sci-libs/cln/cln-1.3.2.bep create mode 100644 sci-libs/cln/patches/cln-1.3.2.patch diff --git a/sci-libs/cln/cln-1.3.2.bep b/sci-libs/cln/cln-1.3.2.bep new file mode 100644 index 000000000..f1cd7d57a --- /dev/null +++ b/sci-libs/cln/cln-1.3.2.bep @@ -0,0 +1,25 @@ +DESCRIPTION="CLN is a library for efficient computations with all kinds of numbers in arbitrary precision." +HOMEPAGE="http://www.ginac.de/CLN/" +SRC_URI="http://www.ginac.de/CLN/cln-1.3.2.tar.bz2" +CHECKSUM_MD5="d897cce94d9c34d106575ed4ec865d71" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +MESSAGE="This port only builds with gcc4." +BUILD { + cd cln-1.3.2 + autoreconf -i + ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ + --datarootdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY` + make +} + +INSTALL { + cd cln-1.3.2 + make install +} + +LICENSE="GNU GPL v2" +COPYRIGHT="Bruno Haible 1988-2008 + Alexei Sheplyakov 2008 + Richard Kreckel 2000-2009" diff --git a/sci-libs/cln/patches/cln-1.3.2.patch b/sci-libs/cln/patches/cln-1.3.2.patch new file mode 100644 index 000000000..7790747ed --- /dev/null +++ b/sci-libs/cln/patches/cln-1.3.2.patch @@ -0,0 +1,21 @@ +diff -Naur cln-1.3.2/src/base/random/cl_random_from.cc cln-1.3.2-haiku/src/base/random/cl_random_from.cc +--- cln-1.3.2/src/base/random/cl_random_from.cc 2009-05-10 22:32:30.056360960 +0200 ++++ cln-1.3.2-haiku/src/base/random/cl_random_from.cc 2012-06-14 20:16:49.920387584 +0200 +@@ -18,7 +18,7 @@ + #include "base/cl_low.h" + #include // declares rand() + +-#if defined(unix) || defined(__unix) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(__CYGWIN__) && defined(__GNUC__)) || defined(__BEOS__) ++#if defined(unix) || defined(__unix) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(__CYGWIN__) && defined(__GNUC__)) || defined(__BEOS__) || defined(__HAIKU__) + + #include + #include // declares getpid() +@@ -86,7 +86,7 @@ + { + var uint32 seed_hi; + var uint32 seed_lo; +-#if defined(unix) || defined(__unix) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(__CYGWIN__) && defined(__GNUC__)) || defined(__BEOS__) ++#if defined(unix) || defined(__unix) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(__CYGWIN__) && defined(__GNUC__)) || defined(__BEOS__) || defined(__HAIKU__) + seed_lo = get_seed(); + seed_hi = (rand() // zufällige 31 Bit (bei UNIX_BSD) bzw. 16 Bit (bei UNIX_SYSV) + << 8) ^ (uintL)(getpid()); // ca. 8 Bit von der Process ID