From owner-svn-ports-head@freebsd.org Fri Dec 11 15:35:37 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 450D04B2C3A; Fri, 11 Dec 2020 15:35:37 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Csvxj1WwVz4VMn; Fri, 11 Dec 2020 15:35:37 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 277D255A5; Fri, 11 Dec 2020 15:35:37 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BBFZa1H050063; Fri, 11 Dec 2020 15:35:36 GMT (envelope-from thierry@FreeBSD.org) Received: (from thierry@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0BBFZaEo050056; Fri, 11 Dec 2020 15:35:36 GMT (envelope-from thierry@FreeBSD.org) Message-Id: <202012111535.0BBFZaEo050056@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: thierry set sender to thierry@FreeBSD.org using -f From: Thierry Thomas Date: Fri, 11 Dec 2020 15:35:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r557744 - in head/math: . sprng X-SVN-Group: ports-head X-SVN-Commit-Author: thierry X-SVN-Commit-Paths: in head/math: . sprng X-SVN-Commit-Revision: 557744 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2020 15:35:37 -0000 Author: thierry Date: Fri Dec 11 15:35:35 2020 New Revision: 557744 URL: https://svnweb.freebsd.org/changeset/ports/557744 Log: Adding math/sprng, Scalable Parallel Pseudo Random Number Generators Library. Added: head/math/sprng/ head/math/sprng/Makefile (contents, props changed) head/math/sprng/distinfo (contents, props changed) head/math/sprng/pkg-descr (contents, props changed) head/math/sprng/pkg-plist (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Fri Dec 11 15:33:16 2020 (r557743) +++ head/math/Makefile Fri Dec 11 15:35:35 2020 (r557744) @@ -921,6 +921,7 @@ SUBDIR += spooles SUBDIR += spooles-mpich SUBDIR += spot + SUBDIR += sprng SUBDIR += stp SUBDIR += suitesparse SUBDIR += sundials Added: head/math/sprng/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sprng/Makefile Fri Dec 11 15:35:35 2020 (r557744) @@ -0,0 +1,67 @@ +# Created by: thierry@pompo.net +# $FreeBSD$ + +PORTNAME= SPRNG +PORTVERSION= 5.0 +CATEGORIES= math science +MASTER_SITES= http://www.sprng.org/Version${PORTVERSION}/ +DISTNAME= ${PORTNAME:tl}${PORTVERSION:R} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Scalable Parallel Pseudo Random Number Generators Library + +LICENSE= CC-BY-NC-SA-4.0 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libtestu01.so:math/testu01 + +USES= compiler dos2unix fortran gmake localbase tar:bz2 +DOS2UNIX_GLOB= LICENSE + +FFLAGS= -I${LOCALBASE}/include +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-testu01=${LOCALBASE} \ + --with-testu01lib=${LOCALBASE}/lib \ + --with-testu01inc=${LOCALBASE}/include/TestU01 +TEST_TARGET= check + +PORTEXAMPLES= * + +OPTIONS_DEFINE= EXAMPLES MPI +OPTIONS_DEFAULT= EXAMPLES MPI +OPTIONS_SUB= yes +MPI_LIB_DEPENDS= libmpi.so:net/mpich +MPI_CONFIGURE_WITH= mpi + +ASCII_TEXTS= checkcmrg checklcg checklcg64 checklfg checkmlfg checkpmlcg \ + checksprng timecmrg timelcg timelcg64 timelfg timemlfg timepmlcg\ + timesprng + +.include + +pre-configure: +.if ${CHOSEN_COMPILER_TYPE} == clang + ${FIND} ${WRKSRC} -name Makefile.in | \ + ${XARGS} ${REINPLACE_CMD} -e 's|-lstdc++|-lc++|' +.endif +.for s in check_gen.cpp check_gen_simple.cpp + ${FIND} ${WRKSRC} -name ${s} | \ + ${XARGS} ${REINPLACE_CMD} -e 's|using namespace std;||' +.endfor + +post-stage: + (cd ${STAGEDIR}${PREFIX}/share && \ + ${RM} .insertlib gencheck gentime insertlib) + (cd ${STAGEDIR}${PREFIX}/bin && ${RM} ${ASCII_TEXTS}) + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/EXAMPLES && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + (cd ${STAGEDIR}${EXAMPLESDIR} && ${RM} -r .deps) +.if !defined(WITH_DEBUG) + ${FIND} ${STAGEDIR}${EXAMPLESDIR} -name "*.sprng" | \ + ${XARGS} ${STRIP_CMD} +.endif + +.include Added: head/math/sprng/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sprng/distinfo Fri Dec 11 15:35:35 2020 (r557744) @@ -0,0 +1,3 @@ +TIMESTAMP = 1607615633 +SHA256 (sprng5.tar.bz2) = 9172a495472cc24893e7489ce9b5654300dc60cba4430e436ce50d28eb749a66 +SIZE (sprng5.tar.bz2) = 648021 Added: head/math/sprng/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sprng/pkg-descr Fri Dec 11 15:35:35 2020 (r557744) @@ -0,0 +1,13 @@ +Computational stochastic approaches (Monte Carlo methods) based on the random +sampling are becoming extremely important research tools not only in their +"traditional" fields such as physics, chemistry or applied mathematics but also +in social sciences and, recently, in various branches of industry. An indication +of importance is, for example, the fact that Monte Carlo calculations consume +about one half of the supercomputer cycles. One of the indispensable and +important ingredients for reliable and statistically sound calculations is the +source of pseudo random numbers. The goal of this project is to develop, +implement and test a scalable package for parallel pseudo random number +generation which will be easy to use on a variety of architectures, especially +in large-scale parallel Monte Carlo applications. + +WWW: http://www.sprng.org/ Added: head/math/sprng/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/sprng/pkg-plist Fri Dec 11 15:35:35 2020 (r557744) @@ -0,0 +1,93 @@ +%%MPI%%bin/2streams_mpi.tmp +bin/FIPS_140_2.tmp +bin/alphabit.tmp +bin/bigCrush.tmp +bin/check.ccmrg +bin/check.clcg +bin/check.clcg64 +bin/check.clfg +bin/check.cmlfg +bin/check.cpmlcg +bin/check.fcmrg +bin/check.flcg +bin/check.flfg +bin/check.fmlfg +bin/check.fpmlcg +bin/check_sim.ccmrg +bin/check_sim.clcg +bin/check_sim.clcg64 +bin/check_sim.clfg +bin/check_sim.cmlfg +bin/check_sim.cpmlcg +bin/check_sim.fcmrg +bin/check_sim.flcg +bin/check_sim.flfg +bin/check_sim.fmlfg +bin/check_sim.fpmlcg +bin/collisions.tmp +bin/convert.tmp +bin/convertf.tmp +bin/coupon.tmp +bin/crush.tmp +bin/equidist.tmp +%%MPI%%bin/fsprng-simple_mpi.tmp +%%MPI%%bin/fsprng_mpi.tmp +bin/gap.tmp +bin/libsprng.a +bin/maxt.tmp +%%MPI%%bin/message-simple_mpi.tmp +%%MPI%%bin/message_mpi.tmp +bin/metropolis.tmp +bin/perm.tmp +bin/pi-simple.tmp +%%MPI%%bin/pi-simple_mpi.tmp +bin/pif-simple.tmp +bin/poker.tmp +bin/rabbit.tmp +bin/random_walk.tmp +bin/runs.tmp +bin/seed-simple.tmp +%%MPI%%bin/seed-simple_mpi.tmp +bin/seed.tmp +%%MPI%%bin/seed_mpi.tmp +bin/seedf-simple.tmp +bin/seedf.tmp +bin/serial.tmp +bin/simple-simple.tmp +bin/simplef-simple.tmp +bin/smallCrush.tmp +bin/spawn.tmp +bin/spawnf.tmp +bin/sprng-simple.tmp +%%MPI%%bin/sprng-simple_mpi.tmp +bin/sprng.tmp +%%MPI%%bin/sprng_mpi.tmp +bin/sprngf-simple.tmp +bin/sprngf.tmp +bin/subroutinef.tmp +bin/sum.tmp +bin/time.ccmrg +bin/time.clcg +bin/time.clcg64 +bin/time.clfg +bin/time.cmlfg +bin/time.cpmlcg +bin/time.fcmrg +bin/time.flcg +bin/time.flfg +bin/time.fmlfg +bin/time.fpmlcg +bin/wolff.tmp +bin/wolffind.tmp +bin/wolfftest.tmp +include/bignum.h +include/cmrg.h +include/lcg.h +include/lcg64.h +include/lfg.h +include/mlfg.h +include/pmlcg.h +include/sprng.h +include/sprng_cpp.h +include/sprng_f.h +lib/libsprng.a