ports/devel/py-xasm/Makefile
Po-Chuan Hsieh a9619e5670
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.
2024-08-05 01:13:52 +08:00

25 lines
764 B
Makefile

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 <bsd.port.mk>