summaryrefslogtreecommitdiff
path: root/dev-util/radare2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/radare2
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/radare2')
-rw-r--r--dev-util/radare2/Manifest21
-rw-r--r--dev-util/radare2/files/radare2-0.9.9-nogit.patch13
-rw-r--r--dev-util/radare2/files/radare2-1.1.0-openssl-1.1.0c.patch31
-rw-r--r--dev-util/radare2/metadata.xml15
-rw-r--r--dev-util/radare2/radare2-0.10.6.ebuild41
-rw-r--r--dev-util/radare2/radare2-1.0.2.ebuild41
-rw-r--r--dev-util/radare2/radare2-1.1.0.ebuild42
-rw-r--r--dev-util/radare2/radare2-1.2.0.ebuild43
-rw-r--r--dev-util/radare2/radare2-1.3.0.ebuild43
-rw-r--r--dev-util/radare2/radare2-1.4.0-r1.ebuild45
-rw-r--r--dev-util/radare2/radare2-1.4.0.ebuild45
-rw-r--r--dev-util/radare2/radare2-1.6.0.ebuild45
-rw-r--r--dev-util/radare2/radare2-9999.ebuild31
13 files changed, 456 insertions, 0 deletions
diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest
new file mode 100644
index 000000000000..58734945eb22
--- /dev/null
+++ b/dev-util/radare2/Manifest
@@ -0,0 +1,21 @@
+AUX radare2-0.9.9-nogit.patch 352 SHA256 cb87e4093d4ace137f48e79d899576e89c91805934b0ad0f0b1c5f4a965332f9 SHA512 5a84c2f768b60dc6ffb35130f409714e0ffc4cbc6fb9e08bc4bf86d28651060398d809fed8abafcd56cabde86aa9e8672df77212f0d8c0b6dfc056b243e1c270 WHIRLPOOL fcbc1358c844e486366f766061b82c2ae72f7d513b2e504e7b488057e88f1af732667a5f02b05a8c8f91642799f3fdd47ad8f17e82f9659377c651d3e8d9c7d7
+AUX radare2-1.1.0-openssl-1.1.0c.patch 917 SHA256 250cd5d020c26627cde4462d98cae74b02e7b3baae2273bcbc0c482a868f1058 SHA512 c3829ce72751dca4d2e24e88d6bf4a03852f23699e5a8f6e64ede4c1304a5f00ba244995950f564531deb6552d9b0f7766cd991ef8205c579fd60db19a722714 WHIRLPOOL 3e2abd56c149bd7c2c68d82b18f2dc83728dbf0786ed4edae28cc1b3c54a03be7d76263911d0603bebbb73f2c018fc87cdda0f2116c607a2a718a8e8120badf1
+DIST radare2-0.10.6.tar.xz 5082028 SHA256 8e887526b22bdf7839fe10779c8da11d6156a5999382c2fa7bf6791a3f6a9d45 SHA512 1e33a831244c8bfc6ab317ed74ec108730f361550f504d48d8783e6c3bfc2ce98e4feac08b37b4b8997f0a83a456fe26685c6f4847798dea841a97b259dcef8b WHIRLPOOL 360d5ec9fd5fa02a7dca12a8bb5f388e1684419d757bd0767f33ec56e60354d3dafbca440e3d0b584d37a42a9aba12e6465f42acab71af2c584c30ccf3bb4f6b
+DIST radare2-1.0.2.tar.xz 5014612 SHA256 91fde12126e29bf8bbd6c4aad9e5b226b96afd289e55a52db3df872dc580a294 SHA512 cd60246aaf612818f8bc9fc77ce746a33b92b28ba7ee80988d56f7060dfa26072ada17a01b56c32d6d1f2bc2d98781c806a86f9e1e38aaf5c400ed54aaaff9b1 WHIRLPOOL 5c3f23fd938235d526345f3df2c3dafb5fa29a290bb96cdda79682057e37bca585fb5542cd2eb3d600e7b9a4901fb45b2bb8148c7f328053f99a08f7da43335e
+DIST radare2-1.1.0.tar.gz 8438634 SHA256 7bc1e206a2b4def6bdb8684c2af0281b007986a0b5b5da652bd03be264ca0fa5 SHA512 a99ac488f78c52fa9d6fbfe095b0aae10864f4a591721ee3679310ada3ef5e2a069ad919d1f7472d0dcd2c78569aac584086a7e975f1946194b346c94e4873b7 WHIRLPOOL 0d00f06eac3c6a7f3db1b4dc6b728714c73ea35eb5bbdd8281fe01052bd8519e19f8737c794c51f098d1fde9feaa8f1f7959815afad7a87ea8aaab36e862f834
+DIST radare2-1.2.0.tar.gz 8461187 SHA256 3660f4f8c1490194f5b5b80d7e21e1cc507e6aff2551008074e632c22549b941 SHA512 8419d92c9db2f1312bb188317af53497a75e0c78504d6b9c3fee7cb90f9219d6801543a2bc68f2dd3fc846d75ba60ce3f8d4cde61c99ec1e3c5f63c8c2b8dd88 WHIRLPOOL 1cc31557e4a6882251a517b24f5df59fb2fb9ad083e6670c42d392ab79a8ffd0d56f11f82512ee59f1c233edef3b3c5b08cbbb936ffe5e22753889987e313c2f
+DIST radare2-1.3.0.tar.gz 8517265 SHA256 adf9bbfb36b5cff986e8218455d75d7410e41e2fb4a380b99d1bcf6d36dce222 SHA512 ef410f8c5c0b931dab452c50b694313f26898a5f36c8286d18f56889e056658331cee87097a0e3028b8f53f25ec9c4354f6c78a41365a74d5bc67a38a6510174 WHIRLPOOL d3d5877814893308c0aa344740ef857d5814ec465d1f7deee73e226f4e1609ed9a75b3395c92fc382815464d1ceac3409bf09aade9f0f2f74cda93d3b2937ed8
+DIST radare2-1.4.0.tar.gz 8719644 SHA256 bf6e9ad94fd5828d3936563b8b13218433fbf44231cacfdf37a7312ae2b3e93e SHA512 5d022759e53f762094e237a29780d63dc4f39601ceacb22f58206bbb83a38a8938ea2321e49426b03421dcb0f6493a96f18905f8bf81025293f9c1a8087a4a0a WHIRLPOOL a86f5389d4905b970b22cd79b217d71a37a980b780b53078e5bcaf623d66e24999fb77a9d9b527986f5e9193b72f6b158e8dbefbed4d2557bdd9f0abffc88199
+DIST radare2-1.6.0.tar.gz 5752191 SHA256 759d1c65dcd69d1189fc73e427c568ec234a7ca1958c19f5001c255dd31a3787 SHA512 6e1485c4edaa007790c07a8cfe190c4ea3e4df843620e2575587478e60f1be3dacaa0c545c84e135a51d9f7aff61c27f712c0ffa6038b556d347151f2a3cd2bb WHIRLPOOL 6a35b3b58bc5ec248de53ca3970c4791a8d837b330109f832ccd12d0660537ca0fa62101b806dc29f1123bd48d4139bd7ef1856f5fdbd31afe67daea384f1872
+EBUILD radare2-0.10.6.ebuild 735 SHA256 f79177878d006c8f99296f6a807ea9347b7d7e662e3d8c3bbb96433873297a70 SHA512 9d49a23c3cccab934b84a121c6621ac1660dfb3815dadabb773bfb76ba60560d6f58d5d0b3a193f2c69f3522fd5935d2f1dab7ce37a1b5bf61eb26eb28229777 WHIRLPOOL 6fd83e33c8bba1de1d42fffd2fc9916b363fba09b552efe6eaac75ebce94330114c87a45d79817a54295fbde5afe9d97e72fd2db3f38c77a5856e804be350696
+EBUILD radare2-1.0.2.ebuild 735 SHA256 f79177878d006c8f99296f6a807ea9347b7d7e662e3d8c3bbb96433873297a70 SHA512 9d49a23c3cccab934b84a121c6621ac1660dfb3815dadabb773bfb76ba60560d6f58d5d0b3a193f2c69f3522fd5935d2f1dab7ce37a1b5bf61eb26eb28229777 WHIRLPOOL 6fd83e33c8bba1de1d42fffd2fc9916b363fba09b552efe6eaac75ebce94330114c87a45d79817a54295fbde5afe9d97e72fd2db3f38c77a5856e804be350696
+EBUILD radare2-1.1.0.ebuild 791 SHA256 bb682c299a3e9d5418de0f45fd7513d3b8f476f81241ee18e5e99924ea9a49cb SHA512 05f625d98263a245b72f097b3d3823c2291638fe577c9d97aefa0a1db3aba177214b73b214522b7adca1a2332f802dff77c377f00c0220699066d2ac7ceb1f8f WHIRLPOOL 3fc6021d118d162c70be8ff1aa0afe0ec8183bc61b6fd51e1d896bb16d32e87a90c605075c4d19b4be51f77b2669ae68de69d96112e56d2ac832d4a141c4ecbc
+EBUILD radare2-1.2.0.ebuild 733 SHA256 262aa204d848d6b123b3d57998ddf92c461d3ac85dba09af95f0197dac19c6f1 SHA512 09ecdc22c51553047632a38db89185ca32d1cf3597a09d12c532db56f37f4b62e6a2523222e4f78219fa761048005a8d2d27a2e5b383f5cd75b0c23b97c1e77e WHIRLPOOL a32d29b35591d22266558ea21694a72c9b11bdc5cfb7a341cbbe5504da925b5fc00207547da0ae4da689509505b93f5c11a0d4f5ca2dca224987348359a80999
+EBUILD radare2-1.3.0.ebuild 733 SHA256 262aa204d848d6b123b3d57998ddf92c461d3ac85dba09af95f0197dac19c6f1 SHA512 09ecdc22c51553047632a38db89185ca32d1cf3597a09d12c532db56f37f4b62e6a2523222e4f78219fa761048005a8d2d27a2e5b383f5cd75b0c23b97c1e77e WHIRLPOOL a32d29b35591d22266558ea21694a72c9b11bdc5cfb7a341cbbe5504da925b5fc00207547da0ae4da689509505b93f5c11a0d4f5ca2dca224987348359a80999
+EBUILD radare2-1.4.0-r1.ebuild 837 SHA256 17d601d343d2c6f1217fe81ddd96cef3240d84391557ea21d620eb6801a8a18b SHA512 e0148f02ceabc72b08617f338e64a35397081cc880974c7b5d43def77b66c46663ac5b6e5ff4825f2c64dd9e770a358f87dd70f0da849cf31730069e6da10606 WHIRLPOOL 679e214742a245a94b6eef1f41f1a76967b65e410737668d7dc2a4970e8e860d0b834fbe82363d7c5561b50191aafc720834a5d993964606ca33236f820bcb8c
+EBUILD radare2-1.4.0.ebuild 837 SHA256 17d601d343d2c6f1217fe81ddd96cef3240d84391557ea21d620eb6801a8a18b SHA512 e0148f02ceabc72b08617f338e64a35397081cc880974c7b5d43def77b66c46663ac5b6e5ff4825f2c64dd9e770a358f87dd70f0da849cf31730069e6da10606 WHIRLPOOL 679e214742a245a94b6eef1f41f1a76967b65e410737668d7dc2a4970e8e860d0b834fbe82363d7c5561b50191aafc720834a5d993964606ca33236f820bcb8c
+EBUILD radare2-1.6.0.ebuild 861 SHA256 399475512ae8f5e572c2f6e329a34192a6560926f33a76dbfa7358a8ae018be2 SHA512 b1f9c7dc798d5e47dc0ef34de6d574aceecdfd24b495ce93268ef6938ca43ea229dd2071687acab5c4e883591516300fb18157b7c24cb761a48eefc441020a45 WHIRLPOOL ad58c41e71e005272ad393388b85ba929503ad91b393e3dab765e155c0871d4a7822d054a1a53cf0b1e9d44faa642d5a99899d89f850c8ae01b566f8cc8fc6cf
+EBUILD radare2-9999.ebuild 666 SHA256 e8ab43a4f5887381d3d9d70442297185ff6785b5fe227bb87521b5d566d78bba SHA512 cafa5ff6e8d1c25371228260accf564ff3aaae72e0571a67070537aaa18add189eec8d257c238e39c4466b5b4324c34b6b846f157e96a0252c52fd062262179e WHIRLPOOL 8728c126d84b36b3f50b205c9b534dc3492f2450989937f09bd9c63f46cc92c237fd54e7c10737e36ce345efeee47ad4978be9f246f9af6f7d712c0ae3cfabc4
+MISC ChangeLog 4607 SHA256 0849da5ab6d072ad7593d03e9b9b22d917dd2595cfbf2c13f24428ad36d2dca0 SHA512 eed5b7c00d816f0704b108ab36b69cb017ee2db9765c1faec063d4cf1d7b51d707c6d3cd94e29b754327cf9a786aa8e2337e327e1fb2b2dcce2c295307bac9d2 WHIRLPOOL 164b4dc5cd791295f748fed843fc23bb2108da6bc7d844cf83e862536ede59edcabca277462a964ae14bb373328c77ccb3f01125dd3205d0843e589d45d094e2
+MISC ChangeLog-2015 791 SHA256 4dd712e34e1b2e2ab9be03f8f9ad678dfd8e6a26da95bb9ae76c9a4f2d618430 SHA512 b618b8c70903664d4f78ce1318761460114c52a6b83320f22bef114988919a3c5a9961e01c16b40a1e0b063f4a4f7e367af93c9977dfb0c2d675e3c325541198 WHIRLPOOL 694b555dd75664961bee62ad4fe60394ad7a38e757c5d67218a174c46811557b10271575ee62c2be1617f3019b3e703dbcda281d159cb6d2c8af093ab1f60e9e
+MISC metadata.xml 472 SHA256 ca3ab277752c9a2b90825a7cdfbeb2860c69f67baa3eec158028d0c74c9e22b8 SHA512 110f9ec2d6dddd20703b9cf6ec8cd77e2459f67aca74065211dc30888cea9c9154128da8a2f15810063de9c4867e3e1a31658d3c5cb27be44824342784b67365 WHIRLPOOL 3c1f8372953016360880cf500de78526a1ece9b5386616e740fb91ca1790db56abac41da6665b4390ae024457af4e443cc95b1f259845975b8a2981dc3afbfd0
diff --git a/dev-util/radare2/files/radare2-0.9.9-nogit.patch b/dev-util/radare2/files/radare2-0.9.9-nogit.patch
new file mode 100644
index 000000000000..9a6979e348a4
--- /dev/null
+++ b/dev-util/radare2/files/radare2-0.9.9-nogit.patch
@@ -0,0 +1,13 @@
+capstone-sync does not work correctly for release tarballs.
+It tries to sync/revert from upstream git repo unconditionaly.
+diff --git a/shlr/Makefile b/shlr/Makefile
+index a1796ce..f8d179a 100644
+--- a/shlr/Makefile
++++ b/shlr/Makefile
+@@ -144,5 +144,5 @@ else
+
+ ifeq ($(CS_TAR),)
+-capstone: capstone-sync
++capstone: # capstone-sync
+
+ capstone-sync:
diff --git a/dev-util/radare2/files/radare2-1.1.0-openssl-1.1.0c.patch b/dev-util/radare2/files/radare2-1.1.0-openssl-1.1.0c.patch
new file mode 100644
index 000000000000..28e2f55126f8
--- /dev/null
+++ b/dev-util/radare2/files/radare2-1.1.0-openssl-1.1.0c.patch
@@ -0,0 +1,31 @@
+commit ecd8cf26c2647a1f455595209fcf2d6bfb72240f
+Author: eroen <eroen@users.noreply.github.com>
+Date: Tue Jan 3 23:45:07 2017 +0100
+
+ Disable deprecated initialization for openssl 1.1.0 (#6423)
+
+ Openssl 1.1.0 handles this initialization internally. Leaving the calls in
+ place causes "undefined reference" errors if openssl was built with
+ `--api=1.1.0`.
+
+ X-Gentoo-Bug: 604576
+ X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604576
+
+diff --git a/libr/socket/socket.c b/libr/socket/socket.c
+index 1e30120fb..1ba87e77e 100755
+--- a/libr/socket/socket.c
++++ b/libr/socket/socket.c
+@@ -116,11 +116,13 @@ R_API RSocket *r_socket_new (int is_ssl) {
+ s->sfd = NULL;
+ s->ctx = NULL;
+ s->bio = NULL;
++#if OPENSSL_VERSION_NUMBER < 0x1010000fL
+ if (!SSL_library_init ()) {
+ r_socket_free (s);
+ return NULL;
+ }
+ SSL_load_error_strings ();
++#endif
+ }
+ #endif
+ return s;
diff --git a/dev-util/radare2/metadata.xml b/dev-util/radare2/metadata.xml
new file mode 100644
index 000000000000..dc1faaf6b746
--- /dev/null
+++ b/dev-util/radare2/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>davidroman96@gmail.com</email>
+ <name>David Roman</name>
+ </maintainer>
+ <use>
+ <flag name='system-capstone'>Use <pkg>dev-libs/capstone</pkg> instead of bundled copy.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/radare2/radare2-0.10.6.ebuild b/dev-util/radare2/radare2-0.10.6.ebuild
new file mode 100644
index 000000000000..17b40b0741fb
--- /dev/null
+++ b/dev-util/radare2/radare2-0.10.6.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://www.radare.org/get/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+}
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # 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
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.0.2.ebuild b/dev-util/radare2/radare2-1.0.2.ebuild
new file mode 100644
index 000000000000..17b40b0741fb
--- /dev/null
+++ b/dev-util/radare2/radare2-1.0.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://www.radare.org/get/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+}
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # 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
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.1.0.ebuild b/dev-util/radare2/radare2-1.1.0.ebuild
new file mode 100644
index 000000000000..93ff4e14e4ef
--- /dev/null
+++ b/dev-util/radare2/radare2-1.1.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+ epatch "${FILESDIR}"/${P}-openssl-1.1.0c.patch
+}
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # 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
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.2.0.ebuild b/dev-util/radare2/radare2-1.2.0.ebuild
new file mode 100644
index 000000000000..fa1392fa1166
--- /dev/null
+++ b/dev-util/radare2/radare2-1.2.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # 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
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.3.0.ebuild b/dev-util/radare2/radare2-1.3.0.ebuild
new file mode 100644
index 000000000000..fa1392fa1166
--- /dev/null
+++ b/dev-util/radare2/radare2-1.3.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # 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
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.4.0-r1.ebuild b/dev-util/radare2/radare2-1.4.0-r1.ebuild
new file mode 100644
index 000000000000..397bcc5a11f2
--- /dev/null
+++ b/dev-util/radare2/radare2-1.4.0-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl +system-capstone"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+ system-capstone? ( dev-libs/capstone:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with system-capstone syscapstone)
+}
+
+src_install() {
+ # 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
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.4.0.ebuild b/dev-util/radare2/radare2-1.4.0.ebuild
new file mode 100644
index 000000000000..397bcc5a11f2
--- /dev/null
+++ b/dev-util/radare2/radare2-1.4.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl +system-capstone"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+ system-capstone? ( dev-libs/capstone:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with system-capstone syscapstone)
+}
+
+src_install() {
+ # 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
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.6.0.ebuild b/dev-util/radare2/radare2-1.6.0.ebuild
new file mode 100644
index 000000000000..6edc67c9c1f3
--- /dev/null
+++ b/dev-util/radare2/radare2-1.6.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl +system-capstone"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+ system-capstone? ( dev-libs/capstone:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with system-capstone syscapstone)
+}
+
+src_install() {
+ # 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
+
+ default
+}
diff --git a/dev-util/radare2/radare2-9999.ebuild b/dev-util/radare2/radare2-9999.ebuild
new file mode 100644
index 000000000000..4c5adb60d123
--- /dev/null
+++ b/dev-util/radare2/radare2-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+is_live() { [[ ${PV} == 9999* ]]; }
+
+is_live && inherit git-r3
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+is_live || SRC_URI="http://www.radare.org/get/${P}.tar.xz"
+EGIT_REPO_URI="https://github.com/radare/radare2"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ssl +system-capstone"
+
+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)
+}