From nobody Sun Jul 21 08:49:19 2024 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 4WRcXb33Lbz5R4LQ; Sun, 21 Jul 2024 08:49:19 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WRcXb2K7gz4kcx; Sun, 21 Jul 2024 08:49:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721551759; 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=HYNhOL3vsvy4T65cr9y5hfPrkFkoEqMFuZWikrgnZN4=; b=HnhqpTSNb6GWX/sTvoWNH7Nv5MJfg0Y/7EjyxqhR46VXRNqUjSQ3VTKiB/iRfMCsJAoPgj HCQSdernk4OT+m7UtAoW/vHeRJ6ojrgVdPw6kGPUAQ34EEwKTO/nTzD/LSOiUdc1vbQ/ix +5r+Y3qxOdsKPMT64l/gZSCkPN1eBwO4v86nuDoi7J/n/0ebf/eEWAquB+qF6aT+VupxUo JZiJeC01Eba/HFni+7nlRkV8qayncwH7VVHk4mILHWCWdXrepRgrdPCM9ErbY6aml/Usvh OsoIh0u0LEG9cGkpe4XX+CXbwCnPKNDrgADLFWEQEKRSnC36w1bOfhLhiPwXKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721551759; a=rsa-sha256; cv=none; b=oqDN+k6/ae4igWiq4hNmOT4YBCCLe98sh/I6kyl65vU+7e3solLmoisPFPBYX9xbXLO4Pg UYJvv20385C4seqdyQw2vhWkJ1LY/yr8KpvX5rPmMXGNUbsfZouAckzwLHDmzPGqWDqmmH LXAG9zciZ1iQDVi+TzDynoPSlaFaL/C15NuZTGV/zkHUQBjc/AZ11CUrWmoZnmJGAnAGVJ tmGHK+uhx49++Sy/AfKquAWXlcK1brSNcbpK73kalqr/WtxLcLTWkvO+QtfTS+Ia/8dBaG 5Twrg6s2R+D0v28tIGhR3X9sdEnDgvcRKzhCB/gtroqi7faSOa5iY2mQxKTQiQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721551759; 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=HYNhOL3vsvy4T65cr9y5hfPrkFkoEqMFuZWikrgnZN4=; b=GU+9YX6ke20cc7TegdBz0aBHtEwI/YvK9OyA+cWvmJ+QGi9Qxtz5uYdF9gYZA6gFhRUsIj 9oiTgekucuLspaBvmvpbAiD2nZj0FoXWJx0+l5xgz7RqtQCOHVualKXhlpJLGQs+R14pSe krfEEgASEyTCjkwN14ZB/jGqLhuljg7O4OBLnMmze6fB+P8SFQzH4JXKFwlE6vW2MW92+A HYVh7fim/Z9KapgT6I5M5s2aYBEcVdBrcqCTlj6b5S3j6Jtp/p2TXbMmgqcLXtv8x0FEGc a/pjcmtOpMeUz9xhJ3zI7g+P/kGmAXBcz11HUPmbwHkoZiZ8XX8oL/j4xYlcOQ== 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 4WRcXb1qQ1ztRq; Sun, 21 Jul 2024 08:49:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46L8nJl0057828; Sun, 21 Jul 2024 08:49:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46L8nJNE057825; Sun, 21 Jul 2024 08:49:19 GMT (envelope-from git) Date: Sun, 21 Jul 2024 08:49:19 GMT Message-Id: <202407210849.46L8nJNE057825@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: 8ba5333df123 - main - misc/py-natten: New port: Neighborhood Attention Extension 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-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: 8ba5333df123e9b774e77aafaced6a7f09fa20c0 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8ba5333df123e9b774e77aafaced6a7f09fa20c0 commit 8ba5333df123e9b774e77aafaced6a7f09fa20c0 Author: Yuri Victorovich AuthorDate: 2024-07-21 07:05:23 +0000 Commit: Yuri Victorovich CommitDate: 2024-07-21 08:49:13 +0000 misc/py-natten: New port: Neighborhood Attention Extension --- misc/Makefile | 1 + misc/py-natten/Makefile | 35 +++++++++++++++++++++++++++++++++++ misc/py-natten/distinfo | 3 +++ misc/py-natten/pkg-descr | 2 ++ 4 files changed, 41 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 50c996620935..b926b4a3282d 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -454,6 +454,7 @@ SUBDIR += py-mmsegmentation SUBDIR += py-molequeue SUBDIR += py-mxnet + SUBDIR += py-natten SUBDIR += py-npTDMS SUBDIR += py-numcodecs SUBDIR += py-onnx diff --git a/misc/py-natten/Makefile b/misc/py-natten/Makefile new file mode 100644 index 000000000000..7204fcc70488 --- /dev/null +++ b/misc/py-natten/Makefile @@ -0,0 +1,35 @@ +PORTNAME= natten +DISTVERSION= 0.17.1 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Neighborhood Attention Extension +WWW= https://shi-labs.com/natten/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= cmake:devel/cmake-core \ + pybind11>0:devel/pybind11 \ + ${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR} +LIB_DEPENDS= libabsl_str_format_internal.so:devel/abseil \ + libprotobuf.so:devel/protobuf +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytorch>=2.0.0:misc/py-pytorch@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist + +post-install: + # strip binary + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/natten/libnatten${PYTHON_EXT_SUFFIX}.so + # delete stray files, see https://github.com/SHI-Labs/NATTEN/issues/152 + @${RM} -r \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/CMakeFiles \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/CMakeCache.txt \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/cmake_install.cmake \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/Makefile + +.include diff --git a/misc/py-natten/distinfo b/misc/py-natten/distinfo new file mode 100644 index 000000000000..55316d7ac669 --- /dev/null +++ b/misc/py-natten/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1721530370 +SHA256 (natten-0.17.1.tar.gz) = a2142722faa41fa3ae6d22e91ed527b2a6da5c4fe09a006f36d68edccaf9c643 +SIZE (natten-0.17.1.tar.gz) = 10848470 diff --git a/misc/py-natten/pkg-descr b/misc/py-natten/pkg-descr new file mode 100644 index 000000000000..f23cf2ed757a --- /dev/null +++ b/misc/py-natten/pkg-descr @@ -0,0 +1,2 @@ +NATTEN is an open-source project dedicated to providing fast implementations +for Neighborhood Attention, a sliding window self-attention mechanism.