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 2CEE9139082 for ; Tue, 28 Nov 2017 21:09:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56187E0BF4; Tue, 28 Nov 2017 21:09:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 35E52E0BF4 for ; Tue, 28 Nov 2017 21:09:10 +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 A65DE33FE60 for ; Tue, 28 Nov 2017 21:09:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 49978AAD7 for ; Tue, 28 Nov 2017 21:09:07 +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: <1511903209.7b9e497628a324e7b2291cf0dd79a73b4dd66757.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/radare2/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/radare2/radare2-2.1.0-r1.ebuild X-VCS-Directories: dev-util/radare2/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 7b9e497628a324e7b2291cf0dd79a73b4dd66757 X-VCS-Branch: master Date: Tue, 28 Nov 2017 21:09:07 +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: ef7028da-1c94-421c-9b9b-365acf1a3c4f X-Archives-Hash: 21672c9695f86875d1d5adb0b022f10c commit: 7b9e497628a324e7b2291cf0dd79a73b4dd66757 Author: David Roman gmail com> AuthorDate: Mon Nov 27 20:52:53 2017 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Tue Nov 28 21:06:49 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b9e4976 dev-util/radare2: add bash-completion support Closes: https://github.com/gentoo/gentoo/pull/6327 dev-util/radare2/radare2-2.1.0-r1.ebuild | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/dev-util/radare2/radare2-2.1.0-r1.ebuild b/dev-util/radare2/radare2-2.1.0-r1.ebuild new file mode 100644 index 00000000000..f69a9666f3b --- /dev/null +++ b/dev-util/radare2/radare2-2.1.0-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils bash-completion-r1 + +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 bash-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 + + if use bash-completion; then + newbashcomp doc/bash_autocompletion.sh "${PN}" + 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 +}