diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-12-25 10:51:39 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-12-25 11:01:30 +0000 |
commit | 6f0e45adb6ea2e12900199842770f817ba3facb6 (patch) | |
tree | d6bb742ef6c0746d50ba9bbabdb7cdb2063313dc /dev-util | |
parent | www-client/midori: [QA] Run cmake-utils_src_prepare (diff) | |
download | gentoo-6f0e45adb6ea2e12900199842770f817ba3facb6.tar.gz gentoo-6f0e45adb6ea2e12900199842770f817ba3facb6.tar.bz2 gentoo-6f0e45adb6ea2e12900199842770f817ba3facb6.zip |
dev-util/radare2: bump up to 2.2.0
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/radare2/Manifest | 1 | ||||
-rw-r--r-- | dev-util/radare2/radare2-2.2.0.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest index 223673c2fb49..9744ce2f744e 100644 --- a/dev-util/radare2/Manifest +++ b/dev-util/radare2/Manifest @@ -1 +1,2 @@ DIST radare2-2.1.0.tar.gz 5954222 BLAKE2B 9128a01d40ef1401d457f1fa5610ad7bbda92021e6e16fd70e9488bdb11be923c3d0f453e49a7bf78203c320ec2f1b2276925db2ae6eeaad90100ae0c2724b56 SHA512 38a907834e21967a83943e62cb29d8097e0522ff71ea61a2e3ab9e5263c3884ce28c17fb3ca9201c2b9f341e1b066ed0899e5152e146e61fc4f650f319299cd0 +DIST radare2-2.2.0.tar.gz 6145228 BLAKE2B e85d2243b477f5e233d4cb1989452f3bce798e356b8022eaa7b90ca6027ee01365868c6b933a3c3470ef0d80e107d955d4127e55ee7664e829b44259facd1863 SHA512 e632ca3ffdeefc394e571b5ae7f0619cbbb93c657ff1ef316771e1d10089fbad98dc08b6e7d152e664a4c16e97d4519c1c6445fe737dbd4e3d296bc93c3ee410 diff --git a/dev-util/radare2/radare2-2.2.0.ebuild b/dev-util/radare2/radare2-2.2.0.ebuild new file mode 100644 index 000000000000..2cf3090aec73 --- /dev/null +++ b/dev-util/radare2/radare2-2.2.0.ebuild @@ -0,0 +1,56 @@ +# 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 + +LICENSE="GPL-2" +SLOT="0" +IUSE="ssl libressl +system-capstone" + +RDEPEND=" + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl: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 + + insinto /usr/share/zsh/site-functions + doins doc/zsh/_* + + newbashcomp doc/bash_autocompletion.sh "${PN}" + bashcomp_alias "${PN}" rafind2 r2 rabin2 rasm2 radiff2 + + # 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 +} |