ginac & cln: fix cln 1.3.4, update ginac 1.6.5, add ginac 1.6.7. (#559)

sci-libs/cln:

* REQUIRES_devel was set to libcln$secondaryArchSuffix instead of
  cln$secondaryArchSuffix, therefore preventing both the installation
  of cln_devel and its use in chrooted builds of ginac.
* Drop the recipe for version 1.3.2 (which was really old.)
* Change cmd:gcc to cmd:g++ in BUILD_PREREQUIRES.
* On x86_gcc2 using x86 as secondary arch, install pi in bin/ instead
  of bin/x86/.
* Do not use $portVersion as version of lib:libcln. Instead, use the
  libs' real version. This change is safe since the only package wich
  needs libcln is ginac and it is being updated in this very commit.

sci-mathematics/ginac:

* Fix versioned dependency on libcln for ginac-1.6.5.
* On x86_gcc2 using x86 2nd arch, do not install runtimes in bin/x86/
  but in bin/.
* Add ginac-1.6.7.
This commit is contained in:
fbrosson
2016-04-17 21:30:37 +00:00
parent b3e8768b0d
commit e60201f5fa
5 changed files with 108 additions and 65 deletions

View File

@@ -1,30 +0,0 @@
DESCRIPTION="
CLN is a library for efficient computations with all kinds of numbers in \
arbitrary precision.
"
HOMEPAGE="http://www.ginac.de/CLN/"
SOURCE_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"

View File

@@ -10,18 +10,26 @@ COPYRIGHT="1988-2008 Bruno Haible
2000-2014 Richard Kreckel
2008-2010 Alexei Sheplyakov"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="http://www.ginac.de/CLN/cln-$portVersion.tar.bz2"
CHECKSUM_SHA256="2d99d7c433fb60db1e28299298a98354339bdc120d31bb9a862cafc5210ab748"
PATCHES="cln-$portVersion.patch"
ARCHITECTURES="x86 !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
else
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
cln$secondaryArchSuffix = $portVersion
lib:libcln$secondaryArchSuffix = 6.0.4 compat >= 6
cmd:pi$secondaryArchSuffix = $portVersion
cmd:pi$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -32,7 +40,7 @@ PROVIDES_devel="
devel:libcln$secondaryArchSuffix = 6.0.4 compat >= 6
"
REQUIRES_devel="
libcln$secondaryArchSuffix == $portVersion
cln$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
@@ -41,12 +49,12 @@ BUILD_REQUIRES="
BUILD_PREREQUIRES="
cmd:awk
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:g++$secondaryArchSuffix
"
BUILD()
{
runConfigure ./configure
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs
}

View File

@@ -1,21 +0,0 @@
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 <cstdlib> // 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 <sys/types.h>
#include <unistd.h> // 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

View File

@@ -7,12 +7,20 @@ existing numeric software written in C++."
HOMEPAGE="http://www.ginac.de/"
COPYRIGHT="1999-2015 Johannes Gutenberg University Mainz, Germany"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="http://www.ginac.de/ginac-$portVersion.tar.bz2"
CHECKSUM_SHA256="e8630e186d9846123c58de7e0edcfd11b68d3831a84ae7c039c0606397b01444"
ARCHITECTURES="x86 !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
else
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
ginac$secondaryArchSuffix = $portVersion
@@ -23,7 +31,7 @@ PROVIDES="
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcln$secondaryArchSuffix >= 1.3.4
lib:libcln$secondaryArchSuffix >= 6
lib:libreadline$secondaryArchSuffix
"
@@ -32,12 +40,12 @@ PROVIDES_devel="
devel:libginac$secondaryArchSuffix = 5.0.1 compat >= 5
"
REQUIRES_devel="
ginac$secondaryArchSuffix == $portVersion
ginac$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcln$secondaryArchSuffix >= 1.3.4
devel:libcln$secondaryArchSuffix >= 6
devel:libreadline$secondaryArchSuffix
"
BUILD_PREREQUIRES="
@@ -51,7 +59,7 @@ BUILD_PREREQUIRES="
BUILD()
{
runConfigure ./configure
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs
}

View File

@@ -0,0 +1,78 @@
SUMMARY="A C++ library to combine symbolic manipulation with numeric computations"
DESCRIPTION="GiNaC (which is a recursive acronym for GiNaC is Not a CAS) was \
specifically developed to replace the Maple CAS as an engine for xloops. It is \
a C++ library and attempts to bring the features of a typical CAS to the C++ \
language itself. By doing that, it enables symbolic manipulation to be used in \
existing numeric software written in C++."
HOMEPAGE="http://www.ginac.de/"
COPYRIGHT="1999-2016 Johannes Gutenberg University Mainz, Germany"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://www.ginac.de/ginac-$portVersion.tar.bz2"
CHECKSUM_SHA256="cea5971b552372017ea654c025adb44d5f1b3e3ce0a739da2fe95189572b85db"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
else
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
ginac$secondaryArchSuffix = $portVersion
lib:libginac$secondaryArchSuffix = 5.0.3 compat >= 5
cmd:ginac_excompiler$commandSuffix = $portVersion
cmd:ginsh$commandSuffix = $portVersion
cmd:viewgar$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcln$secondaryArchSuffix >= 6
lib:libreadline$secondaryArchSuffix
"
PROVIDES_devel="
ginac${secondaryArchSuffix}_devel = $portVersion
devel:libginac$secondaryArchSuffix = 5.0.3 compat >= 5
"
REQUIRES_devel="
ginac$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcln$secondaryArchSuffix >= 6
devel:libreadline$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:diff
cmd:make
cmd:python >= 2.7
cmd:gcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/*.la
prepareInstalledDevelLib libginac
fixPkgconfig
packageEntries devel \
$developDir
}