From nobody Sat Oct 29 04:42:12 2022 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 4Mzmwj1zrWz4gvTr; Sat, 29 Oct 2022 04:42:13 +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 4Mzmwj1HYLz3vHP; Sat, 29 Oct 2022 04:42:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667018533; 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=L1/za6ER5hlZIIdXi+PPcIHXW5RfrYoQbvV0dkkMS/0=; b=O0FmS+8luQ3exISRz46h2tV7lx8ybnOMmxhtOQghKD9mfoIdKaT+yF4Nwwb8rZR83VXKqQ PoeAYlrAHvVrwrkQA8d7cyLcQcWJs2arjCPa8KoRq8h01KaFTLb484A1Dw6Q1YZhSsJ9CY GASlpv8VK2CBxNraBKWkFbezL+v3lp8eRzRkYUkZ86jttcfx2JrpywoxlvMoCSqLTayrI3 f0T4qacre/RtTQf2r4JLkFp+lqqbWM6mCYrRaWwXB1ARyiVHN33kTrv/rnDSLcjY1IaCsb PhSN6Sy78j49vbBMKNr++XUa8ZaDa+iN8VxdBEmFDHprCseJct668UEmRSGpzg== 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 4Mzmwj0M4Lz14SV; Sat, 29 Oct 2022 04:42:13 +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 29T4gCV0073070; Sat, 29 Oct 2022 04:42:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29T4gC49073069; Sat, 29 Oct 2022 04:42:12 GMT (envelope-from git) Date: Sat, 29 Oct 2022 04:42:12 GMT Message-Id: <202210290442.29T4gC49073069@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yasuhiro Kimura Subject: git: 92a479b4b1dc - main - math/tomsfastmath: Miscellaneous refinements 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: yasu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 92a479b4b1dc14be648e2071ca9d84d2334cd4c0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667018533; 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=L1/za6ER5hlZIIdXi+PPcIHXW5RfrYoQbvV0dkkMS/0=; b=fwAWvcVpXHDe/NvEDzYGrVH4a3kCLJ4rWaY3g9I4Tbva8y4LB1lqPQQElZM+p41tCHHDg7 nwAZTOQhdO+27j1Cfr2uS5+m0n8QaWx4DZfJJu2PDAZDSqW3MGYrfIhQZUocvcGviigs/e YgECAzFLqS2+g/d9q49zSdgphES8Upk7YSQVfLSvkqssrCTX5XbQLfx9CP3lfDcMsJ+z/W ihaovbkhLVTDsUzzchWl/oyn++fofD/8M4ECU383ICZhk7yIdp53huqzKLPobACh36ffru tufPRMWlm3BfNI272+243uG+F0INAAzf9IpHxtu6zVugOKuHpbNAY1Xa8eYPug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667018533; a=rsa-sha256; cv=none; b=G2iGnPm6gIEaMUTbGQBMA3hY1dLp3yQxcfXY3V2xb4XgbTJy8rwR7iNe/xcPWG0QQ5i/2f y67IWZfq0mUL1dQ2R9gnj2A6tzMtja/UfPLm/vfajlzZ3fqsx6OjgMUw1UO3eIY3ABAS/A DX35p04IN28W8ThbAAcAAPL2TzxKjJcD1zlFs8dr/UmqWzgChcsSiiQa82Re18kYEoqXZs YbU8X69jFsXiNhYUA9rQQEgdRloPjGYEAcqMYpT7DMUmGTYJL+mrGbmJDUV1OEAyqyhFD7 Vw61kIURrsI9YG7AEjadiZfJsm/9xnZVGPC4R7xySkLv5YfZoPl0NK0GNMMLcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=92a479b4b1dc14be648e2071ca9d84d2334cd4c0 commit 92a479b4b1dc14be648e2071ca9d84d2334cd4c0 Author: Yasuhiro Kimura AuthorDate: 2022-10-28 14:50:22 +0000 Commit: Yasuhiro Kimura CommitDate: 2022-10-29 04:41:13 +0000 math/tomsfastmath: Miscellaneous refinements * Use Clang on i386. Build succeeds with all supported FreeBSD versions. * Switch to use release archive as per section 5.4.3 of Porter's Handbook. * Remove post-patch target. It is no-op now as version 0.13.1 doesn't use "%cc" in inline assembly codes any more. * Add LICENSE_FILE. * Tidy up Makefile with portfmt. --- math/tomsfastmath/Makefile | 28 ++++++++-------------------- math/tomsfastmath/distinfo | 6 +++--- 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/math/tomsfastmath/Makefile b/math/tomsfastmath/Makefile index bb83b086b2d9..35c74ea974f4 100644 --- a/math/tomsfastmath/Makefile +++ b/math/tomsfastmath/Makefile @@ -1,8 +1,9 @@ PORTNAME= tomsfastmath PORTVERSION= 0.13.1 PORTREVISION= 4 -DISTVERSIONPREFIX= v CATEGORIES= math +MASTER_SITES= https://github.com/libtom/${PORTNAME}/releases/download/v${DISTVERSION}/ +DISTNAME= tfm-${DISTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Portable fixed precision math library for fast exponentiations @@ -10,34 +11,21 @@ WWW= https://libtom.net/ LICENSE= PD WTFPL LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE -USES= compiler:features gmake tar:bzip2 -USE_GITHUB= yes -GH_ACCOUNT= libtom +USES= gmake tar:xz MAKEFILE= makefile ALL_TARGET= default CFLAGS+= -fPIC -PLIST_FILES= include/tfm.h lib/libtfm.a +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} -.include - -.if ${ARCH} == i386 -# on clang: -# src/mul/fp_mul_comba.c:349:11: error: inline assembly requires more registers than available -USE_GCC= yes -.endif - -# Unbreak against Clang ("cc" is not a register) -post-patch: - @${REINPLACE_CMD} -e 's,"%cc","cc",' \ - ${WRKSRC}/src/mont/fp_montgomery_reduce.c \ - ${WRKSRC}/src/mul/fp_mul_comba.c \ - ${WRKSRC}/src/sqr/fp_sqr_comba.c +PLIST_FILES= include/tfm.h \ + lib/libtfm.a do-install: ${INSTALL_DATA} ${WRKSRC}/src/headers/tfm.h ${STAGEDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/libtfm.a ${STAGEDIR}${PREFIX}/lib -.include +.include diff --git a/math/tomsfastmath/distinfo b/math/tomsfastmath/distinfo index 413043cfbd75..b04b956f4630 100644 --- a/math/tomsfastmath/distinfo +++ b/math/tomsfastmath/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1506584765 -SHA256 (libtom-tomsfastmath-v0.13.1_GH0.tar.gz) = 207e8624382e815f58bc5c3d4aad725d94588a6cc465d34634e6533dcaae2e0d -SIZE (libtom-tomsfastmath-v0.13.1_GH0.tar.gz) = 421999 +TIMESTAMP = 1667000946 +SHA256 (tfm-0.13.1.tar.xz) = 47c97a1ada3ccc9fcbd2a8a922d5859a84b4ba53778c84c1d509c1a955ac1738 +SIZE (tfm-0.13.1.tar.xz) = 322684