1 |
commit: 532dba2931aa05f9e186a3e2ad4d9deb67f7e0bb |
2 |
Author: David Roman <davidroman96 <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Dec 10 13:01:04 2017 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 10 15:00:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=532dba29 |
7 |
|
8 |
dev-util/radare2: fix system-capstone, bug #639136 |
9 |
|
10 |
Fix shell completions |
11 |
|
12 |
Closes: https://bugs.gentoo.org/639136 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/6509 |
14 |
|
15 |
dev-util/radare2/radare2-2.1.0-r2.ebuild | 53 ++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 53 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/radare2/radare2-2.1.0-r2.ebuild b/dev-util/radare2/radare2-2.1.0-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..ca264b48b2b |
21 |
--- /dev/null |
22 |
+++ b/dev-util/radare2/radare2-2.1.0-r2.ebuild |
23 |
@@ -0,0 +1,53 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+inherit eutils bash-completion-r1 |
30 |
+ |
31 |
+DESCRIPTION="unix-like reverse engineering framework and commandline tools" |
32 |
+HOMEPAGE="http://www.radare.org" |
33 |
+ |
34 |
+if [[ ${PV} == *9999 ]]; then |
35 |
+ inherit git-r3 |
36 |
+ EGIT_REPO_URI="https://github.com/radare/radare2" |
37 |
+else |
38 |
+ SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ KEYWORDS="~amd64 ~x86 ~arm ~arm64" |
40 |
+fi |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+IUSE="ssl +system-capstone" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ ssl? ( dev-libs/openssl:0= ) |
48 |
+ system-capstone? ( dev-libs/capstone:0= ) |
49 |
+" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ virtual/pkgconfig |
52 |
+" |
53 |
+ |
54 |
+src_configure() { |
55 |
+ econf \ |
56 |
+ $(use_with ssl openssl) \ |
57 |
+ $(use_with system-capstone syscapstone) |
58 |
+} |
59 |
+ |
60 |
+src_install() { |
61 |
+ default |
62 |
+ |
63 |
+ insinto /usr/share/zsh/site-functions |
64 |
+ doins doc/zsh/_* |
65 |
+ |
66 |
+ newbashcomp doc/bash_autocompletion.sh "${PN}" |
67 |
+ bashcomp_alias "${PN}" rafind2 r2 rabin2 rasm2 radiff2 |
68 |
+ |
69 |
+ # a workaround for unstable $(INSTALL) call, bug #574866 |
70 |
+ local d |
71 |
+ for d in doc/*; do |
72 |
+ if [[ -d $d ]]; then |
73 |
+ rm -rfv "$d" || die "failed to delete '$d'" |
74 |
+ fi |
75 |
+ done |
76 |
+} |