diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/edb-debugger | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/edb-debugger')
-rw-r--r-- | dev-util/edb-debugger/Manifest | 4 | ||||
-rw-r--r-- | dev-util/edb-debugger/edb-debugger-0.9.21.ebuild | 80 | ||||
-rw-r--r-- | dev-util/edb-debugger/edb-debugger-9999.ebuild | 54 | ||||
-rw-r--r-- | dev-util/edb-debugger/metadata.xml | 20 |
4 files changed, 158 insertions, 0 deletions
diff --git a/dev-util/edb-debugger/Manifest b/dev-util/edb-debugger/Manifest new file mode 100644 index 000000000000..736b8cbb5ea2 --- /dev/null +++ b/dev-util/edb-debugger/Manifest @@ -0,0 +1,4 @@ +DIST edb-debugger-0.9.21.tgz 1042641 BLAKE2B 8f81e6629df3b74e7f670a35e7e92220f33732d34f01c56475b70cff4e6f479908b0fbfaf418625be8ca2fcb45ac9805f725e1e6eb7eb66a899d754446445e29 SHA512 de921fa866da7d83efad92797bebcac3544ba1ffd5b3a015865b9bd554e8bc2e43539a9e4648517aff37f7d2497fdc4e1f6dc63df5cb0663012662626b1964f7 +EBUILD edb-debugger-0.9.21.ebuild 2109 BLAKE2B f8412190b29713ca51b90cc322a92974a879c897c79d7145c3e0fb79d2f9c46b333064a4f2538b4a515f5131dbd38f939fb65192e9d7996458d7df03fec55f0e SHA512 d1d932deeb4109438e97c4b8417b3fa493d40a86e3582ace599097047691d1c6148ac3b62ec1b500af25171db3cfd790a8b67bb04289ae5ac7c819b0dc836def +EBUILD edb-debugger-9999.ebuild 1238 BLAKE2B a31e56662cb09b439fcbad13011e05a931fc05f6099793336c9b74e6cde709b86a1e6d85b9b8e7c2eb66e8eacb627581313f1968ae5ef95ba84b56a5c6133bf2 SHA512 24763b7327d5d23dff879bd230c0c56c0a88dd6a7fb94c13699ce6b45c371bbf6d27c8b72736e26f25877758f004e4d46997858349a36b00ef96d701bddb459b +MISC metadata.xml 688 BLAKE2B eaf7922cca384a33aa16e2593ecaed8de0eab807ed8781c9bb8bba754d82ef2234b74e75ca77817f5a568bd044949572bfdeee9d9ab5981c79fd3952ff587a5b SHA512 f83568251c245ecc4b3c2aebebd461e5ef765f79736a97c230bd58bdfa4da3643aa2e9fc6ca2b80eacf81ec2af6c1102c5f432002505ac6ad7977675aa629d65 diff --git a/dev-util/edb-debugger/edb-debugger-0.9.21.ebuild b/dev-util/edb-debugger/edb-debugger-0.9.21.ebuild new file mode 100644 index 000000000000..8d159b715b63 --- /dev/null +++ b/dev-util/edb-debugger/edb-debugger-0.9.21.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils eutils + +DESCRIPTION="edb is a cross platform x86/x86-64 debugger, inspired by Ollydbg" +HOMEPAGE="https://github.com/eteran/edb-debugger" + +LICENSE="GPL-2+" +IUSE="graphviz legacy-mem-write pax_kernel" +SLOT="0" + +SRC_URI="https://github.com/eteran/edb-debugger/releases/download/${PV}/edb-debugger-${PV}.tgz" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/edb-debugger-${PV}" + +RDEPEND=" + >=dev-libs/capstone-3.0 + graphviz? ( >=media-gfx/graphviz-2.38.0 ) + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + dev-qt/qtxmlpatterns:5 + dev-qt/qtnetwork:5 + dev-qt/qtconcurrent:5 + dev-qt/qtgui:5 + dev-qt/qtcore:5 + " +DEPEND=" + >=dev-libs/boost-1.35.0 + virtual/pkgconfig + ${RDEPEND}" + +src_prepare(){ + #Remove this in a future version; There won't be any edb48-logo.png + sed -i '/edb48-logo/d' CMakeLists.txt || die + + #Make the desktop's entries somewhat cuter + sed -i -e 's/GenericName=edb debugger/GenericName=Evan\x27s Debugger/' edb.desktop || die + sed -i -e 's/Comment=edb debugger/Comment=edb is a cross platform x86\/x86-64 debugger/' edb.desktop || die + + if ! use graphviz; then + sed -i '/pkg_check_modules(GRAPHVIZ/d' CMakeLists.txt || die + fi + cmake-utils_src_prepare +} + +src_configure() { + mycmakeargs=( + -DCMAKE_INSTALL_PREFIX=/usr + -DQT_VERSION=Qt5 + ) + if use pax_kernel || use legacy-mem-write; then + mycmakeargs+=( -DASSUME_PROC_PID_MEM_WRITE_BROKEN=Yes ) + else + mycmakeargs+=( -DASSUME_PROC_PID_MEM_WRITE_BROKEN=No ) + fi + + cmake-utils_src_configure +} + +src_install() { + cd src/images/ || die + newicon "edb48-logo.png" "edb.png" + cmake-utils_src_install +} + +pkg_postinst() { + if use legacy-mem-write; then + ewarn "You really do not want to turn on legacy-mem-write unless you need it." + ewarn "Be sure to test without legacy-mem-write first and only enable if you actually need it." + else + ewarn + ewarn "If you notice that EDB doesn't work correctly, enable legacy-mem-write USE Flag" + ewarn "Please Report Bugs & Requests At: https://github.com/eteran/edb-debugger/issues" + ewarn + fi +} diff --git a/dev-util/edb-debugger/edb-debugger-9999.ebuild b/dev-util/edb-debugger/edb-debugger-9999.ebuild new file mode 100644 index 000000000000..800b7d58d535 --- /dev/null +++ b/dev-util/edb-debugger/edb-debugger-9999.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils git-r3 + +DESCRIPTION="edb is a cross platform x86/x86-64 debugger, inspired by Ollydbg" +HOMEPAGE="https://github.com/eteran/edb-debugger" + +LICENSE="GPL-2+" +IUSE="debug graphviz" +SLOT="0" +EGIT_REPO_URI="https://github.com/eteran/edb-debugger.git" +KEYWORDS="" + +RDEPEND=" + >=dev-libs/capstone-3.0 + graphviz? ( >=media-gfx/graphviz-2.38.0 ) + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + dev-qt/qtxmlpatterns:5 + dev-qt/qtnetwork:5 + dev-qt/qtconcurrent:5 + dev-qt/qtgui:5 + dev-qt/qtcore:5 + " +DEPEND=" + >=dev-libs/boost-1.35.0 + virtual/pkgconfig + ${RDEPEND}" + +src_prepare(){ + #Make the desktop's entries somewhat cuter + sed -i -e 's/GenericName=edb debugger/GenericName=Evan\x27s Debugger/' edb.desktop || die + sed -i -e 's/Comment=edb debugger/Comment=edb is a cross platform x86\/x86-64 debugger/' edb.desktop || die + + if ! use graphviz; then + sed -i '/pkg_check_modules(GRAPHVIZ/d' CMakeLists.txt || die + fi + cmake-utils_src_prepare +} + +src_configure() { + CMAKE_BUILD_TYPE=Release + use debug && CMAKE_BUILD_TYPE=Debug + + mycmakeargs+=( + -DCMAKE_INSTALL_PREFIX=/usr + -DQT_VERSION=Qt5 + ) + + cmake-utils_src_configure +} diff --git a/dev-util/edb-debugger/metadata.xml b/dev-util/edb-debugger/metadata.xml new file mode 100644 index 000000000000..9be9b854d3f5 --- /dev/null +++ b/dev-util/edb-debugger/metadata.xml @@ -0,0 +1,20 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>petross404@gmail.com</email> + <name>Petros S</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="legacy-mem-write">Probe if writes to /proc/PID/mem are broken.</flag> + <flag name="graphviz">Add support for the Graphviz library</flag> + <flag name="pax_kernel">Enable building under a PaX enabled kernel</flag> + </use> + <upstream> + <remote-id type="github">eteran/edb-debugger</remote-id> + </upstream> +</pkgmetadata> |