From nobody Wed Aug 07 00:15:53 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 4WdrLK5cWqz5SCyv; Wed, 07 Aug 2024 00:15:53 +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 4WdrLK50c5z4sDv; Wed, 7 Aug 2024 00:15:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722989753; 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=V4ktnFMh9VgL5xSepVrZ0f1h/pmbQaOZFwrfZpj8N7g=; b=joIPbPTW+Fe+Ss4wPZZ7mtKcdnir0VdHVIuJ3MvN5msmhTPwrSIhs466WQkgRjQhbwaONN lbsDZH2tqlMFiUByGrZzHfY8GiOwGBB0dPCcd1PLLghC9Y/RKpfM35eNmKPNdsx/lkarv6 qng7ohgCwLrVXuHQxkssa664vzqAgxaOZaEF6ofGLpTVFkS0LLE3ROthGmzvjNCaaUaey5 drxrXEtM2g9KXkoIlAnCmyxFviEYyRr7jk9riGGRKSEnSfoDVrXUq+rFqsqdFLLTJ7HCDm meaApctvaAMJBYcKI3YZqKCaAta/eCz8VxJqDLSrbtFakSf8Y+6J4cF11rmbfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722989753; a=rsa-sha256; cv=none; b=AgFbzyVPWg77GnUw9ZGbIeYNENSL0ez3IRFBtXvXJ7fhVfTiHancXQVXh5NzIzwYUFBR2L vH+NvimUglcfz/l5VS3ByCjF6icnBccoVWftDfP73BHOtxjHPwOTeV9BINjBgHgg+0Zx3s vtnOpXy+66urcL+uFUzyrPujLAsCiR+BXd5umVNKt9dPBTKW2TggAsa3NfeLZ/6j7/vhJv 5T0SlX+bMypHpiIW50KAFex2njsRo/+Ch6FsaLNWeauK1Mt8kCPyyVshvae9xOf5UuK9gh fEMe61Z9/Wv8ddDYvSad8BSaDRB+55E1htnsodEq1X+QH4NzVVA0dyVAk6ZgGg== 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=1722989753; 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=V4ktnFMh9VgL5xSepVrZ0f1h/pmbQaOZFwrfZpj8N7g=; b=sfLidbf+4txlg6UwcRywQh7ITYJ7uteoiZ/7Qyw23bqi0n7/R9S2R+ICkqhlVLirS95ibb KQvBl95dRKTEcdw9pxcJKZlCJyt6miz8tAiNOY/VHa2QZxInSzIntq07ItBgxRsqXOz1uM a4K+v3qlCH+7iGUsxUmhyQOqMq5fld3YFFP+V14sFdYY9eUYshAUI/oP7eZxLA+KEVKrab EUbgZ4RtjXqol3oCNEa6VCh4d2+JsGXn4pbqHngz/YNHntmcbGPaXO/blRVZ06qMym2a2J 2oE4tjsDoZDoRJtUjepfOZLac4ky1RkuLP2MpwH7pSF2Ap9K9APMz1duMZKPmQ== 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 4WdrLK4XG7zSfR; Wed, 7 Aug 2024 00:15:53 +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 4770Frdv056243; Wed, 7 Aug 2024 00:15:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4770FrKL056240; Wed, 7 Aug 2024 00:15:53 GMT (envelope-from git) Date: Wed, 7 Aug 2024 00:15:53 GMT Message-Id: <202408070015.4770FrKL056240@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: 3b5336de74e5 - main - devel/pycdc: New port: Python bytecode disassembler and decompiler 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: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3b5336de74e52f5e2ac15fa8def3cfdfcd61b3e3 Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=3b5336de74e52f5e2ac15fa8def3cfdfcd61b3e3 commit 3b5336de74e52f5e2ac15fa8def3cfdfcd61b3e3 Author: gatekeeper AuthorDate: 2024-08-06 23:59:19 +0000 Commit: Vladimir Druzenko CommitDate: 2024-08-06 23:59:19 +0000 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 --- devel/pycdc/Makefile | 28 ++++++++++++++++++++++++++++ devel/pycdc/distinfo | 3 +++ devel/pycdc/pkg-descr | 9 +++++++++ 3 files changed, 40 insertions(+) diff --git a/devel/pycdc/Makefile b/devel/pycdc/Makefile new file mode 100644 index 000000000000..60896dd85286 --- /dev/null +++ b/devel/pycdc/Makefile @@ -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 diff --git a/devel/pycdc/distinfo b/devel/pycdc/distinfo new file mode 100644 index 000000000000..35160a485abc --- /dev/null +++ b/devel/pycdc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722986793 +SHA256 (zrax-pycdc-g20240806-48d1bfa_GH0.tar.gz) = 9cf11b5ed82f0527335bd83eb08f1c74c82430fa909d7168d9aabda651ab2d2a +SIZE (zrax-pycdc-g20240806-48d1bfa_GH0.tar.gz) = 365803 diff --git a/devel/pycdc/pkg-descr b/devel/pycdc/pkg-descr new file mode 100644 index 000000000000..595d306fc9bb --- /dev/null +++ b/devel/pycdc/pkg-descr @@ -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).