devel/pycdc: New port: Python bytecode disassembler and decompiler

NOTE: pycdc is also known as Decompyle++.
Decompyle++ aims to translate compiled Python byte-code back into valid
and human-readable Python source code. While other projects have achieved
this with varied success, Decompyle++ is unique in that it seeks to
support byte-code from any version of Python.
Decompyle++ includes both a byte-code disassembler (pycdas) and a
decompiler (pycdc).
https://github.com/zrax/pycdc

PR:	280659
This commit is contained in:
gatekeeper
2024-08-07 02:59:19 +03:00
committed by Vladimir Druzenko
parent 733203af7d
commit 3b5336de74
3 changed files with 40 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
PORTNAME= pycdc
DISTVERSION= g20240806
CATEGORIES= devel
MAINTAINER= tiago.gasiba@gmail.com
COMMENT= Python bytecode disassembler and decompiler
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bash:shells/bash
USES= cmake shebangfix
USE_GITHUB= yes
GH_ACCOUNT= zrax
GH_TAGNAME= 48d1bfa
SHEBANG_FILES= tests/all_tests.sh \
tests/decompyle_test.sh
PLIST_FILES= bin/pycdas \
bin/pycdc
do-test:
cd ${BUILD_WRKSRC} && ninja check
.include <bsd.port.mk>
+3
View File
@@ -0,0 +1,3 @@
TIMESTAMP = 1722986793
SHA256 (zrax-pycdc-g20240806-48d1bfa_GH0.tar.gz) = 9cf11b5ed82f0527335bd83eb08f1c74c82430fa909d7168d9aabda651ab2d2a
SIZE (zrax-pycdc-g20240806-48d1bfa_GH0.tar.gz) = 365803
+9
View File
@@ -0,0 +1,9 @@
NOTE: pycdc is also known as Decompyle++
Decompyle++ aims to translate compiled Python byte-code back into valid
and human-readable Python source code. While other projects have achieved
this with varied success, Decompyle++ is unique in that it seeks to
support byte-code from any version of Python.
Decompyle++ includes both a byte-code disassembler (pycdas) and a
decompiler (pycdc).