radare2: v2.6.9 bump, with workaround for https://github.com/radare/radare2/issues/10634

This commit is contained in:
blshkv 2018-07-05 21:42:52 +08:00
parent 5159a59c71
commit 6ae25f8896
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST radare2-2.6.9.tar.gz 6476948 BLAKE2B 9e467250389483d1a64fa441ee2c6104c9762a1dcab5d72e75c1a5900d439aff8fe8b0c63733f0e2629aadb01e866bbe1206d0e5eff0fd20cedc031baccb198f SHA512 7493563c509350eb6dcefc98a6ce9767aee58f84aacb843110f5d5239f2597b707615af228fef777e37ed13a6232dbf2f3aa959f05f67902553537ecfe75482a

View file

@ -0,0 +1,60 @@
# 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
}