Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/radare2/
Date: Mon, 27 Nov 2017 22:56:01
Message-Id: 1511823346.f317b21403367e54ad982d541cd85aa62a633753.slyfox@gentoo
1 commit: f317b21403367e54ad982d541cd85aa62a633753
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 27 22:54:35 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 27 22:55:46 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f317b214
7
8 dev-util/radare2: bump up to 2.1.0
9
10 Reported-by: Daj' Uan (Jmbailey)
11 Reported-by: Aleksandr Wagner (Kivak)
12 Bug: https://bugs.gentoo.org/636184
13 Bug: https://bugs.gentoo.org/637454
14 Package-Manager: Portage-2.3.16, Repoman-2.3.6
15
16 dev-util/radare2/Manifest | 3 +-
17 dev-util/radare2/radare2-2.1.0.ebuild | 56 +++++++++++++++++++++++++++++++++++
18 2 files changed, 58 insertions(+), 1 deletion(-)
19
20 diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest
21 index 054b3a79436..4e5bb9640a6 100644
22 --- a/dev-util/radare2/Manifest
23 +++ b/dev-util/radare2/Manifest
24 @@ -1 +1,2 @@
25 -DIST radare2-2.0.1.tar.gz 6001927 SHA256 d8f7e1ab96028fc8bd62d4f92fbbe8bbf48c6cda8112e6eaec93bf5ffbbbd1dd SHA512 1a8db3c71895fd9ccf284e7d0747770a5490872c5ee7f8e6d1c3a2590d2b344873bfc11b5f686bd08caa441bb787b2ec86aae9e83bf61e296f6a233d3ba35207 WHIRLPOOL 276f5628482a56eba3596a04f42a5fa60ed267ed09efea1adef1305cb3313d6ff59b0821ad05b5421620caa3e902f0839c61c619156f5bc1e1966d33261d1e3e
26 +DIST radare2-2.0.1.tar.gz 6001927 BLAKE2B cc74eb5f71cee88e78df7e73175ca84eadf2a16f313d4c1ecd54fb3c3c5aba44eb72c0eed5f739d888fb6a95b65dcdf2d7ae6b0269225a2fa7346bd506496a25 SHA512 1a8db3c71895fd9ccf284e7d0747770a5490872c5ee7f8e6d1c3a2590d2b344873bfc11b5f686bd08caa441bb787b2ec86aae9e83bf61e296f6a233d3ba35207
27 +DIST radare2-2.1.0.tar.gz 5954222 BLAKE2B 9128a01d40ef1401d457f1fa5610ad7bbda92021e6e16fd70e9488bdb11be923c3d0f453e49a7bf78203c320ec2f1b2276925db2ae6eeaad90100ae0c2724b56 SHA512 38a907834e21967a83943e62cb29d8097e0522ff71ea61a2e3ab9e5263c3884ce28c17fb3ca9201c2b9f341e1b066ed0899e5152e146e61fc4f650f319299cd0
28
29 diff --git a/dev-util/radare2/radare2-2.1.0.ebuild b/dev-util/radare2/radare2-2.1.0.ebuild
30 new file mode 100644
31 index 00000000000..8f051ac5113
32 --- /dev/null
33 +++ b/dev-util/radare2/radare2-2.1.0.ebuild
34 @@ -0,0 +1,56 @@
35 +# Copyright 1999-2017 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit eutils
41 +
42 +DESCRIPTION="unix-like reverse engineering framework and commandline tools"
43 +HOMEPAGE="http://www.radare.org"
44 +
45 +if [[ ${PV} == *9999 ]]; then
46 + inherit git-r3
47 + EGIT_REPO_URI="https://github.com/radare/radare2"
48 +else
49 + SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz"
50 + KEYWORDS="~amd64 ~x86 ~arm ~arm64"
51 +fi
52 +
53 +PATCHES=(
54 + "${FILESDIR}"/${PN}-0.9.9-nogit.patch
55 +)
56 +
57 +LICENSE="GPL-2"
58 +SLOT="0"
59 +IUSE="ssl +system-capstone zsh-completion"
60 +
61 +RDEPEND="
62 + ssl? ( dev-libs/openssl:0= )
63 + system-capstone? ( dev-libs/capstone:0= )
64 +"
65 +DEPEND="${RDEPEND}
66 + virtual/pkgconfig
67 +"
68 +
69 +src_configure() {
70 + econf \
71 + $(use_with ssl openssl) \
72 + $(use_with system-capstone syscapstone)
73 +}
74 +
75 +src_install() {
76 + default
77 +
78 + if use zsh-completion; then
79 + insinto /usr/share/zsh/site-functions
80 + doins doc/zsh/_*
81 + fi
82 +
83 + # a workaround for unstable $(INSTALL) call, bug #574866
84 + local d
85 + for d in doc/*; do
86 + if [[ -d $d ]]; then
87 + rm -rfv "$d" || die "failed to delete '$d'"
88 + fi
89 + done
90 +}