From fb449b892bf84032f4e1f8dec540c10e1b4f1faa Mon Sep 17 00:00:00 2001 From: nishanth1232 <44456350+nishanth1232@users.noreply.github.com> Date: Sat, 17 Nov 2018 15:50:34 +0000 Subject: [PATCH] sci-mathematics/Glucas: new recipe. (#3372) --- sci-mathematics/glucas/glucas-2.9.0.recipe | 44 +++++++++++++++++++ .../glucas/patches/glucas-2.9.0.patchset | 22 ++++++++++ 2 files changed, 66 insertions(+) create mode 100644 sci-mathematics/glucas/glucas-2.9.0.recipe create mode 100644 sci-mathematics/glucas/patches/glucas-2.9.0.patchset diff --git a/sci-mathematics/glucas/glucas-2.9.0.recipe b/sci-mathematics/glucas/glucas-2.9.0.recipe new file mode 100644 index 000000000..bd6dd8a59 --- /dev/null +++ b/sci-mathematics/glucas/glucas-2.9.0.recipe @@ -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 +} diff --git a/sci-mathematics/glucas/patches/glucas-2.9.0.patchset b/sci-mathematics/glucas/patches/glucas-2.9.0.patchset new file mode 100644 index 000000000..c290e1127 --- /dev/null +++ b/sci-mathematics/glucas/patches/glucas-2.9.0.patchset @@ -0,0 +1,22 @@ +From 436ec67141e59325ecd135da8d9a3e98feffd1b3 Mon Sep 17 00:00:00 2001 +From: nishanth1232 +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 +