radare2: unfork

This commit is contained in:
Rick Farina (Zero_Chaos) 2018-02-17 13:38:00 -05:00
parent d7df68bd78
commit 0196959eff
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
6 changed files with 1 additions and 147 deletions

View file

@ -1,2 +0,0 @@
DIST radare2-1.6.0.tar.gz 5752191 SHA256 759d1c65dcd69d1189fc73e427c568ec234a7ca1958c19f5001c255dd31a3787 SHA512 6e1485c4edaa007790c07a8cfe190c4ea3e4df843620e2575587478e60f1be3dacaa0c545c84e135a51d9f7aff61c27f712c0ffa6038b556d347151f2a3cd2bb WHIRLPOOL 6a35b3b58bc5ec248de53ca3970c4791a8d837b330109f832ccd12d0660537ca0fa62101b806dc29f1123bd48d4139bd7ef1856f5fdbd31afe67daea384f1872
DIST radare2-2.0.1.tar.gz 6001927 SHA256 d8f7e1ab96028fc8bd62d4f92fbbe8bbf48c6cda8112e6eaec93bf5ffbbbd1dd SHA512 1a8db3c71895fd9ccf284e7d0747770a5490872c5ee7f8e6d1c3a2590d2b344873bfc11b5f686bd08caa441bb787b2ec86aae9e83bf61e296f6a233d3ba35207 WHIRLPOOL 276f5628482a56eba3596a04f42a5fa60ed267ed09efea1adef1305cb3313d6ff59b0821ad05b5421620caa3e902f0839c61c619156f5bc1e1966d33261d1e3e

View file

@ -1,13 +0,0 @@
capstone-sync does not work correctly for release tarballs.
It tries to sync/revert from upstream git repo unconditionaly.
diff --git a/shlr/Makefile b/shlr/Makefile
index a1796ce..f8d179a 100644
--- a/shlr/Makefile
+++ b/shlr/Makefile
@@ -144,5 +144,5 @@ else
ifeq ($(CS_TAR),)
-capstone: capstone-sync
+capstone: # capstone-sync
capstone-sync:

View file

@ -1,25 +0,0 @@
diff -urN radare2-2.0.1.orig/libr/include/r_util/r_big.h radare2-2.0.1/libr/include/r_util/r_big.h
--- radare2-2.0.1.orig/libr/include/r_util/r_big.h 2017-10-13 00:28:33.000000000 +0800
+++ radare2-2.0.1/libr/include/r_util/r_big.h 2017-10-15 10:10:14.078912464 +0800
@@ -1,16 +1,16 @@
#ifndef R_BIG_H
#define R_BIG_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if HAVE_LIB_GMP
#define RNumBig mpz_t
#elif HAVE_LIB_SSL
#define RNumBig BIGNUM
#else
#define R_BIG_SIZE 10000
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct r_num_big_t {
char dgts[R_BIG_SIZE];
int sign, last;

View file

@ -1,46 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils
DESCRIPTION="Advanced command line hexadecimal editor and more"
HOMEPAGE="http://www.radare.org"
#SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+syscapstone ssl"
RDEPEND="syscapstone? ( >dev-libs/capstone-4.0_alpha5:= )
ssl? ( dev-libs/openssl:0= )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-0.9.9-nogit.patch
)
# "${FILESDIR}/pull7666.patch"
src_configure() {
econf \
$(use_with ssl openssl) \
$(use_with syscapstone)
}
src_install() {
# 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
default
}

View file

@ -1,60 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit 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"
PATCHES=( "${FILESDIR}"/${PN}-0.9.9-nogit.patch )
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="ssl +system-capstone zsh-completion"
RDEPEND="
ssl? ( dev-libs/openssl:0= )
system-capstone? ( dev-libs/capstone:0= )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
src_prepare() {
epatch "${FILESDIR}"/${P}_issue176.patch
#https://github.com/radare/radare2/issues/8688
sed -i -e '/ln -fs "${PWD}\/sys/d' Makefile
eapply_user
}
src_configure() {
econf \
$(use_with ssl openssl) \
$(use_with system-capstone syscapstone)
}
src_install() {
default
if use zsh-completion; then
insinto /usr/share/zsh/site-functions
doins doc/zsh/_*
fi
# 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

@ -16,7 +16,7 @@ dev-util/intel-ocl-sdk
~dev-util/bokken-1.8
~dev-util/pyew-2.0
=dev-util/valabind-1.4*
=dev-util/radare2-2.2*
dev-util/radare2
=dev-util/cutter-1*
#virtualbox