summaryrefslogtreecommitdiff
path: root/dev-util/gef
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-util/gef
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-util/gef')
-rw-r--r--dev-util/gef/Manifest4
-rw-r--r--dev-util/gef/gef-2022.06.ebuild85
-rw-r--r--dev-util/gef/gef-9999.ebuild18
3 files changed, 99 insertions, 8 deletions
diff --git a/dev-util/gef/Manifest b/dev-util/gef/Manifest
index 7014a1d3b411..8404fbd5329c 100644
--- a/dev-util/gef/Manifest
+++ b/dev-util/gef/Manifest
@@ -1,6 +1,8 @@
DIST gef-2021.10.tar.gz 170829 BLAKE2B 4d21fb68b2d9239dea912bb41790c7ffe83d9a7bb17cc6b3df67078b0147ff06676ff257c46567fb9a4fa76d5e12140f567f153337e83dbdd10cf0576cd08499 SHA512 30ccc728322651c3fc88f629165a96f593f079ddaa21d194e483804cdf4bcb235ed28cfaaa6fdd85c134b2314f32bd87e3dcf5decc45720f8e7b89ca9af2c379
DIST gef-2022.01.tar.gz 211779 BLAKE2B 1cb501cc7e05b1f96bb1d3ea42c8970273aea717b927f90120dbc5d0b5d9d7e28a89d1b1eb8a969406dfcd4f06f23e703e3aaa27a5a294b0d454d41b82b7bd12 SHA512 4e89ab889933464711c7a990df7fe6a6c014b80e9f5ad5e77382c3938413d31d03838e2215225defae88008b2ca0e577edeb01189189ea5e37d07204375fb47b
+DIST gef-2022.06.tar.gz 217503 BLAKE2B b7038e0519f216669c38bdda7e12375fb1c9e5278c8b617df73932a750ee6552531929eebcac22321607f51592834ece70c850ce0ba4629bc383731bc8803bb3 SHA512 585bad8655a5208d060b1ccf455ab87527e47949fce1df188a5ac970ccd1bbfbdd87151f7a940edcfb879dd0ea846b5c4a8650fed856cd5dcaec0ddd3581f100
EBUILD gef-2021.10-r1.ebuild 1661 BLAKE2B 78c76fca05678d67ebda6d6f66b049f9556e6cb12e103c51dc78fa0510ce107e1c7c045bf7a5dad059c2d7b1977508370fe17e1116c127bdb431c9d27b5f03a8 SHA512 e5fdb32b56781916bc5c2d2176d9dfc04adf292515c959b06bd5967c57b4fedbe0a3a5ca340f1b711bbe90811774c36f92aa9fffdb59b95432a51ba172e64a56
EBUILD gef-2022.01.ebuild 1661 BLAKE2B 83010f4388cb5093d4e2c8bba19520ea1d6427f38f2a0f1c77d1c87e152c9358fa9e5c4f841a8cc77f8a3653ecd6ba5a06f3ea36a24b81ef9857382a972671a1 SHA512 6123c66afd5deb56c6059ac3e40919518ddcbc7b80f214210b70192da8a0ab912b431c451e28838e42d673d19c5fe853b22643d1b5c3a04136a8a3f2a5c4b3d2
-EBUILD gef-9999.ebuild 1661 BLAKE2B 83010f4388cb5093d4e2c8bba19520ea1d6427f38f2a0f1c77d1c87e152c9358fa9e5c4f841a8cc77f8a3653ecd6ba5a06f3ea36a24b81ef9857382a972671a1 SHA512 6123c66afd5deb56c6059ac3e40919518ddcbc7b80f214210b70192da8a0ab912b431c451e28838e42d673d19c5fe853b22643d1b5c3a04136a8a3f2a5c4b3d2
+EBUILD gef-2022.06.ebuild 1685 BLAKE2B 29c74027d0fe370c1b61916bf217ffe5707df6b6124b0e28e88d772db107a8697694b241109fef6b94f8515d08d5bc8ffb63193ed1bd8c6b847a7dcb8b7c73ea SHA512 bfd14004f672d8604f7f6552d00236dcbb38e2ffa031ef64bcce834c5cd7a8c6764c6f3706bb2b2b525a87e935bbb4f5bfdc1986cee65678c60649bc39cb7aa3
+EBUILD gef-9999.ebuild 1685 BLAKE2B 29c74027d0fe370c1b61916bf217ffe5707df6b6124b0e28e88d772db107a8697694b241109fef6b94f8515d08d5bc8ffb63193ed1bd8c6b847a7dcb8b7c73ea SHA512 bfd14004f672d8604f7f6552d00236dcbb38e2ffa031ef64bcce834c5cd7a8c6764c6f3706bb2b2b525a87e935bbb4f5bfdc1986cee65678c60649bc39cb7aa3
MISC metadata.xml 995 BLAKE2B f4c30ac2ea932c90b74800c44389169199cdc189e69584a3873c91b36086eb30b5d463a12a5b08cc45196aa57e939d00806e3d1e96fbb647c997ab891a312ea0 SHA512 b4e09578a7f5656688dced42d1f924ba928b59abcb8345fe143be11ae30b553cda26663c6771a99e44ffc9f72c187b871ee2d1c096bf49d37b1e0fd460653ad4
diff --git a/dev-util/gef/gef-2022.06.ebuild b/dev-util/gef/gef-2022.06.ebuild
new file mode 100644
index 000000000000..f6f2afc9a0ad
--- /dev/null
+++ b/dev-util/gef/gef-2022.06.ebuild
@@ -0,0 +1,85 @@
+# 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
+ dev-python/mkdocs-material
+ )
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ ')
+ )"
+
+src_prepare() {
+ default
+
+ sed -i -e '/pylint/d' tests/requirements.txt || die
+}
+
+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 -x \"/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 e29ca85b5b66..f6f2afc9a0ad 100644
--- a/dev-util/gef/gef-9999.ebuild
+++ b/dev-util/gef/gef-9999.ebuild
@@ -10,7 +10,7 @@ inherit python-single-r1 wrapper
DESCRIPTION="A GDB Enhanced Features for exploit devs & reversers"
HOMEPAGE="https://github.com/hugsy/gef"
-if [[ ${PV} == *9999 ]]; then
+if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hugsy/gef"
else
@@ -36,7 +36,11 @@ RDEPEND="
dev-util/unicorn[python,${PYTHON_USEDEP}]
')"
-BDEPEND="doc? ( dev-python/mkdocs )
+BDEPEND="
+ doc? (
+ dev-python/mkdocs
+ dev-python/mkdocs-material
+ )
test? (
$(python_gen_cond_dep '
dev-python/pytest[${PYTHON_USEDEP}]
@@ -47,7 +51,7 @@ BDEPEND="doc? ( dev-python/mkdocs )
src_prepare() {
default
- sed -i -e '/pylint/d' requirements.txt || die
+ sed -i -e '/pylint/d' tests/requirements.txt || die
}
src_compile() {
@@ -56,19 +60,19 @@ src_compile() {
}
src_install() {
- insinto /usr/share/${PN}
+ insinto "/usr/share/${PN}"
doins -r *.py
- python_optimize "${ED}"/usr/share/${PN}
+ python_optimize "${ED}/usr/share/${PN}"
make_wrapper "gdb-gef" \
- "gdb -ex \"source ${EPREFIX}/usr/share/${PN}/gef.py\"" || die
+ "gdb -x \"/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
+ rm "${WORKDIR}/${P}/html/sitemap.xml.gz" || die
dodoc -r html/
fi