sci-mathematics/Glucas: new recipe. (#3372)

This commit is contained in:
nishanth1232
2018-11-17 15:50:34 +00:00
committed by fbrosson
parent 2571069b0f
commit fb449b892b
2 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
SUMMARY="A client to make primality test for Mersenne numbers"
DESCRIPTION="Glucas is related to GIMPS effort to search the biggest primes \
ever found."
HOMEPAGE="https://sourceforge.net/projects/glucas/"
COPYRIGHT="2001-2002 gbvalor"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://downloads.sourceforge.net/glucas/Glucas-$portVersion.tar.gz"
CHECKSUM_SHA256="fde422220245788c0d8aeaec6a89f26e849905b1417c5e6ff1a01f56c595cadc"
PATCHES="glucas-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
glucas = $portVersion
cmd:Glucas = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:gcc
cmd:make
cmd:makeinfo
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm -f "$infoDir"/dir
}

View File

@@ -0,0 +1,22 @@
From 436ec67141e59325ecd135da8d9a3e98feffd1b3 Mon Sep 17 00:00:00 2001
From: nishanth1232 <thumma.nishanth79@gmail.com>
Date: Sat, 17 Nov 2018 18:30:26 +0000
Subject: gsetup.c for glucas!
diff --git a/gsetup.c b/gsetup.c
index 7f32832..14a7354 100644
--- a/gsetup.c
+++ b/gsetup.c
@@ -39,7 +39,7 @@ void setup (int nonice)
#ifdef __sgi__
(void)schedctl(NDPRI, 0, NDPLOMIN);
#endif
-#if !defined(macintosh) && !defined(pccompiler)
+#if !defined(macintosh) && !defined(pccompiler) && !defined(__HAIKU__)
(void)nice(40);
#endif
}
--
2.19.0