commit:     f544be29bf9b7311e422526fe5f3547c9c072b2c
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Tue Mar 25 21:08:55 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 28 15:20:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f544be29

dev-util/pwntools: add 4.15.0_beta1

Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/dev-util/pwntools/Manifest b/dev-util/pwntools/Manifest
index 8c728a4dbf6f..0b9dcebac3e7 100644
--- a/dev-util/pwntools/Manifest
+++ b/dev-util/pwntools/Manifest
@@ -3,3 +3,4 @@ DIST pwntools-4.14.0.gh.tar.gz 4423992 BLAKE2B 
3b8eaad79947aac1da127f472f2ad32ad
 DIST pwntools-4.14.0_beta1.gh.tar.gz 4423427 BLAKE2B 
e5240782f90098582342068296e0ce2fa3f8ba1f9600d273a8d83afca3ac95ba7fcef67e07c80044d4553a67a771d22f463caefef15bdca0f6f53db5cae87cc7
 SHA512 
b35ad15071633966637e5c9f45d4c0c0b897c1df946c2877a9c163ad041eb7da0203003615ae7d4aa2c8d3c558dd1b538e97d75e052ea864f0e6d8af20f33b1e
 DIST pwntools-4.14.1.gh.tar.gz 4425632 BLAKE2B 
2fc71e90da29318871594918af943b2b1b6959f1cb9d28ec18cc41ccd2bfa28af092e8de70c1a02f59f04e28ed546987fb5428dbdfa25c437da6e032c181d051
 SHA512 
f946f878d26edb0736faf7cb47420202b9a3c48eaa3866617aa56f009f0a4e25aecb7741c6ed2b724f3abaea2f9b0cf3c5cbc8bc086aa141871d9b39de7aaab3
 DIST pwntools-4.15.0_beta0.gh.tar.gz 4437712 BLAKE2B 
2d519c4f6e70a91e5abc60d8741f8331846cb14392e8775dfc9e8068aa28100856b3501255e57d44d4fb6dad49d9b629ca484e17677b00b4b394f0c713ba187b
 SHA512 
a60b8bbde885609e63245507be6f23020821bc3f2f50eb34a388af5f794967c2d6b5f438c413131d2c50c6e645cd3ee7e81dd8e3851ecadd5f7645485255ec4c
+DIST pwntools-4.15.0_beta1.gh.tar.gz 4437659 BLAKE2B 
f089b4b3ec55d15a7b3a3c304b84da474d40eb9f2affd09676ffbafe09eb36f1d4a4b046f1b6bf74190f8dd4a3850021c254335e54bed86b9b4947ca0dd0c7ce
 SHA512 
66dbf3b6706ad51740c5ea7bb01221a7d9bb7e251b5e2533aee5fd965a5667a8ecd61ed5fae765e628e7130dbb3afde4d8a46058a512bd4bc6dcde48a98551ff

diff --git a/dev-util/pwntools/pwntools-4.15.0_beta1.ebuild 
b/dev-util/pwntools/pwntools-4.15.0_beta1.ebuild
new file mode 100644
index 000000000000..fc3a6da5c4dd
--- /dev/null
+++ b/dev-util/pwntools/pwntools-4.15.0_beta1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+DISTUTILS_USE_PEP517=setuptools
+inherit bash-completion-r1 distutils-r1
+
+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-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
+
+       insinto /usr/share/zsh/site-functions
+       doins extra/zsh_completion/_pwn
+
+       # Disable automatic update check (bug 915496).
+       insinto /etc
+       doins "${FILESDIR}/pwn.conf"
+
+       rm -r "${ED}/usr/pwntools-doc" || die
+}

Reply via email to