diff options
Diffstat (limited to 'dev-util/radare2')
-rw-r--r-- | dev-util/radare2/Manifest | 1 | ||||
-rw-r--r-- | dev-util/radare2/radare2-4.2.1.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest index f67e909921db..d0a4d3281840 100644 --- a/dev-util/radare2/Manifest +++ b/dev-util/radare2/Manifest @@ -3,3 +3,4 @@ DIST radare2-3.8.0.tar.gz 7510078 BLAKE2B c3dcc28c0cda8c7c5f8dbc6d35c3d15fa73fec DIST radare2-3.9.0.tar.gz 7519146 BLAKE2B cc64567c3ce4c0c764f288fcd8110a7ce25cc15fb6a977fc489ce7ad9b697d628d87ff9280601fd00a53a79fb8de3b7fdc83dff56463addfa80f3528ccb733ab SHA512 7198c6fb35778d93fdbba5dd3dceddb7af21d555fb42f22752c8898ccba44fdcba92a6c502ddc8bdda71b883df392168ece807325b53cf75537b4ec59d86e42a DIST radare2-4.0.0.tar.gz 7558070 BLAKE2B 9c7cb4492832c97c4f71c9583ecd78af843551fa0d02a07b29cf76c04062ce9e71e8d8fd72e87260311896f61ec709e577b328215c69d52598218d566f98d543 SHA512 3877088f61d8fac6a8fa12a35ef895904473e1db7e7428961eb06822ff1218338cd5b9ab16f78773413b31fec7463963b0cc3f801c661ce17cd40c8ddd423d76 DIST radare2-4.2.0.tar.gz 8074915 BLAKE2B c82bae7eff90a1436ce0963141ba631e8d23f66fbbba3afd52001ab83ef84162dc5e92d251bd47a2670c470efe6dd269357ce020b86d437bb9ffb605a2d59f3a SHA512 e1e3f825f1faa1df035bf4658b4dbfb03a148353c7d74bf444e96912751eedf5d3d564b3fd5dd60667cac347710e56db149bf0987ee1ea26fafbc5c4ddb56dc1 +DIST radare2-4.2.1.tar.gz 8077107 BLAKE2B 490b063d7340b60cec1f77577985818c9dec34dd9206ce7d9db29f5d1836d515044e67d143f81fd7f6c58269f6f62f0bd87adcdb7cfb2cca5c0120d98ea29fd3 SHA512 aed37f6ff7ae3a25e809e8fbab3ef1c370dba80b7b8ef440a025edfbda23314ce20990b3e89589fe6bee427b2beebabd67a9e1def603e53ca5078bf32bdc4e6c diff --git a/dev-util/radare2/radare2-4.2.1.ebuild b/dev-util/radare2/radare2-4.2.1.ebuild new file mode 100644 index 000000000000..c3c2387a8dcf --- /dev/null +++ b/dev-util/radare2/radare2-4.2.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 eutils + +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/radareorg/radare2" +else + SRC_URI="https://github.com/radareorg/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="ssl libressl" + +RDEPEND=" + dev-libs/capstone:0= + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_configure() { + econf \ + --without-libuv \ + --with-syscapstone \ + $(use_with ssl openssl) +} + +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 +} |