From nobody Wed Jun 29 20:11:26 2022 X-Original-To: dev-commits-ports-all@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 D3971864810; Wed, 29 Jun 2022 20:11:26 +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 4LYCKB4mR2z4p7Q; Wed, 29 Jun 2022 20:11:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656533486; 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=ujErnlhtGgO/S2i0azdPjKX7bYC6Q2Kt1YKUUcoe6bw=; b=XoP9/164bJuz+HwYq/wM6HziGx691D+COeN6DrqvfQ9FTVf/+ob6cUL/WjFGZgf9ZYjrDg cQnA6TIaHcrk7u9tQ5/idIJnRqASJRGtDGEIDhIBshjKPlddVKzLI5L9nFsX21bme8mq71 FG7Iq/KqyLVmBHij12SjVbXpk4ffcaKw0yfmmHGGmJepIr/SGvGVU7K7nIOn/PK3SJ2Ke3 w2yUZ3edFtV8YKWIFNwCqjDTZTZ2Z1cOmLXccVWhNifKXUeBNgvyQ50/jiHh/hr/N8u7IY nJy5TMhAGMZPH8n2Zh5OHlcuMeMAVV+EYmPsi/XdY0MliaaoZhJ9UOmVDCpCRg== 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 76AEE180FA; Wed, 29 Jun 2022 20:11:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25TKBQCM084512; Wed, 29 Jun 2022 20:11:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25TKBQjr084511; Wed, 29 Jun 2022 20:11:26 GMT (envelope-from git) Date: Wed, 29 Jun 2022 20:11:26 GMT Message-Id: <202206292011.25TKBQjr084511@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: fa8df33c779a - main - math/ttmath: New port: C++ headers-only library for big integer and floating point numbers List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fa8df33c779ad67e2d2260e29ea552e2113e5020 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656533486; 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=ujErnlhtGgO/S2i0azdPjKX7bYC6Q2Kt1YKUUcoe6bw=; b=NLtnvzOAqqtia+R2W7r4OCa/uaEAlcayNGOiIpK0TciCDvxzctndFZeDzRuxjSIrY+cPkG LG5vxsjDtST+LbzN6HWdJMsTUoTjh1lyDa/q/YH6rhRXUAmC2ILrLDiGQlpnEecwI0vJpz bfu0L7V+7HjUrpd+wHKSrQBomX4bi/ly50xO2vnSQI1T0vuDKVOmFuFITLj9F+D15FUsho neuhwZi688WQM5f1r6HaX7LJa3OWlRX2HArwxUcqT6qTcB8tP/nVehJs1OwQpw9eccz+Ot h+HZYTIxt5FnFXp86G+QpE+hHQYsRHOin5NwsKyeLgea5E6RKlqoJvmLQ1WuaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656533486; a=rsa-sha256; cv=none; b=tFSn0gf5TpPAfOLVLfOUm8SlATeDmH9QfB+Ht209t7KzlnKpMM04FF4swH+6HJFT4hxHMs gTKgzgZ4lMxXSdCste6zCjVxywoDbo1g5yl57ZFpFgsTvHSycSkPig+PSte28hP9jdUURy R7aFyWMaKLdIyEpLJsR556uO0aErllQEHXC+lgTbALrelORUdi5H8xJ4zulZ6VCZDR251W A4uT2Zd82yINMA9U+OCiQn1mny2tGQigfj58Ky68H9wSKDMdRyRc5CZIh8vz3X5j+kJqt/ 2J6sLLlnzLR/3g0WqosAyaU6e2KmTn9+z81Vf3ZL+dBoEqCNjJ1/i//Zpl8/Eg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=fa8df33c779ad67e2d2260e29ea552e2113e5020 commit fa8df33c779ad67e2d2260e29ea552e2113e5020 Author: Yuri Victorovich AuthorDate: 2022-06-29 20:10:51 +0000 Commit: Yuri Victorovich CommitDate: 2022-06-29 20:11:24 +0000 math/ttmath: New port: C++ headers-only library for big integer and floating point numbers --- math/Makefile | 1 + math/ttmath/Makefile | 36 ++++++++++++++++++++++++++++++++++++ math/ttmath/distinfo | 3 +++ math/ttmath/pkg-descr | 5 +++++ math/ttmath/pkg-plist | 15 +++++++++++++++ 5 files changed, 60 insertions(+) diff --git a/math/Makefile b/math/Makefile index ff9aba7d274f..2e50bf157323 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1095,6 +1095,7 @@ SUBDIR += triangle SUBDIR += trlan SUBDIR += trlib + SUBDIR += ttmath SUBDIR += tvmet SUBDIR += ump SUBDIR += units diff --git a/math/ttmath/Makefile b/math/ttmath/Makefile new file mode 100644 index 000000000000..6ac908c1f139 --- /dev/null +++ b/math/ttmath/Makefile @@ -0,0 +1,36 @@ +PORTNAME= ttmath +DISTVERSION= 0.9.3.20191013 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ headers-only library for big integer and floating point numbers + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYRIGHT + +FETCH_DEPENDS= git:devel/git + +USES= cmake:testing + +NO_BUILD= yes +NO_ARCH= yes + +GIT_URL= https://gitea.ttmath.org/tomasz.sowa/ttmath.git +GIT_TAG= aad580f51e7ffc32966507a9897ec575c389e3e6 + +do-fetch: + @if [ "${FORCE_FETCH_ALL}" = "true" ] || ! [ -f "${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX}" ]; then \ + ${MKDIR} ${DISTDIR}/${DIST_SUBDIR} && \ + cd ${DISTDIR}/${DIST_SUBDIR} && \ + git clone -q ${GIT_URL} ${PORTNAME}-${DISTVERSIONFULL} && \ + (cd ${PORTNAME}-${DISTVERSIONFULL} && git reset -q --hard ${GIT_TAG} && ${RM} -r .git) && \ + ${FIND} ${PORTNAME}-${DISTVERSIONFULL} -and -exec ${TOUCH} -h -d 1970-01-01T00:00:00Z {} \; && \ + ${FIND} ${PORTNAME}-${DISTVERSIONFULL} -print0 | LC_ALL=C ${SORT} -z | \ + ${TAR} czf ${PORTNAME}-${DISTVERSIONFULL}${EXTRACT_SUFX} --format=bsdtar --gid 0 --uid 0 --options gzip:!timestamp --no-recursion --null -T - && \ + ${RM} -r ${PORTNAME}-${DISTVERSIONFULL}; \ + fi + +do-install: + @cd ${WRKSRC} && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include + +.include diff --git a/math/ttmath/distinfo b/math/ttmath/distinfo new file mode 100644 index 000000000000..a11cfa3819fd --- /dev/null +++ b/math/ttmath/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1656531839 +SHA256 (ttmath-0.9.3.20191013.tar.gz) = be79987c86f5139cf0ee6ca985412629af9631b967ee495be46065b15f04401d +SIZE (ttmath-0.9.3.20191013.tar.gz) = 2194590 diff --git a/math/ttmath/pkg-descr b/math/ttmath/pkg-descr new file mode 100644 index 000000000000..ddf268ccceed --- /dev/null +++ b/math/ttmath/pkg-descr @@ -0,0 +1,5 @@ +TTMath is a small library which allows one to perform arithmetic +operations with big unsigned integer, big signed integer and big +floating point numbers. + +WWW: https://ttmath.org diff --git a/math/ttmath/pkg-plist b/math/ttmath/pkg-plist new file mode 100644 index 000000000000..f194764b4921 --- /dev/null +++ b/math/ttmath/pkg-plist @@ -0,0 +1,15 @@ +include/ttmath/ttmath.h +include/ttmath/ttmathbig.h +include/ttmath/ttmathdec.h +include/ttmath/ttmathint.h +include/ttmath/ttmathmisc.h +include/ttmath/ttmathobjects.h +include/ttmath/ttmathparser.h +include/ttmath/ttmaththreads.h +include/ttmath/ttmathtypes.h +include/ttmath/ttmathuint.h +include/ttmath/ttmathuint_noasm.h +include/ttmath/ttmathuint_x86.h +include/ttmath/ttmathuint_x86_64.h +include/ttmath/ttmathuint_x86_64_msvc.asm +include/ttmath/win64_assemble.bat