mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
sci-mathematics/Glucas: new recipe. (#3372)
This commit is contained in:
44
sci-mathematics/glucas/glucas-2.9.0.recipe
Normal file
44
sci-mathematics/glucas/glucas-2.9.0.recipe
Normal 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
|
||||
}
|
||||
22
sci-mathematics/glucas/patches/glucas-2.9.0.patchset
Normal file
22
sci-mathematics/glucas/patches/glucas-2.9.0.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user