summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-11-27 22:54:35 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2017-11-27 22:55:46 +0000
commitf317b21403367e54ad982d541cd85aa62a633753 (patch)
treee8bdd7320aa12b789aa01708f1879e16791f675f /dev-util/radare2
parentmedia-fonts/cm-unicode: EAPI 3 -> 6 (diff)
downloadgentoo-f317b21403367e54ad982d541cd85aa62a633753.tar.gz
gentoo-f317b21403367e54ad982d541cd85aa62a633753.tar.bz2
gentoo-f317b21403367e54ad982d541cd85aa62a633753.zip
dev-util/radare2: bump up to 2.1.0
Reported-by: Daj' Uan (Jmbailey) Reported-by: Aleksandr Wagner (Kivak) Bug: https://bugs.gentoo.org/636184 Bug: https://bugs.gentoo.org/637454 Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'dev-util/radare2')
-rw-r--r--dev-util/radare2/Manifest3
-rw-r--r--dev-util/radare2/radare2-2.1.0.ebuild56
2 files changed, 58 insertions, 1 deletions
diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest
index 054b3a794367..4e5bb9640a68 100644
--- a/dev-util/radare2/Manifest
+++ b/dev-util/radare2/Manifest
@@ -1 +1,2 @@
-DIST radare2-2.0.1.tar.gz 6001927 SHA256 d8f7e1ab96028fc8bd62d4f92fbbe8bbf48c6cda8112e6eaec93bf5ffbbbd1dd SHA512 1a8db3c71895fd9ccf284e7d0747770a5490872c5ee7f8e6d1c3a2590d2b344873bfc11b5f686bd08caa441bb787b2ec86aae9e83bf61e296f6a233d3ba35207 WHIRLPOOL 276f5628482a56eba3596a04f42a5fa60ed267ed09efea1adef1305cb3313d6ff59b0821ad05b5421620caa3e902f0839c61c619156f5bc1e1966d33261d1e3e
+DIST radare2-2.0.1.tar.gz 6001927 BLAKE2B cc74eb5f71cee88e78df7e73175ca84eadf2a16f313d4c1ecd54fb3c3c5aba44eb72c0eed5f739d888fb6a95b65dcdf2d7ae6b0269225a2fa7346bd506496a25 SHA512 1a8db3c71895fd9ccf284e7d0747770a5490872c5ee7f8e6d1c3a2590d2b344873bfc11b5f686bd08caa441bb787b2ec86aae9e83bf61e296f6a233d3ba35207
+DIST radare2-2.1.0.tar.gz 5954222 BLAKE2B 9128a01d40ef1401d457f1fa5610ad7bbda92021e6e16fd70e9488bdb11be923c3d0f453e49a7bf78203c320ec2f1b2276925db2ae6eeaad90100ae0c2724b56 SHA512 38a907834e21967a83943e62cb29d8097e0522ff71ea61a2e3ab9e5263c3884ce28c17fb3ca9201c2b9f341e1b066ed0899e5152e146e61fc4f650f319299cd0
diff --git a/dev-util/radare2/radare2-2.1.0.ebuild b/dev-util/radare2/radare2-2.1.0.ebuild
new file mode 100644
index 000000000000..8f051ac51137
--- /dev/null
+++ b/dev-util/radare2/radare2-2.1.0.ebuild
@@ -0,0 +1,56 @@
+# 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"
+fi
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+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_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
+}