commit:     a22f5ae48a22b97d986e2939eaeea3a08c57c57a
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Thu Oct 16 17:43:51 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 16 19:03:17 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a22f5ae4

dev-util/pwntools: add 4.15.0

Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Part-of: https://github.com/gentoo/gentoo/pull/44207
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/pwntools/Manifest               |  1 +
 dev-util/pwntools/pwntools-4.15.0.ebuild | 72 ++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-util/pwntools/Manifest b/dev-util/pwntools/Manifest
index d5608bff897f..857059bf4e89 100644
--- a/dev-util/pwntools/Manifest
+++ b/dev-util/pwntools/Manifest
@@ -1,4 +1,5 @@
 DIST pwntools-4.13.1.gh.tar.gz 4388789 BLAKE2B 
e7f83e877f4f5b870bc7d2036d22746d997877c9de6bb76bf21010c6c5052d617670424d6a347455547085d385a165b7d00ca5c16b9789817690e5b128ba66d9
 SHA512 
9906b1f3abb747316ec2f6ce8ed23030a580ec07206ca1662f44eb9153be5d65bdfc4b9594778f6521be40e48acd48e2b6a83d4818161e2cc2eaae5ebeae7160
 DIST pwntools-4.14.0.gh.tar.gz 4423992 BLAKE2B 
3b8eaad79947aac1da127f472f2ad32add81ef7c6493e50616206dba5ff0bd1383a06c89834ca2b8eb2fb18529a76fcd44fa1e72322cd728c21f46a58ea42111
 SHA512 
beab86689aa8c7b4b19c299ae0a3825153ddc2364adbc2208998de27fe6ceb6127578fdb7f4c767b1f54598e61cd3340a41e6785b1dacfe1b383ce33cc13e7a2
 DIST pwntools-4.14.1.gh.tar.gz 4425632 BLAKE2B 
2fc71e90da29318871594918af943b2b1b6959f1cb9d28ec18cc41ccd2bfa28af092e8de70c1a02f59f04e28ed546987fb5428dbdfa25c437da6e032c181d051
 SHA512 
f946f878d26edb0736faf7cb47420202b9a3c48eaa3866617aa56f009f0a4e25aecb7741c6ed2b724f3abaea2f9b0cf3c5cbc8bc086aa141871d9b39de7aaab3
+DIST pwntools-4.15.0.gh.tar.gz 4441348 BLAKE2B 
4965df904514e4e77f7219f813a23d55c6ffe5d1b3168140a4af43cb74bf4f74401d0b246d77464284247bf09cef253324be6c87c815ecec269ebc37295f3bee
 SHA512 
ef7e41193fecbaf6f435ad6df6459895238fcf9670b87f8389f4bd15b0eded9999d8fe82d60ea84ec1bc6d15207434514f17b13891a0cc2e32710fc25fec5df5
 DIST pwntools-4.15.0_beta1.gh.tar.gz 4437659 BLAKE2B 
f089b4b3ec55d15a7b3a3c304b84da474d40eb9f2affd09676ffbafe09eb36f1d4a4b046f1b6bf74190f8dd4a3850021c254335e54bed86b9b4947ca0dd0c7ce
 SHA512 
66dbf3b6706ad51740c5ea7bb01221a7d9bb7e251b5e2533aee5fd965a5667a8ecd61ed5fae765e628e7130dbb3afde4d8a46058a512bd4bc6dcde48a98551ff

diff --git a/dev-util/pwntools/pwntools-4.15.0.ebuild 
b/dev-util/pwntools/pwntools-4.15.0.ebuild
new file mode 100644
index 000000000000..77feeb15da36
--- /dev/null
+++ b/dev-util/pwntools/pwntools-4.15.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 shell-completion
+
+DESCRIPTION="CTF framework and exploit development library"
+HOMEPAGE="https://github.com/Gallopsled/pwntools";
+
+if [[ ${PV} == "9999" ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/Gallopsled/pwntools.git";
+else
+       
SRC_URI="https://github.com/Gallopsled/pwntools/archive/${PV/_beta/beta}.tar.gz 
-> ${P}.gh.tar.gz"
+       if [[ ${PV} != *_beta* ]] ; then
+               KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+       fi
+       S="${WORKDIR}/${PN}-${PV/_beta/beta}"
+fi
+
+LICENSE="MIT GPL-2+ BSD-2"
+SLOT="0"
+
+RDEPEND="
+       ${PYTHON_DEPS}
+       >=dev-libs/capstone-3.0.5[python,${PYTHON_USEDEP}]
+       >=dev-util/ROPgadget-5.3[${PYTHON_USEDEP}]
+       >=dev-util/unicorn-1.0.2[python,${PYTHON_USEDEP}]
+       !=dev-util/unicorn-2.1.4-r0[python,${PYTHON_USEDEP}]
+       dev-python/colored-traceback[${PYTHON_USEDEP}]
+       >=dev-python/intervaltree-3.0[${PYTHON_USEDEP}]
+       >=dev-python/mako-1.0.0[${PYTHON_USEDEP}]
+       dev-python/packaging[${PYTHON_USEDEP}]
+       >=dev-python/paramiko-1.15.2[${PYTHON_USEDEP}]
+       >=dev-python/psutil-3.3.0[${PYTHON_USEDEP}]
+       >=dev-python/pyelftools-0.29[${PYTHON_USEDEP}]
+       >=dev-python/pygments-2.0[${PYTHON_USEDEP}]
+       >=dev-python/pyserial-2.7[${PYTHON_USEDEP}]
+       dev-python/pysocks[${PYTHON_USEDEP}]
+       dev-python/python-dateutil[${PYTHON_USEDEP}]
+       >=dev-python/requests-2.0[${PYTHON_USEDEP}]
+       dev-python/rpyc[${PYTHON_USEDEP}]
+       >=dev-python/six-1.12.0[${PYTHON_USEDEP}]
+       dev-python/sortedcontainers[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-4.11.0_update_deps.patch"
+)
+
+python_configure_all() {
+       DISTUTILS_ARGS=(
+               --only-use-pwn-command
+       )
+}
+
+src_install() {
+       distutils-r1_src_install
+
+       newbashcomp extra/bash_completion.d/pwn pwn
+       newbashcomp extra/bash_completion.d/shellcraft shellcraft
+       newzshcomp extra/zsh_completion/_pwn _pwn
+
+       # Disable automatic update check (bug 915496).
+       insinto /etc
+       doins "${FILESDIR}/pwn.conf"
+
+       rm -r "${ED}/usr/pwntools-doc" || die
+}

Reply via email to