diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2021-06-11 22:00:57 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2021-06-11 22:00:57 +0100 |
commit | 9ba90652332bde86a298db25799e8b673ad0727a (patch) | |
tree | 1c031fd3a860fab57cad8b8bd27cab9ba5d504f8 /dev-util | |
parent | dev-libs/libksba: stable 1.5.1 for hppa, bug #795270 (diff) | |
download | gentoo-9ba90652332bde86a298db25799e8b673ad0727a.tar.gz gentoo-9ba90652332bde86a298db25799e8b673ad0727a.tar.bz2 gentoo-9ba90652332bde86a298db25799e8b673ad0727a.zip |
dev-util/radare2: bump up to 5.3.1
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/radare2/Manifest | 1 | ||||
-rw-r--r-- | dev-util/radare2/radare2-5.3.1.ebuild | 78 | ||||
-rw-r--r-- | dev-util/radare2/radare2-9999.ebuild | 5 |
3 files changed, 83 insertions, 1 deletions
diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest index 96c1183830c4..ee8bc11230f7 100644 --- a/dev-util/radare2/Manifest +++ b/dev-util/radare2/Manifest @@ -1,3 +1,4 @@ DIST radare2-4.5.1.tar.gz 8266567 BLAKE2B 0d23c1d47dd79ffd9398ca7b2c8b383ba6a7e3ec662046d1111ab34cabcdaaf1fdd449686433b3229e3c22c31c705530b0a85bbd22b5fc79891a5ad292ba0ff1 SHA512 f08a4cd1e0d65643463d9f9dbb1aacfe793c7b411ec820a18b75a5975d265cfc2cf91e593522c8823aa369098ded21415939acb07c84d8acd102889bf5aed899 DIST radare2-5.2.1.tar.gz 8302475 BLAKE2B 2edfa30d15214ac4dac6065349c808b539619413e7a100459efd5bf74e95c2483edb1ec13de8387d3a7dcfe25a2922ee377c37f4781c374df04e63fe98910b7e SHA512 c744f5c8fff163022a7a9a913fe34dfa0dee0d9ab3b18bd4cc038c2d487dbfeba2f1523aa12a3166a2c22c45bcc71e802fae101b72fc2e6adab96b522c0de17b DIST radare2-5.3.0.tar.gz 8498461 BLAKE2B eabee04f347a71cefac4dbd3516cb3161b6e4f1f831285039ece81981121a058d3b39224c68afd4cea38fea2d99b23e770210ebca6b01e73c21882e80de757b5 SHA512 f9d5ffd6f39efdcd447c2bc65ad3129576292a11942c99da8d0c10217621a6d1db72baaf7badadcbbaf75c54be0439a9257de4f56d47cefdce457ffb08167ff8 +DIST radare2-5.3.1.tar.gz 8500461 BLAKE2B 8b29e81c90f477e313f5d14dea707f3e8d47c9abbe1f9ca2c7caef98a85b38a5b5e37a31063be289c55fda041e10b8403895f863dd602091ab5307213605260d SHA512 34c96c7c863fb8a59f1d03539375d5b8f31f6021dc84ce943daa163d8a0227bf3156963cc187c366790abec4381da6aa987248e76570a498cfcdeb982cb2ffc0 diff --git a/dev-util/radare2/radare2-5.3.1.ebuild b/dev-util/radare2/radare2-5.3.1.ebuild new file mode 100644 index 000000000000..470b4d0d33f8 --- /dev/null +++ b/dev-util/radare2/radare2-5.3.1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 toolchain-funcs + +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" + +RDEPEND=" + dev-libs/libzip + dev-libs/xxhash + sys-apps/file + sys-libs/zlib + dev-libs/capstone:0= + ssl? ( dev-libs/openssl:0= ) +" +DEPEND=" + ${RDEPEND} + dev-util/gperf +" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + # Fix hardcoded docdir for fortunes + sed -i -e "/^#define R2_FORTUNES/s/radare2/$PF/" \ + libr/include/r_userconf.h.acr + default +} + +src_configure() { + # Ideally these should be set by ./configure + tc-export CC AR LD OBJCOPY RANLIB + export HOST_CC=${CC} + + econf \ + --without-libuv \ + --with-syscapstone \ + --with-sysmagic \ + --with-sysxxhash \ + --with-syszip \ + $(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 + + # These are not really docs. radare assumes + # uncompressed files: bug #761250 + docompress -x /usr/share/doc/${PF}/fortunes.{creepy,fun,nsfw,tips} +} diff --git a/dev-util/radare2/radare2-9999.ebuild b/dev-util/radare2/radare2-9999.ebuild index a5b8b7c3cfd6..470b4d0d33f8 100644 --- a/dev-util/radare2/radare2-9999.ebuild +++ b/dev-util/radare2/radare2-9999.ebuild @@ -28,7 +28,10 @@ RDEPEND=" dev-libs/capstone:0= ssl? ( dev-libs/openssl:0= ) " -DEPEND="${RDEPEND}" +DEPEND=" + ${RDEPEND} + dev-util/gperf +" BDEPEND="virtual/pkgconfig" src_prepare() { |