svn commit: r459594 - in head/devel: . py-xdis

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Jan 21 11:55:54 UTC 2018


Author: sunpoet
Date: Sun Jan 21 11:55:51 2018
New Revision: 459594
URL: https://svnweb.freebsd.org/changeset/ports/459594

Log:
  Add py-xdis 3.6.6
  
  The Python dis module allows you to disassemble bytecode from the same version
  of Python that you are running on. But what about bytecode from different
  versions?
  
  That's what this package is for. It can "marshal load" Python bytecodes from
  different versions of Python. The command-line routine pydisasm will show
  disassembly output using Python 3.6 disassembly conventions.
  
  Also, if you need to modfiy and write bytecode, the routines here can be of
  help. There are routines to pack and unpack the read-only tuples in Python's
  Code type. For interoperability between Python 2 and 3 we provide our own
  versions of the Code type, and we provide routines to reduce the tedium in
  writing a bytecode file.
  
  This package also has an extensive knowledge of Python bytecode magic numbers,
  including Pypy and others, and how to translate from sys_info major, minor, and
  release numbers to the corresponding magic value.
  
  So If you want to write a cross-version assembler, or an bytecode-level
  optimizer this package may also be useful. In addition to the kinds of
  instruction categorization that dis offers, we have additional categories for
  things that would be useful in such a bytecode optimizer.
  
  WWW: https://pypi.python.org/pypi/xdis

Added:
  head/devel/py-xdis/
  head/devel/py-xdis/Makefile   (contents, props changed)
  head/devel/py-xdis/distinfo   (contents, props changed)
  head/devel/py-xdis/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Jan 21 11:55:37 2018	(r459593)
+++ head/devel/Makefile	Sun Jan 21 11:55:51 2018	(r459594)
@@ -5003,6 +5003,7 @@
     SUBDIR += py-xattr
     SUBDIR += py-xcaplib
     SUBDIR += py-xdg
+    SUBDIR += py-xdis
     SUBDIR += py-xerox
     SUBDIR += py-xmltodict
     SUBDIR += py-xoltar-toolkit

Added: head/devel/py-xdis/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-xdis/Makefile	Sun Jan 21 11:55:51 2018	(r459594)
@@ -0,0 +1,27 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	xdis
+PORTVERSION=	3.6.6
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet at FreeBSD.org
+COMMENT=	Cross-Python bytecode Disassembler and Marshal routines
+
+LICENSE=	GPLv2 MIT
+LICENSE_COMB=	dual
+LICENSE_FILE_GPLv2=	${WRKSRC}/LICENSE.gpl2
+LICENSE_FILE_MIT=	${WRKSRC}/LICENSE.mit
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${FLAVOR}
+
+NO_ARCH=	yes
+USE_PYTHON=	autoplist concurrent distutils
+USES=		python
+
+.include <bsd.port.mk>

Added: head/devel/py-xdis/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-xdis/distinfo	Sun Jan 21 11:55:51 2018	(r459594)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1516473656
+SHA256 (xdis-3.6.6.tar.gz) = 6d9d099cd1f6ba6bf9739efa7965e9ae3a36c71fdf5870b1b314a04e76cda377
+SIZE (xdis-3.6.6.tar.gz) = 167430

Added: head/devel/py-xdis/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-xdis/pkg-descr	Sun Jan 21 11:55:51 2018	(r459594)
@@ -0,0 +1,24 @@
+The Python dis module allows you to disassemble bytecode from the same version
+of Python that you are running on. But what about bytecode from different
+versions?
+
+That's what this package is for. It can "marshal load" Python bytecodes from
+different versions of Python. The command-line routine pydisasm will show
+disassembly output using Python 3.6 disassembly conventions.
+
+Also, if you need to modfiy and write bytecode, the routines here can be of
+help. There are routines to pack and unpack the read-only tuples in Python's
+Code type. For interoperability between Python 2 and 3 we provide our own
+versions of the Code type, and we provide routines to reduce the tedium in
+writing a bytecode file.
+
+This package also has an extensive knowledge of Python bytecode magic numbers,
+including Pypy and others, and how to translate from sys_info major, minor, and
+release numbers to the corresponding magic value.
+
+So If you want to write a cross-version assembler, or an bytecode-level
+optimizer this package may also be useful. In addition to the kinds of
+instruction categorization that dis offers, we have additional categories for
+things that would be useful in such a bytecode optimizer.
+
+WWW: https://pypi.python.org/pypi/xdis


More information about the svn-ports-all mailing list