From nobody Sun Jul 09 10:33:25 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QzNl94n2rz4ljyB; Sun, 9 Jul 2023 10:33:25 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QzNl93p2nz3t4k; Sun, 9 Jul 2023 10:33:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688898805; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=O7Iy7tjjbHZ974XFkWuQ7i9FaZD73sWHs1rD9IVyVWk=; b=YMfI+BDpx+5ScgEIhAnW8jgu7jqrygf/lvNHtwkGq2c9wo4BqNtQOsP/eDeZD7V53dKAbH xqvWBLP2OvcjAOyqxQ2UPMGvj65I8Mq71Yyzi1JQ22d+CaE0P8vajU0ZWXgqpyyuxuNrSL mN4gSRCWUN0ZyMEOao3Ro61Wmti8qRM1Lz4ZLi2+UyHHNsWhyso8zLZBTs6+JzCe4tVx5S D6fH+R/DxGNhqMlQ9NRN13Wh18v7khOlhY5/Z1WwoTYipy8xvYfyikySIuWogKx/sY4kGU LUI9BDlBTbsrn2sLqEygWW6Oa+kGdnYVuCgAAPlpD9moQTXCXApLWyninbp1TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688898805; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=O7Iy7tjjbHZ974XFkWuQ7i9FaZD73sWHs1rD9IVyVWk=; b=L9scjmsgOvCUFQGtKI1SWJFRgcaaYihaVIPN2OAv2qeln0M85XN4fwHvlV2z+zM+DFFv/K MwoFBP35/Jk2x1bsoj9auqAU6f6EAo7IOPafdBBmipZ2k5ucYezNM/DiA2rFENnIhAnk8R pgPEBRDk5F5Yvj804+KBoz/juWBQYuuKWLHIJ9zkw2RgHPStztmziU9Xlkt/S2fpdEwpIs fG15FnS8oiQ2N9rxTO3uZtb+EmlIIiEdFON4fAzNjbYu09rvjDA3gbjFYoPF2BlPfJG6nV pR3r4h6D4NoJVN1EDQJSZbBASAtf8UblJfIQKZlcONKQYiy1cP9AY1vURuS/0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688898805; a=rsa-sha256; cv=none; b=UnEaB+OQoRLMgR8n7Nap1MJJkfUuLozQZmSznWrWgLk7IUb2b6moQw6YPxbl8UOHYkblnW ZiqpEs5e8+LsIjs2SEmem3nVzeduFRDlomozKmH10Tqp/lh3v4Jn0AXZtth8ImPel0gHqP ImOOYlP5T1grvw01yhGPtVT9c9LBeVZ1qACgrPqISWq0uuUYK7sX++MbPhv2ZXWtSJBzLb G4F3aKa0v4/wKLzpdWjyT1LTr/zjX7c6b79z+DlUz0nwSDl6u8wMd3WxNivFok5iPExYAA bzTbpbLRFwEVrpA01I50albk4tn37j4cABy0me8rmffnZL6VBYL1MYF89hklMQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QzNl92Ztgzyv4; Sun, 9 Jul 2023 10:33:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 369AXPAT055076; Sun, 9 Jul 2023 10:33:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 369AXPYu055075; Sun, 9 Jul 2023 10:33:25 GMT (envelope-from git) Date: Sun, 9 Jul 2023 10:33:25 GMT Message-Id: <202307091033.369AXPYu055075@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: c627bda70687 - main - math/tinymt: Add tinymt 1.1.2 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c627bda70687ce314ec01bb39308f7533869d143 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c627bda70687ce314ec01bb39308f7533869d143 commit c627bda70687ce314ec01bb39308f7533869d143 Author: Po-Chuan Hsieh AuthorDate: 2023-07-09 10:10:20 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-07-09 10:10:20 +0000 math/tinymt: Add tinymt 1.1.2 Tiny Mersenne Twister(TinyMT) is a pseudo random number generators whose periods are 2^127-1. --- math/Makefile | 1 + math/tinymt/Makefile | 30 ++++++++++++++++++++++++++++++ math/tinymt/distinfo | 3 +++ math/tinymt/files/patch-Makefile | 12 ++++++++++++ math/tinymt/pkg-descr | 2 ++ 5 files changed, 48 insertions(+) diff --git a/math/Makefile b/math/Makefile index 83e191007bc1..f69d5b82a5b5 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1187,6 +1187,7 @@ SUBDIR += the-algorithms-c++ SUBDIR += timbl SUBDIR += tiny-bignum-c + SUBDIR += tinymt SUBDIR += tlapack SUBDIR += tmv SUBDIR += tomsfastmath diff --git a/math/tinymt/Makefile b/math/tinymt/Makefile new file mode 100644 index 000000000000..405e2210c2f2 --- /dev/null +++ b/math/tinymt/Makefile @@ -0,0 +1,30 @@ +PORTNAME= tinymt +PORTVERSION= 1.1.2 +DISTVERSIONPREFIX= v +CATEGORIES= math + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Tiny Mersenne Twister +WWW= https://github.com/MersenneTwister-Lab/TinyMT + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +WRKSRC_SUBDIR= tinymt + +PLIST_FILES= bin/tinymt-check32 \ + bin/tinymt-check64 \ + include/tinymt32.h \ + include/tinymt64.h + +USE_GITHUB= yes +GH_ACCOUNT= MersenneTwister-Lab +GH_PROJECT= TinyMT + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/include + ${INSTALL_PROGRAM} ${WRKSRC}/check32 ${STAGEDIR}${PREFIX}/bin/tinymt-check32 + ${INSTALL_PROGRAM} ${WRKSRC}/check64 ${STAGEDIR}${PREFIX}/bin/tinymt-check64 + ${INSTALL_DATA} ${WRKSRC}/tinymt32.h ${WRKSRC}/tinymt64.h ${STAGEDIR}${PREFIX}/include + +.include diff --git a/math/tinymt/distinfo b/math/tinymt/distinfo new file mode 100644 index 000000000000..d91767fbfb68 --- /dev/null +++ b/math/tinymt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1688166000 +SHA256 (MersenneTwister-Lab-TinyMT-v1.1.2_GH0.tar.gz) = 10dfa59d500b145bd4aa6f5eeac6db66da916de832945f30965d7a6e5020198c +SIZE (MersenneTwister-Lab-TinyMT-v1.1.2_GH0.tar.gz) = 331826 diff --git a/math/tinymt/files/patch-Makefile b/math/tinymt/files/patch-Makefile new file mode 100644 index 000000000000..fb5cd32f3722 --- /dev/null +++ b/math/tinymt/files/patch-Makefile @@ -0,0 +1,12 @@ +--- Makefile.orig 2020-08-07 00:15:00 UTC ++++ Makefile +@@ -2,8 +2,7 @@ + + #DDEBUG = -O0 -g -ggdb -DDEBUG=1 + +-CC = gcc -Wall -Wextra -Wsign-compare -Wconversion -Wmissing-prototypes \ +--O3 -std=c99 $(DDEBUG) ++#CC = gcc -Wall -Wextra -Wsign-compare -Wconversion -Wmissing-prototypes -O3 -std=c99 $(DDEBUG) + #CC = icc -Wall -O3 -std=c99 -Wmissing-prototypes $(DDEBUG) + + all: check32 check64 diff --git a/math/tinymt/pkg-descr b/math/tinymt/pkg-descr new file mode 100644 index 000000000000..496deae0a5ec --- /dev/null +++ b/math/tinymt/pkg-descr @@ -0,0 +1,2 @@ +Tiny Mersenne Twister(TinyMT) is a pseudo random number generators whose periods +are 2^127-1.