radare2: remove in gentoo's favour

This commit is contained in:
blshkv 2018-08-08 21:54:32 +08:00
parent 2750c7fcf8
commit 9a15e23fe3
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
8 changed files with 0 additions and 284 deletions

View file

@ -1 +0,0 @@
DIST radare-1.5.2.tar.gz 1810391 SHA256 0d1a52a5478bf2d6fce7c650c28cc25050892ab7f31e76c4c2db6df72dabb9e1

View file

@ -1,11 +0,0 @@
diff -Nru a/gui/main.h b/gui/main.h
--- a/gui/main.h 2009-12-08 19:00:31.000000000 +0100
+++ b/gui/main.h 2010-12-25 15:46:47.105653657 +0100
@@ -24,6 +24,7 @@
GtkWidget *gradare_actions_new();
GtkWidget *gradare_toolbar_new();
GtkWidget *gradare_sidebar_new();
+GtkWidget *gradare_menubar_new(GtkWindow *w);
void prefs_open();
void gradare_open();
void gradare_open_program();

View file

@ -1,57 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/radare/radare-1.5-r1.ebuild,v 1.2 2010/09/25 15:18:56 eva Exp $
EAPI="3"
inherit base eutils flag-o-matic
DESCRIPTION="Advanced command line hexadecimail editor and more"
HOMEPAGE="http://www.radare.org"
SRC_URI="http://www.radare.org/get/radare-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="gtk lua readline vala ewf"
RDEPEND="
dev-lang/python
dev-lang/perl
ewf? ( app-forensics/libewf )
gtk? (
x11-libs/gtk+:2
x11-libs/vte )
lua? ( dev-lang/lua )
readline? ( sys-libs/readline )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
vala? ( >=dev-lang/vala-0.5:0 )
"
pkg_setup() {
append-ldflags $(no-as-needed)
}
src_prepare() {
base_src_prepare
# fix documentation installation
sed -i "s:doc/${PN}:doc/${PF}:g" \
Makefile.acr global.h.acr src/Makefile.acr wscript dist/maemo/Makefile
epatch "${FILESDIR}"/gradare-fix-64bit.patch || die
}
src_configure() {
econf $(use_with readline)
}
src_compile() {
# sed -i -e '/CFLAGS/ s:include:include -I/usr/include/gtk-2.0:' src/Makefile | die "Failed to patch Makefile"
emake -j1 || die "compile failed"
}
src_install() {
emake DESTDIR="${ED}" install || die "install failed"
}

View file

@ -1,2 +0,0 @@
DIST radare2-2.6.9.tar.gz 6476948 BLAKE2B 9e467250389483d1a64fa441ee2c6104c9762a1dcab5d72e75c1a5900d439aff8fe8b0c63733f0e2629aadb01e866bbe1206d0e5eff0fd20cedc031baccb198f SHA512 7493563c509350eb6dcefc98a6ce9767aee58f84aacb843110f5d5239f2597b707615af228fef777e37ed13a6232dbf2f3aa959f05f67902553537ecfe75482a
DIST radare2-2.7.0.tar.gz 6483865 BLAKE2B 4052a601eb154240fb57c64bf2351063685a25e7d8ca46ad721398cd98b5e8bbec6a6daccb9f2df8e222bad74a0ffb4edc72186d7ca51b69ffbf480a7eb576ba SHA512 4a40e4917967aeef34de6ea69dd3c6d07a215e1f1272221db9af92d898e2d44997e339016b3342d69a276eb99f2d0a1e640ce8e9c889fe728dd86865e917a0fd

View file

@ -1,33 +0,0 @@
From ee2f84873187b4872d195111813d0cb906a8f5fe Mon Sep 17 00:00:00 2001
From: pancake <pancake@nopcode.org>
Date: Sun, 8 Jul 2018 02:22:30 +0200
Subject: [PATCH] Fix #10634 - m68k for capstone3
---
libr/anal/p/anal_m68k_cs.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libr/anal/p/anal_m68k_cs.c b/libr/anal/p/anal_m68k_cs.c
index cfbb6c7a1f..28b4757497 100644
--- a/libr/anal/p/anal_m68k_cs.c
+++ b/libr/anal/p/anal_m68k_cs.c
@@ -224,12 +224,19 @@ static int analop(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len) {
case M68K_INS_BLT:
case M68K_INS_BGT:
case M68K_INS_BLE:
+#if CS_API_MAJOR >= 4
if (m68k->operands[0].type == M68K_OP_BR_DISP) {
op->type = R_ANAL_OP_TYPE_CJMP;
// TODO: disp_size is ignored
op->jump = addr + m68k->operands[0].br_disp.disp + 2;
op->fail = addr + insn->size;
}
+#else
+ op->type = R_ANAL_OP_TYPE_CJMP;
+ // TODO: disp_size is ignored
+ op->jump = addr + m68k->operands[0].br_disp.disp + 2;
+ op->fail = addr + insn->size;
+#endif
break;
case M68K_INS_BRA:
op->type = R_ANAL_OP_TYPE_JMP;

View file

@ -1,60 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit bash-completion-r1 eutils
DESCRIPTION="unix-like reverse engineering framework and commandline tools"
HOMEPAGE="http://www.radare.org"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/radare/radare2"
else
SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="ssl libressl"
#a specific capstone is required, see /shlr/capstone.sh, Makefile
#https://github.com/radare/radare2/issues/10634
RDEPEND="
|| ( <dev-libs/capstone-4.0_alpha5 >dev-libs/capstone-4.0_alpha5 )
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
)
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
PATCHES=( "${FILESDIR}/ee2f84873187b4872d195111813d0cb906a8f5fe.patch" )
src_configure() {
econf \
--with-syscapstone \
$(use_with ssl openssl)
}
src_install() {
default
insinto /usr/share/zsh/site-functions
doins doc/zsh/_*
newbashcomp doc/bash_autocompletion.sh "${PN}"
bashcomp_alias "${PN}" rafind2 r2 rabin2 rasm2 radiff2
# a workaround for unstable $(INSTALL) call, bug #574866
local d
for d in doc/*; do
if [[ -d $d ]]; then
rm -rfv "$d" || die "failed to delete '$d'"
fi
done
}

View file

@ -1,60 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit bash-completion-r1 eutils
DESCRIPTION="unix-like reverse engineering framework and commandline tools"
HOMEPAGE="http://www.radare.org"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/radare/radare2"
else
SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="ssl libressl"
#a specific capstone is required, see /shlr/capstone.sh, Makefile
#https://github.com/radare/radare2/issues/10634
RDEPEND="
=dev-libs/capstone-4.0_p20180511:0=
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
)
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
#PATCHES=( "${FILESDIR}/${PN}-fix-syscapstone-2.6.patch" )
src_configure() {
econf \
--with-syscapstone \
$(use_with ssl openssl)
}
src_install() {
default
insinto /usr/share/zsh/site-functions
doins doc/zsh/_*
newbashcomp doc/bash_autocompletion.sh "${PN}"
bashcomp_alias "${PN}" rafind2 r2 rabin2 rasm2 radiff2
# a workaround for unstable $(INSTALL) call, bug #574866
local d
for d in doc/*; do
if [[ -d $d ]]; then
rm -rfv "$d" || die "failed to delete '$d'"
fi
done
}

View file

@ -1,60 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit bash-completion-r1 eutils
DESCRIPTION="unix-like reverse engineering framework and commandline tools"
HOMEPAGE="http://www.radare.org"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/radare/radare2"
else
SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86 ~arm ~arm64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="ssl libressl"
#a specific capstone is required, see /shlr/capstone.sh, Makefile
#https://github.com/radare/radare2/issues/10634
RDEPEND="
|| ( <dev-libs/capstone-4.0_alpha5 >dev-libs/capstone-4.0_alpha5 )
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
)
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
#PATCHES=( "${FILESDIR}/ee2f84873187b4872d195111813d0cb906a8f5fe.patch" )
src_configure() {
econf \
--with-syscapstone \
$(use_with ssl openssl)
}
src_install() {
default
insinto /usr/share/zsh/site-functions
doins doc/zsh/_*
newbashcomp doc/bash_autocompletion.sh "${PN}"
bashcomp_alias "${PN}" rafind2 r2 rabin2 rasm2 radiff2
# a workaround for unstable $(INSTALL) call, bug #574866
local d
for d in doc/*; do
if [[ -d $d ]]; then
rm -rfv "$d" || die "failed to delete '$d'"
fi
done
}