From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 37BEC139694 for ; Sat, 29 Jul 2017 20:47:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9207A1FC064; Sat, 29 Jul 2017 20:47:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 63E741FC064 for ; Sat, 29 Jul 2017 20:47:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 209EC3419BE for ; Sat, 29 Jul 2017 20:47:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 43BB074B7 for ; Sat, 29 Jul 2017 20:47:31 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1501361227.8b23a01ee9c711bd6faec409c95c0b46f76abef2.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/radare2/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/radare2/metadata.xml dev-util/radare2/radare2-1.4.0-r1.ebuild dev-util/radare2/radare2-9999.ebuild X-VCS-Directories: dev-util/radare2/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 8b23a01ee9c711bd6faec409c95c0b46f76abef2 X-VCS-Branch: master Date: Sat, 29 Jul 2017 20:47:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 65c41fa6-4281-40b9-8395-2a35babd57db X-Archives-Hash: 1336873d33302ce02eaf947d4a1d29c9 commit: 8b23a01ee9c711bd6faec409c95c0b46f76abef2 Author: Sergei Trofimovich gentoo org> AuthorDate: Sat Jul 29 20:45:20 2017 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat Jul 29 20:47:07 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b23a01e dev-util/radare2: use system-installed capstone, bug #592220 Reported-by: Anton Bolshakov Bug: https://bugs.gentoo.org/592220 Signed-off-by: Sergei Trofimovich gentoo.org> dev-util/radare2/metadata.xml | 3 +++ dev-util/radare2/radare2-1.4.0-r1.ebuild | 45 ++++++++++++++++++++++++++++++++ dev-util/radare2/radare2-9999.ebuild | 6 +++-- 3 files changed, 52 insertions(+), 2 deletions(-) diff --git a/dev-util/radare2/metadata.xml b/dev-util/radare2/metadata.xml index 248be000563..43119efc781 100644 --- a/dev-util/radare2/metadata.xml +++ b/dev-util/radare2/metadata.xml @@ -6,4 +6,7 @@ Sergei Trofimovich Primary Maintainer + + Use dev-libs/capstone instead of bundled copy. + 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 00000000000..397bcc5a11f --- /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-9999.ebuild b/dev-util/radare2/radare2-9999.ebuild index cda7b0773b9..4c5adb60d12 100644 --- a/dev-util/radare2/radare2-9999.ebuild +++ b/dev-util/radare2/radare2-9999.ebuild @@ -14,10 +14,11 @@ EGIT_REPO_URI="https://github.com/radare/radare2" LICENSE="GPL-2" SLOT="0" -IUSE="ssl" +IUSE="ssl +system-capstone" RDEPEND=" ssl? ( dev-libs/openssl:0= ) + system-capstone? ( dev-libs/capstone:0= ) " DEPEND="${RDEPEND} virtual/pkgconfig @@ -25,5 +26,6 @@ DEPEND="${RDEPEND} src_configure() { econf \ - $(use_with ssl openssl) + $(use_with ssl openssl) \ + $(use_with system-capstone syscapstone) }