summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-01-31 03:53:42 +0000
committerSam James <sam@gentoo.org>2022-01-31 03:53:55 +0000
commit5145a289e10f7db93cfe6693c9c7bc1a53421059 (patch)
treecc8aaf857960a838508d852c2f17ae861c02cba2 /dev-util/gef
parentdev-util/gef: strip pylint dependency (diff)
downloadgentoo-5145a289e10f7db93cfe6693c9c7bc1a53421059.tar.gz
gentoo-5145a289e10f7db93cfe6693c9c7bc1a53421059.tar.bz2
gentoo-5145a289e10f7db93cfe6693c9c7bc1a53421059.zip
dev-util/gef: add 2022.01
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/gef')
-rw-r--r--dev-util/gef/Manifest1
-rw-r--r--dev-util/gef/gef-2022.01.ebuild81
-rw-r--r--dev-util/gef/gef-9999.ebuild2
3 files changed, 83 insertions, 1 deletions
diff --git a/dev-util/gef/Manifest b/dev-util/gef/Manifest
index c6064ff0d468..baac8a70b5e9 100644
--- a/dev-util/gef/Manifest
+++ b/dev-util/gef/Manifest
@@ -1 +1,2 @@
DIST gef-2021.10.tar.gz 170829 BLAKE2B 4d21fb68b2d9239dea912bb41790c7ffe83d9a7bb17cc6b3df67078b0147ff06676ff257c46567fb9a4fa76d5e12140f567f153337e83dbdd10cf0576cd08499 SHA512 30ccc728322651c3fc88f629165a96f593f079ddaa21d194e483804cdf4bcb235ed28cfaaa6fdd85c134b2314f32bd87e3dcf5decc45720f8e7b89ca9af2c379
+DIST gef-2022.01.tar.gz 211779 BLAKE2B 1cb501cc7e05b1f96bb1d3ea42c8970273aea717b927f90120dbc5d0b5d9d7e28a89d1b1eb8a969406dfcd4f06f23e703e3aaa27a5a294b0d454d41b82b7bd12 SHA512 4e89ab889933464711c7a990df7fe6a6c014b80e9f5ad5e77382c3938413d31d03838e2215225defae88008b2ca0e577edeb01189189ea5e37d07204375fb47b
diff --git a/dev-util/gef/gef-2022.01.ebuild b/dev-util/gef/gef-2022.01.ebuild
new file mode 100644
index 000000000000..18a8151cb090
--- /dev/null
+++ b/dev-util/gef/gef-2022.01.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..10} )
+
+inherit python-single-r1 wrapper
+
+DESCRIPTION="A 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 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="doc test"
+# Seem to hang right now?
+RESTRICT="!test? ( test ) test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-util/ropper[${PYTHON_SINGLE_USEDEP}]
+ sys-devel/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-util/unicorn[python,${PYTHON_USEDEP}]
+ ')"
+
+BDEPEND="doc? ( dev-python/mkdocs )
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ ')
+ )"
+
+python_prepare_all() {
+ sed -i -e '/pylint/d' requirements.txt || die
+
+ distutils-r1_python_prepare_all
+}
+
+src_compile() {
+ # Tries to compile tests
+ :
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r *.py
+
+ python_optimize "${ED}"/usr/share/${PN}
+
+ make_wrapper "gdb-gef" \
+ "gdb -ex \"source ${EPREFIX}/usr/share/${PN}/gef.py\"" || die
+
+ if use doc; then
+ # TODO: docs.eclass?
+ mkdocs build -d html || die
+
+ rm "${WORKDIR}"/${P}/html/sitemap.xml.gz || die
+ dodoc -r html/
+ fi
+
+ dodoc README.md
+}
+
+pkg_postinst() {
+ einfo "\nUsage:"
+ einfo " ~$ gdb-gef <program>\n"
+}
diff --git a/dev-util/gef/gef-9999.ebuild b/dev-util/gef/gef-9999.ebuild
index 1591c4b14506..18a8151cb090 100644
--- a/dev-util/gef/gef-9999.ebuild
+++ b/dev-util/gef/gef-9999.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
PYTHON_COMPAT=( python3_{9..10} )