summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-03-06 09:06:06 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-03-06 09:06:26 +0000
commit3750ecf6ffc2a621234219a107116cfadd04ea94 (patch)
tree27a023178844d0e297e7705d5d6b8c1c332a495f /dev-util/radare2
parentnet-print/cnrdrvcups-lb: stabilize 5.00 on amd64 (diff)
downloadgentoo-3750ecf6ffc2a621234219a107116cfadd04ea94.tar.gz
gentoo-3750ecf6ffc2a621234219a107116cfadd04ea94.tar.bz2
gentoo-3750ecf6ffc2a621234219a107116cfadd04ea94.zip
dev-util/radare2: bump up to 4.3.1
Package-Manager: Portage-2.3.92, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-util/radare2')
-rw-r--r--dev-util/radare2/Manifest1
-rw-r--r--dev-util/radare2/radare2-4.3.1.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest
index aa091a0f3a0d..897164f90708 100644
--- a/dev-util/radare2/Manifest
+++ b/dev-util/radare2/Manifest
@@ -1,2 +1,3 @@
DIST radare2-4.2.1.tar.gz 8077107 BLAKE2B 490b063d7340b60cec1f77577985818c9dec34dd9206ce7d9db29f5d1836d515044e67d143f81fd7f6c58269f6f62f0bd87adcdb7cfb2cca5c0120d98ea29fd3 SHA512 aed37f6ff7ae3a25e809e8fbab3ef1c370dba80b7b8ef440a025edfbda23314ce20990b3e89589fe6bee427b2beebabd67a9e1def603e53ca5078bf32bdc4e6c
DIST radare2-4.3.0.tar.gz 8112940 BLAKE2B 5e658536878ab27679de7e23a60c34ac4b8009ee2b93a430405bde45aa976c758b8d49800b258b4dd225b4945855d41d19843e3fc22ab42b047abbfa1e524d42 SHA512 eb2efed6558e468efbdb2db810446d13f4649f63c5d40c14e2511f731cb7bc1642539b8cbccad45d311860fef4a6da9df56d6e505b117b99e839cd2ca0461ebc
+DIST radare2-4.3.1.tar.gz 8113591 BLAKE2B 289f6e4e3cb163017454918e7e5e31186cf41435f66a91ca5decf2819a06543908eeb3224041997eeba37e5bb7150874f431f301cf5f6aaa903601735e99d945 SHA512 06009dd2c75cfb2fcadd21041861f9569ff4b0b9438d1d5a1cf49ac8690ef041e18feb2445e6772acd0e217110328660e9de47db54d55c64f64764cb06988db8
diff --git a/dev-util/radare2/radare2-4.3.1.ebuild b/dev-util/radare2/radare2-4.3.1.ebuild
new file mode 100644
index 000000000000..c3c2387a8dcf
--- /dev/null
+++ b/dev-util/radare2/radare2-4.3.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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/radareorg/radare2"
+else
+ SRC_URI="https://github.com/radareorg/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ssl libressl"
+
+RDEPEND="
+ dev-libs/capstone:0=
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ econf \
+ --without-libuv \
+ --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
+}