From 66478f13deb3abc7aee43a369e3a7dc37e715dc0 Mon Sep 17 00:00:00 2001 From: Raefaldhi Amartya Junior Date: Wed, 21 Dec 2016 07:22:53 +0700 Subject: [PATCH] primesieve: Add new recipe (GCI 2016) (#936) --- sci-libs/primesieve/primesieve-5.7.3.recipe | 74 +++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 sci-libs/primesieve/primesieve-5.7.3.recipe diff --git a/sci-libs/primesieve/primesieve-5.7.3.recipe b/sci-libs/primesieve/primesieve-5.7.3.recipe new file mode 100644 index 000000000..6382178fd --- /dev/null +++ b/sci-libs/primesieve/primesieve-5.7.3.recipe @@ -0,0 +1,74 @@ +SUMMARY="Fast C/C++ prime number generator library" +DESCRIPTION="primesieve is a program and C/C++ library that generates primes \ +using a highly optimized sieve of Eratosthenes implementation. It counts the \ +primes below 10^10 in just 0.45 seconds on an Intel Core i7-6700 CPU \ +(4 x 3.4GHz). primesieve can generate primes and prime k-tuplets up to 2^64." +HOMEPAGE="http://primesieve.org/" +COPYRIGHT="2010-2016, Kim Walisch" +LICENSE="BSD (2-clause)" +REVISION="1" +SOURCE_URI="https://github.com/kimwalisch/primesieve/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="22c5ec34f020592cd559551e3e6e1e86aa51f6e34d639bef352d155ea415ac62" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="!x86_gcc2 x86" + +if [ "$targetArchitecture" != x86_gcc2 ]; then + commandBinDir=$binDir +else + commandBinDir=$prefix/bin +fi + +PROVIDES=" + primesieve$secondaryArchSuffix = $portVersion + cmd:primesieve = $portVersion + lib:libprimesieve$secondaryArchSuffix = 7.0.3 compat >= 7 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgomp$secondaryArchSuffix + " + +PROVIDES_devel=" + primesieve${secondaryArchSuffix}_devel = $portVersion + devel:libprimesieve$secondaryArchSuffix = 7.0.3 compat >= 7 + " +REQUIRES_devel=" + primesieve$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf + cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + ./autogen.sh + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install bindir=$commandBinDir + + rm $libDir/libprimesieve.la + + prepareInstalledDevelLib libprimesieve + fixPkgconfig + + packageEntries devel \ + $developDir +} + +TEST() +{ + make check +}