edb: update

This commit is contained in:
Rick Farina (Zero_Chaos) 2016-09-29 11:05:40 -04:00
parent 11e9b07e9a
commit 0bb6be1971
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
4 changed files with 94 additions and 2 deletions

View file

@ -1,2 +1 @@
DIST debugger-0.9.20.tgz 791820 SHA256 fd4ebdf8a30ace88395b7b61407fd264cb3919d97368d4932201f0fed6b7ef4d SHA512 c65c023c351ee7aee47dbb743a6e84e9b9c680e9eef39caa1a873903c53aa48b451ea92b5363720d55277d81ca8a95741c0777a2748da9fb6d09957ff000ecb1 WHIRLPOOL 50da20b6f0b153697baba5ce1b91402863fa4c2b243c6416d48eb8854f5abc982915f1c19931f66f20dd6bfd5697dec2cab4c8f43e6cdb5c6fd4e31b9b86ba7f
DIST edb-debugger-0.9.21.tgz 1042641 SHA256 2686619e1288152033d4c9c9a2568cb12841d3854bba8815c37ce77d3bd11706 SHA512 de921fa866da7d83efad92797bebcac3544ba1ffd5b3a015865b9bd554e8bc2e43539a9e4648517aff37f7d2497fdc4e1f6dc63df5cb0663012662626b1964f7 WHIRLPOOL 00c77e770c7fdc68644fcef732dc1c93ca6327f6543e80f9b628630ee6059a70bb51f4a290f73ae7502cfabad8f7eefca9a3e8762c778059e5eabeb439baed8b

View file

@ -0,0 +1,76 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit cmake-utils
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"
SLOT="0"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/eteran/edb-debugger.git"
KEYWORDS=""
else
MY_GIT_COMMIT="f0f587f3d0e64c8be0c0db6c593011c3cfcf8e34"
SRC_URI="https://github.com/eteran/edb-debugger/archive/${MY_GIT_COMMIT}.zip -> ${P}.zip"
#KEYWORDS="~amd64 ~x86"
S="${WORKDIR}"/"${PN}"-debugger-"${MY_GIT_COMMIT}"
fi
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
${RDEPEND}"
src_prepare(){
if ! use graphviz; then
sed -i '/pkg_check_modules(GRAPHVIZ/d' CMakeLists.txt
fi
eapply_user
}
src_configure() {
mycmakeargs=(
-DCMAKE_INSTALL_PREFIX=/usr
-DASSUME_PROC_PID_MEM_WRITE_BROKEN=$(usex legacy-mem-write Yes No)
-DQT_VERSION=Qt5
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install(){
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 wihtout 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
}

View file

@ -50,6 +50,7 @@ src_configure() {
mycmakeargs=(
-DCMAKE_INSTALL_PREFIX=/usr
-DASSUME_PROC_PID_MEM_WRITE_BROKEN=$(usex legacy-mem-write Yes No)
-DQT_VERSION=Qt5
)
cmake-utils_src_configure
}
@ -60,7 +61,6 @@ src_compile() {
src_install(){
cmake-utils_src_install
mv "${ED}"/usr/share/pixmaps/${PN}48-logo.png "${ED}"/usr/share/pixmaps/${PN}.png || die
}
pkg_postinst() {

17
dev-util/edb/metadata.xml Normal file
View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>zerochaos@gentoo.org</email>
<name>Rick Farina</name>
<description>maintainer</description>
</maintainer>
<maintainer type="person">
<email>petross404@gmail.com</email>
<name>Petross404</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>
</use>
</pkgmetadata>