summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Haustein <mario.haustein@hrz.tu-chemnitz.de>2024-06-04 01:25:44 +0200
committerSam James <sam@gentoo.org>2024-06-12 05:58:18 +0100
commit1e88765b995741eaad37324432bce4b1f46a6ada (patch)
tree68217ab27b08dc46542a157efdc9c4b6a208c37b /dev-debug
parentdev-libs/openssl: add 3.3.1 (diff)
downloadgentoo-1e88765b995741eaad37324432bce4b1f46a6ada.tar.gz
gentoo-1e88765b995741eaad37324432bce4b1f46a6ada.tar.bz2
gentoo-1e88765b995741eaad37324432bce4b1f46a6ada.zip
dev-debug/gef: add 2024.06
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> Closes: https://github.com/gentoo/gentoo/pull/37015 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-debug')
-rw-r--r--dev-debug/gef/Manifest1
-rw-r--r--dev-debug/gef/gef-2024.06.ebuild83
2 files changed, 84 insertions, 0 deletions
diff --git a/dev-debug/gef/Manifest b/dev-debug/gef/Manifest
index ba2a872e5a3b..74164339e68a 100644
--- a/dev-debug/gef/Manifest
+++ b/dev-debug/gef/Manifest
@@ -1,2 +1,3 @@
DIST gef-2023.08.tar.gz 230347 BLAKE2B b9b8fed1bdf81fa870583921c4bdd6df2d98112748c939da48acae7e636ec6e22dc751d8ed75e52e72ff0aa04835720293f0e82e99ff614c447f2a614c76e48a SHA512 d3a26826b991db7e8d475da945b16933ce046dd64381f5df60ea0fe310d0325f39b05142de5f75abbbd5693c93ad70ff25e982d0ff3526a6fe66fd7526a359c5
DIST gef-2024.01.tar.gz 235145 BLAKE2B f5409e592c50dbbe65761e7727f28aa7a96b130449f187e392cc0170707b7cfb2d1bf9e75581dce7dce8ff6d004ffc624d34a46b7ba35ab434a5671662860bdb SHA512 d8dbc308f864e434ea79eaf44e329e11f2cea9836a5dcdc019bd621bbec6792f70e58edd9fd8b3c434dc61a17fbac08394e281530423081beb1cc1192aece79c
+DIST gef-2024.06.tar.gz 243709 BLAKE2B e01b07f12c147103c544713ca4139e75ab961a29b139278e0c3765a0f595bec5e27dcc1e783dbb8657e18c029c1a2b28a073d2784912c836d5d508d2fb62f6ff SHA512 5eaa3fc1a39146d241f58bf3f5f3e912ad00b098b414c27a2d3a6e5b5f74e415b2d141cd9e7ccf3fd4aaa1b711ab62cc32d666cbc51dedf8a14b315df182d861
diff --git a/dev-debug/gef/gef-2024.06.ebuild b/dev-debug/gef/gef-2024.06.ebuild
new file mode 100644
index 000000000000..ab3ad1835c9a
--- /dev/null
+++ b/dev-debug/gef/gef-2024.06.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+DOCS_BUILDER="mkdocs"
+DOCS_DEPEND="
+ dev-python/mkdocs-material
+"
+
+inherit python-single-r1 docs wrapper
+
+DESCRIPTION="GDB Enhanced Features for exploit devs & reversers"
+HOMEPAGE="https://github.com/hugsy/gef"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/hugsy/gef"
+else
+ SRC_URI="https://github.com/hugsy/gef/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test"
+# Seem to hang right now?
+RESTRICT="!test? ( test ) test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-util/ropper[${PYTHON_SINGLE_USEDEP}]
+ dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-libs/capstone[python,${PYTHON_USEDEP}]
+ dev-libs/keystone[python,${PYTHON_USEDEP}]
+ dev-python/pylint[${PYTHON_USEDEP}]
+ dev-python/rpyc[${PYTHON_USEDEP}]
+ dev-util/unicorn[python,${PYTHON_USEDEP}]
+ ')"
+
+BDEPEND="
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ ')
+ )"
+
+DOCS=( README.md )
+
+src_prepare() {
+ default
+
+ sed -i -e '/pylint/d' tests/requirements.txt || die
+}
+
+src_compile() {
+ # Tries to compile tests
+ :
+
+ docs_compile
+}
+
+src_install() {
+ insinto "/usr/share/${PN}"
+ doins -r *.py
+
+ python_optimize "${ED}/usr/share/${PN}"
+
+ make_wrapper "gdb-gef" \
+ "gdb -x \"/usr/share/${PN}/gef.py\"" || die
+
+ einstalldocs
+}
+
+pkg_postinst() {
+ einfo "\nUsage:"
+ einfo " ~$ gdb-gef <program>\n"
+}