From nobody Wed Aug 16 00:26:15 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 4RQTT40tRZz4mR8p; Wed, 16 Aug 2023 00:26:16 +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 4RQTT40Hs1z4X1n; Wed, 16 Aug 2023 00:26:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692145576; 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=MM/tZjKZVFVM2U42wb/4nFzU8XYeK3X74GDn32zPa5U=; b=Cv+CVl7Hn8xaH6L5foa7/lM67IDUZes7UeGP7TgUdXV/QBdRzB5f0x7VOa6j0nqnZXRKh2 3QbZP4PD/n9H2xmxwTllk3BLe0nT6Eu5OVyz48DV9Ex3AYIFVOVHt1/SjcXJe+XAwjjXAK jznuJK9tCAuCgNLeo8WUjAtCcs+xcvHuXksx0YC/3FiL7IptiIcJXQ+W8EdVUj/76gWeLr zFidvWdz3JQZO6gId9WFpB6Z+tM9Gv2EW9BHAvh/iOHifDbFiB7pjZDVxrv43yv12xUuhA mxB2V7RTV24xvfvMkI58+NArd/YNdMb6kZEFj1pR7nFrLLX8jSB+7Iyws8OkDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692145576; 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=MM/tZjKZVFVM2U42wb/4nFzU8XYeK3X74GDn32zPa5U=; b=ffBETKJLeolRbRagssbb2CiVcIzGjElp/vnuSomwDCOiaYSpg/4eAZS1sLiMsfZ5n+DmgP 4eRmQ+9bYI3NEkCRlb26kqIyatrDoFO9ENpzIILq1Xxbt4oLAaPJxccYtNiXtSxHvhzHas KSO7QT0A+S3r1nt15YDmiJIS0w9bnuCNaB2j/GscBliWz/Dn8grwyDdGXDKBppqe1sYmMA +pEl0/PuAB7IM9G6spCBPYDDbm13ktjPuAhB1QlB4YmWf7Zk7GnJXmac3JlDVamUv2ezIM ++hJXuZWUsysvR236XhNpv6nTJyhcJVfBoQsrDHqhGzAzbd0FnVRVvYLQNrakw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692145576; a=rsa-sha256; cv=none; b=ns5314tjS7eYBYFJKBl3XHRYYRaztKtkDmfyCH4bK03zTY5yuwwztW3Q2ye3UpDHsSdVXP MoaFSMfLYlKHu8qqvW1gaxHLfcIVmMX40Np5B8Z0AlBe3lsg8qG4ATXm62Y7btnUIiQtM3 7up1jJ993DmI0pfBHzEw2kogjwPmzRBmhxHj7+MSRB3CFD9fg3ms9rKVeq0yPz2UX7frA6 oN5Dif0BUewMc0iL0mLJeTMaEerlm8Pu4E+/PJcrEpOLbaqDZvGRiMmPBJW9ZPhf1R505Z 0YYl5VZ7S/uRnZngSLcqb0TRf8/kZu7C09FwNGmGy/1qYIC6oN/nwDdB6LcI9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RQTT36TRtzX5l; Wed, 16 Aug 2023 00:26:15 +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 37G0QFT6008028; Wed, 16 Aug 2023 00:26:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37G0QFOJ008025; Wed, 16 Aug 2023 00:26:15 GMT (envelope-from git) Date: Wed, 16 Aug 2023 00:26:15 GMT Message-Id: <202308160026.37G0QFOJ008025@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: bfaa9b92afdc - main - math/py-mnnpy: Make march compiler argument depend on CPUTYPE 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bfaa9b92afdc9275aec98f145b2e731865fa6ecd Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=bfaa9b92afdc9275aec98f145b2e731865fa6ecd commit bfaa9b92afdc9275aec98f145b2e731865fa6ecd Author: Yuri Victorovich AuthorDate: 2023-08-16 00:25:16 +0000 Commit: Yuri Victorovich CommitDate: 2023-08-16 00:26:13 +0000 math/py-mnnpy: Make march compiler argument depend on CPUTYPE Reported by: fallout --- math/py-mnnpy/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/math/py-mnnpy/Makefile b/math/py-mnnpy/Makefile index adf1fd1e9a0b..30ff2a05ed11 100644 --- a/math/py-mnnpy/Makefile +++ b/math/py-mnnpy/Makefile @@ -1,5 +1,6 @@ PORTNAME= mnnpy DISTVERSION= 0.1.9.5 +PORTREVISION= 1 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -22,6 +23,13 @@ RUN_DEPENDS= ${PY_DEPENDS} USES= python USE_PYTHON= distutils cython autoplist +post-patch: +.if defined(CPUTYPE) + @${REINPLACE_CMD} -e "s|'-march=native'|'-march=${CPUTYPE}'|" ${WRKSRC}/setup.py +.else + @${REINPLACE_CMD} -e "s|'-march=native', ||" ${WRKSRC}/setup.py +.endif + post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/mnnpy/_utils.cpython-39.so