From nobody Sun Aug 04 17:21:45 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 4WcRFQ0qV2z5SgdP; Sun, 04 Aug 2024 17:21:46 +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 4WcRFP60v9z4vpd; Sun, 4 Aug 2024 17:21:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722792105; 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=mMkAygTXfpT9U6L0OI6BhFIE4OEm5Skm2W300YXmeuo=; b=kra8QITa3y7xns0nDZQiaTR5LCFzQo1BM7CFqJ/Tb1buzt3wxSwy6cEV5OUetzH28r3ltV v04Yf6TkntSxxWkV58QhgwjNA0QGh2+zcHlXQ/a5xlVPcIi0OA5A1N3w/QYE/w2PW/myWR VbG+GFnR6HNXLqmVx7aqeq7XpcSPEiVTzYbTtNlTr1CRhv16m94Z10+2ztq+qz6OcgFpuI wYmjN7vXuBsXda6uM+avEAIneYVHgpm+gF0ugHE96d4OJOW+9pXv013tbpOgJkf9VOkCf8 YGvpOvNDZIAsGVBOhWiCTd6ncKpzpvXGCBk6x3RwexFKQM6xcL0HEyRaUnwaLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722792105; a=rsa-sha256; cv=none; b=p8auBKIrraueLK9p1mZe3CcCk96YEylhRg2RebdEfydLLi+T/oxsx29kUXQGtB1Z2GKplk aw3IP3xrwDfk+TMVNhlZd9/t0N7+0kVCC0bt/6XK3nyCvb7w/qoaEvXAdpApjJs/64fd8O X9MXLx2KzVkU9JRtO7ArGvPwAUxtEKFQXP4nzxKOGi5rins7gScVrmohqJtV8MedjJMhU/ wJ/v36lNIWryq4h/N2bzWP7xqFmUEGI/0Ddy/nIvnMXdU6uEXz3W1KzLrbHQrrg1zi4mPD M567y55KEv+HT8ul/Z/Vp8ZfVZ00bvx9x798/lEO2fz+TEa3kwKb0CqY4UfM0A== 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=1722792105; 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=mMkAygTXfpT9U6L0OI6BhFIE4OEm5Skm2W300YXmeuo=; b=NqiLdFBpE0/IrlxnsD5bWsuqt1xgoFh2BmdE4zC6ipPUBuofUVr7pISFmYHnjdMdAV7mB7 DJDhVOrSUtwrRfNX5M5y528QCiseLeYZXld5G46yhdBMLWQRgINwHk2R7yYvR77R9CU2aH 2/GI++ff3/odRgo9WyBWm8O5SiOUCfnogZ8+WLscd+MLZy/Qyoyt984eXMYt9U0RU7YfDY WMjWYqDwMQdBreNwFkBCUEvr7MSL0Cwo6f+n+OLl44GmKFa4LTmf2XtG7Tr3AWVrJI6vqf IJwyCFxkvP9PUhtCPQhxaNwTE26CDIh6+bskP0Hw0XOb5H9DzFoc7zPTZHbI8Q== 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 4WcRFP5cp8z14Cy; Sun, 4 Aug 2024 17:21:45 +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 474HLjEC059003; Sun, 4 Aug 2024 17:21:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 474HLjsc059000; Sun, 4 Aug 2024 17:21:45 GMT (envelope-from git) Date: Sun, 4 Aug 2024 17:21:45 GMT Message-Id: <202408041721.474HLjsc059000@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: a9619e5670cd - main - devel/py-xasm: Add py-xasm 1.2.0 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a9619e5670cdccaa8f9930b955a5e191cabb45a0 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a9619e5670cdccaa8f9930b955a5e191cabb45a0 commit a9619e5670cdccaa8f9930b955a5e191cabb45a0 Author: Po-Chuan Hsieh AuthorDate: 2024-08-04 16:44:05 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-08-04 17:13:52 +0000 devel/py-xasm: Add py-xasm 1.2.0 The Python xasm module has routines for assembly, and has a command to assemble bytecode for several different versions of Python. Here are some potential uses: - Make small changes to existing Python bytecode when you don't have source - Craft custom and efficient bytecode - Write an instruction-level optimizing compiler - Experiment with and learn about Python bytecode - Foil decompilers like uncompyle6 so that they can't disassemble bytecode (at least for now) This support the same kinds of bytecode that xdis supports. This is pretty much all released bytecode, although we tend to lag behind the latest Python releases. --- devel/Makefile | 1 + devel/py-xasm/Makefile | 25 +++++++++++++++++++++++++ devel/py-xasm/distinfo | 3 +++ devel/py-xasm/files/patch-____pkginfo____.py | 17 +++++++++++++++++ devel/py-xasm/pkg-descr | 14 ++++++++++++++ 5 files changed, 60 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 531922000688..8d30ff65f664 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6023,6 +6023,7 @@ SUBDIR += py-xarray SUBDIR += py-xarray-einstats SUBDIR += py-xarray-simlab + SUBDIR += py-xasm SUBDIR += py-xattr SUBDIR += py-xdg SUBDIR += py-xdis diff --git a/devel/py-xasm/Makefile b/devel/py-xasm/Makefile new file mode 100644 index 000000000000..34b250404ac4 --- /dev/null +++ b/devel/py-xasm/Makefile @@ -0,0 +1,25 @@ +PORTNAME= xasm +PORTVERSION= 1.2.0 +CATEGORIES= devel python +MASTER_SITES= PYPI \ + https://github.com/rocky/python-xasm/releases/download/${PORTVERSION}/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python cross-version byte-code assembler +WWW= https://github.com/rocky/python-xasm + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE.gpl2 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xdis>=6.0.3:devel/py-xdis@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-xasm/distinfo b/devel/py-xasm/distinfo new file mode 100644 index 000000000000..3635d0d8e558 --- /dev/null +++ b/devel/py-xasm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722711125 +SHA256 (xasm-1.2.0.tar.gz) = 800ed4d0e2b582fa85c39362ea2958020b8fe48e96d13c2f0895c7f7b1f5f81f +SIZE (xasm-1.2.0.tar.gz) = 39887 diff --git a/devel/py-xasm/files/patch-____pkginfo____.py b/devel/py-xasm/files/patch-____pkginfo____.py new file mode 100644 index 000000000000..b4e7591c79d0 --- /dev/null +++ b/devel/py-xasm/files/patch-____pkginfo____.py @@ -0,0 +1,17 @@ +--- __pkginfo__.py.orig 2021-11-07 21:37:38 UTC ++++ __pkginfo__.py +@@ -35,12 +35,12 @@ ftp_url = None + author = "Rocky Bernstein" + author_email = "rb@dustyfeet.com" + ftp_url = None +-install_requires = [_six] ++install_requires = ["xdis >= 6.0.3"] + license = "GPL-2.0" + mailing_list = "python-debugger@googlegroups.com" + modname = "xasm" + py_modules = None +-setup_requires = ["pytest-runner", "xdis >= 6.0.3, < 6.1.0"] ++setup_requires = [] + # scripts = ['bin/pydisasm'] + short_desc = "Python cross-version byte-code assembler" + tests_require = ["pytest", _six] diff --git a/devel/py-xasm/pkg-descr b/devel/py-xasm/pkg-descr new file mode 100644 index 000000000000..c6b9580c6385 --- /dev/null +++ b/devel/py-xasm/pkg-descr @@ -0,0 +1,14 @@ +The Python xasm module has routines for assembly, and has a command to assemble +bytecode for several different versions of Python. + +Here are some potential uses: +- Make small changes to existing Python bytecode when you don't have source +- Craft custom and efficient bytecode +- Write an instruction-level optimizing compiler +- Experiment with and learn about Python bytecode +- Foil decompilers like uncompyle6 so that they can't disassemble bytecode (at + least for now) + +This support the same kinds of bytecode that xdis supports. This is pretty much +all released bytecode, although we tend to lag behind the latest Python +releases.