public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/radare2/
Date: Sat, 27 May 2023 07:49:30 +0000 (UTC)	[thread overview]
Message-ID: <1685173760.e7b7ea34b8674590c9eb28f7ab1e1dea768eae47.juippis@gentoo> (raw)

commit:     e7b7ea34b8674590c9eb28f7ab1e1dea768eae47
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon May 22 12:57:56 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat May 27 07:49:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7b7ea34

dev-util/radare2: add 5.8.6

Closes: https://bugs.gentoo.org/904279
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31125
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-util/radare2/Manifest             |   5 ++
 dev-util/radare2/radare2-5.8.6.ebuild | 125 ++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)

diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest
index 52d2f8271e66..d4cd3ddfd708 100644
--- a/dev-util/radare2/Manifest
+++ b/dev-util/radare2/Manifest
@@ -2,4 +2,9 @@ DIST radare2-5.8.2-capstone-4.0.2.tar.gz 3439542 BLAKE2B 435729a8fef2dce64956353
 DIST radare2-5.8.2-vector35-arm64.tar.gz 1021315 BLAKE2B 8741de83cddda878536627c0ff6be1f7d4842cf0fefeae2895fe751e39768134f6048167d5aa265169bc22b229a8b66ce37f4ef4df3abc2b3e304dc1f1fe17d1 SHA512 9b0fcf9119304e90b3fbed5e0509a819a0a561953681f5e5f408b55db3b0c962dca59c48553cffef21a56772db7871a3987f0f7c07b5538fd4b7d1af005ccdb0
 DIST radare2-5.8.2-vector35-armv7.tar.gz 255278 BLAKE2B 8b5191c48fad2e7602dc2f7053f9c9ea8cca8e9bc5d68a0cdb7ccff9ecc65c5d1ff6a434e28488dbd6fb71fc7482fce08a0a69c358e5c3d6c017ac1e4cee3b21 SHA512 40c048b29856f48300d4539bc7bda38e6ceae1e8d4d9d131c4a7546b6e26b2fb96309c483b67e2c2290b06cea5fc52a7beb30557d54e89296e7734cc1ab06d10
 DIST radare2-5.8.2.tar.gz 11017554 BLAKE2B 712941ac5871f2201ba806dc7b68ae1825c8dbe896b11aaa6b086651ff28a6d3b7e54b55621e7cc143748d7760ea7007f4dc70232ef16dfe5523a0ab87f0f266 SHA512 3c09d89172ac9a5cee6e52294f10b144237acb31b3d470521a7c8650511a58d1732c73004f2dbb1e6e3c43829e3e310b89d6a8abd5f1fb4fdfd3fea8779a72ec
+DIST radare2-5.8.6-capstone-4.0.2.tar.gz 3439542 BLAKE2B 435729a8fef2dce6495635352101b3befe563c8404efdbb0dccabecbe2bded332221665bacdbcd9043dda72b652b6f29c0e1a548cefb8c64d5b6b9dc174ed3d9 SHA512 7f93534517307b737422a8825b66b2a1f3e1cca2049465d60ab12595940154aaf843ba40ed348fce58de58b990c19a0caef289060eb72898cb008a88c470970e
+DIST radare2-5.8.6-vector35-arm64.tar.gz 1050988 BLAKE2B 889c5a98b6efb45026349ca25b73d39e8a8049fce052d49b5e37d974bff038de85f99f1d7651db6c621b036be2948e29a62e6b8261cab6a9bdfd72442858d7e9 SHA512 433a9e972ee13269a495e94aba335b97892eb2614de1460e055e30d60976989f986ef253b352ba918786d4056e3a4d948a66ea90d25aa5ddf52a276152279c92
+DIST radare2-5.8.6-vector35-armv7.tar.gz 255278 BLAKE2B 8b5191c48fad2e7602dc2f7053f9c9ea8cca8e9bc5d68a0cdb7ccff9ecc65c5d1ff6a434e28488dbd6fb71fc7482fce08a0a69c358e5c3d6c017ac1e4cee3b21 SHA512 40c048b29856f48300d4539bc7bda38e6ceae1e8d4d9d131c4a7546b6e26b2fb96309c483b67e2c2290b06cea5fc52a7beb30557d54e89296e7734cc1ab06d10
+DIST radare2-5.8.6.tar.gz 11119704 BLAKE2B da53500982894a84de0a60640622b6498d3a6cc5236d7141cbd400b76448dc53535c74eef620e13531965c855124065a7f8ccfc3d8622c4e366100dc777e5274 SHA512 cd53ed7519d485253182d8d7d414b8d0927e65dd4d0c9716d0d8819e739c8e5e39deb702d93cb5a2a9425804d9798e6eb0acb58a4b904e25a9ba4fcad2315f47
 DIST radare2-testbins-1f0ea409f2af83fc4d0b685855de9d3b0f9eee41.tar.gz 125596301 BLAKE2B 55b876b09150e780359e753d26143640d410c1c15ace2e29bc06d2163657af2089c5044847f107e20256875c7ea5e7cc72460010df0c662c9da933a0388a3f0e SHA512 44662f0217871a51b856f66e876eb57b2006f6350e6bcfae6629b800197b6f30196caf2474d52881a398fd1d65c68364d870b7de692c9e9a2bd1fab493afe3d0
+DIST radare2-testbins-fbb0059b0a120fbb31d378affd8b47d0996f9676.tar.gz 127037525 BLAKE2B d7387650bb0eeebb2fe247755c9640b1d089f91239a7669da888c13db62147cc0d51bbf17ecf060a789d0319048ee61c8eda9b8477267bd5f53093e1c3b28e98 SHA512 50942dd3f17ccf22b71f3e50fa78e12578966f7cdadbc45ba36719de9117fc0455a74038ed4d9436daa43b74050bea72848841787f7aa660ed765d4644da1fe8

diff --git a/dev-util/radare2/radare2-5.8.6.ebuild b/dev-util/radare2/radare2-5.8.6.ebuild
new file mode 100644
index 000000000000..83d4c245039c
--- /dev/null
+++ b/dev-util/radare2/radare2-5.8.6.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 toolchain-funcs
+
+DESCRIPTION="unix-like reverse engineering framework and commandline tools"
+HOMEPAGE="https://www.radare.org"
+
+ARM64_COMMIT=55d73c6bbb94448a5c615933179e73ac618cf876
+ARMV7_COMMIT=f270a6cc99644cb8e76055b6fa632b25abd26024
+BINS_COMMIT=fbb0059b0a120fbb31d378affd8b47d0996f9676
+CAPSTONE_VER=4.0.2
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/radareorg/radare2"
+else
+	SRC_URI="mirror+https://github.com/radareorg/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz
+		mirror+https://github.com/radareorg/vector35-arch-arm64/archive/${ARM64_COMMIT}.tar.gz -> ${P}-vector35-arm64.tar.gz
+		mirror+https://github.com/radareorg/vector35-arch-armv7/archive/${ARMV7_COMMIT}.tar.gz -> ${P}-vector35-armv7.tar.gz
+		mirror+https://codeload.github.com/capstone-engine/capstone/tar.gz/${CAPSTONE_VER} -> ${P}-capstone-${CAPSTONE_VER}.tar.gz
+		test? ( https://github.com/radareorg/radare2-testbins/archive/${BINS_COMMIT}.tar.gz -> radare2-testbins-${BINS_COMMIT}.tar.gz )
+	"
+
+	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ssl test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="fetch !test? ( test )"
+
+RDEPEND="
+	dev-libs/libzip:=
+	dev-libs/xxhash
+	sys-apps/file
+	sys-libs/zlib
+	ssl? ( dev-libs/openssl:0= )
+"
+DEPEND="
+	${RDEPEND}
+	dev-util/gperf
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-5.8.2-vector35.patch"
+	# Maybe temporary, https://bugs.gentoo.org/891805
+	"${FILESDIR}/${PN}-5.8.2-bundled-capstone.patch"
+)
+
+src_prepare() {
+	default
+
+	mv "${WORKDIR}/capstone-${CAPSTONE_VER}" shlr/capstone || die
+
+	# Hack for vector35 arm plugins
+	mv "${WORKDIR}/vector35-arch-arm64-${ARM64_COMMIT}" libr/arch/p/arm/v35/arch-arm64 || die
+	mv "${WORKDIR}/vector35-arch-armv7-${ARMV7_COMMIT}" libr/arch/p/arm/v35/arch-armv7 || die
+
+	if use test; then
+		cp -r "${WORKDIR}/radare2-testbins-${BINS_COMMIT}" "${S}/test/bins" || die
+		cp -r "${WORKDIR}/radare2-testbins-${BINS_COMMIT}" "${S}" || die
+	fi
+
+	# Fix hardcoded docdir for fortunes
+	sed -i -e "/^#define R2_FORTUNES/s/radare2/$PF/" \
+		libr/include/r_userconf.h.acr || die
+}
+
+src_configure() {
+	# Ideally these should be set by ./configure
+	tc-export CC AR LD OBJCOPY RANLIB
+	export HOST_CC=${CC}
+
+	econf \
+		--without-libuv \
+		--with-sysmagic \
+		--with-sysxxhash \
+		--with-syszip \
+		$(use_with ssl openssl)
+}
+
+src_test() {
+	ln -fs "${S}/binr/radare2/radare2" "${S}/binr/radare2/r2" || die
+	LDFLAGS=""
+	for i in "${S}"/libr/*; do
+		if [[ -d ${i} ]]; then
+			LDFLAGS+="-Wl,-rpath=${i} -L${i} "
+			LD_LIBRARY_PATH+=":${i}"
+		fi
+	done
+	export LDFLAGS LD_LIBRARY_PATH
+	export PKG_CONFIG_PATH="${S}/pkgcfg"
+	PATH="${S}/binr/radare2:${PATH}" emake -C test -k unit-tests || die
+}
+
+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}
+
+	# Create plugins directory although it's currently unsupported by radare2
+	keepdir "/usr/$(get_libdir)/radare2/${PV}" || die
+}


             reply	other threads:[~2023-05-27  7:49 UTC|newest]

Thread overview: 114+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-27  7:49 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-14  7:14 [gentoo-commits] repo/gentoo:master commit in: dev-util/radare2/ Joonas Niilola
2024-07-27  7:06 Joonas Niilola
2024-06-19 18:19 John Helmert III
2024-04-14 16:09 Matthew Smith
2024-04-14 16:09 Matthew Smith
2023-06-18 19:02 John Helmert III
2023-06-17 20:12 John Helmert III
2023-06-09  4:43 John Helmert III
2023-01-23  3:37 John Helmert III
2022-10-02 14:53 Florian Schmaus
2022-09-07 18:55 John Helmert III
2022-09-07 18:55 John Helmert III
2022-08-11 10:55 Sam James
2022-07-16 16:51 John Helmert III
2022-05-11  2:11 Sam James
2022-04-26  5:51 Joonas Niilola
2022-04-26  5:51 Joonas Niilola
2022-04-25  6:57 Joonas Niilola
2021-07-23  8:05 Sergei Trofimovich
2021-07-23  7:33 Sergei Trofimovich
2021-06-19  9:01 Sergei Trofimovich
2021-06-11 21:01 Sergei Trofimovich
2021-06-11 21:01 Sergei Trofimovich
2021-06-05 10:50 Sergei Trofimovich
2021-05-09 11:53 Sergei Trofimovich
2021-05-01 20:44 Sergei Trofimovich
2021-04-24 23:11 Sergei Trofimovich
2021-04-24 12:37 Sergei Trofimovich
2021-04-12 22:50 Sam James
2021-02-12  8:22 Sergei Trofimovich
2021-02-11 22:57 Sergei Trofimovich
2021-01-28  8:09 Sergei Trofimovich
2021-01-27  7:31 Sergei Trofimovich
2021-01-23 11:28 Sergei Trofimovich
2020-12-26 19:26 Sergei Trofimovich
2020-12-24 18:00 Sergei Trofimovich
2020-12-24 18:00 Sergei Trofimovich
2020-10-18 12:31 Sergei Trofimovich
2020-09-03 22:28 Sergei Trofimovich
2020-07-18 22:23 Sergei Trofimovich
2020-05-29 22:13 Sergei Trofimovich
2020-05-02 17:51 Sergei Trofimovich
2020-04-14  8:19 Sergei Trofimovich
2020-03-06  9:06 Sergei Trofimovich
2020-03-05 17:52 Sergei Trofimovich
2020-02-12 22:32 Sergei Trofimovich
2020-02-02 14:47 Sergei Trofimovich
2020-02-02 14:47 Sergei Trofimovich
2020-01-22 22:14 Sergei Trofimovich
2019-10-29 22:29 Sergei Trofimovich
2019-09-17 21:48 Sergei Trofimovich
2019-09-17 21:48 Sergei Trofimovich
2019-09-03 18:38 Sergei Trofimovich
2019-08-14 21:35 Sergei Trofimovich
2019-06-24 22:10 Sergei Trofimovich
2019-06-22  8:21 Sergei Trofimovich
2019-05-16 19:56 Sergei Trofimovich
2019-05-14  7:15 Sergei Trofimovich
2019-05-14  7:00 Sergei Trofimovich
2019-04-09 21:44 Sergei Trofimovich
2019-04-03 22:17 Sergei Trofimovich
2019-04-03 22:17 Sergei Trofimovich
2019-02-20 21:42 Sergei Trofimovich
2019-01-15 21:38 Sergei Trofimovich
2019-01-15 21:38 Sergei Trofimovich
2019-01-12 15:18 Sergei Trofimovich
2018-12-04 23:43 Sergei Trofimovich
2018-12-04  8:36 Sergei Trofimovich
2018-12-03 21:51 Sergei Trofimovich
2018-12-03 21:51 Sergei Trofimovich
2018-12-03  8:24 Sergei Trofimovich
2018-11-26 22:20 Sergei Trofimovich
2018-11-26 22:20 Sergei Trofimovich
2018-10-21  9:26 Sergei Trofimovich
2018-10-16 22:23 Sergei Trofimovich
2018-10-16 22:23 Sergei Trofimovich
2018-08-08  6:26 Sergei Trofimovich
2018-07-09 21:14 Sergei Trofimovich
2018-06-21  7:01 Sergei Trofimovich
2018-04-28 10:03 Sergei Trofimovich
2018-04-10  6:38 Sergei Trofimovich
2018-04-10  6:38 Sergei Trofimovich
2018-03-06  8:07 Sergei Trofimovich
2018-02-15 18:07 Sergei Trofimovich
2017-12-25 11:01 Sergei Trofimovich
2017-12-24 10:28 Anthony G. Basile
2017-12-10 15:00 Sergei Trofimovich
2017-11-28 21:09 Sergei Trofimovich
2017-11-27 22:55 Sergei Trofimovich
2017-10-28 22:15 Sergei Trofimovich
2017-10-12 17:34 Sergei Trofimovich
2017-10-12 11:14 Sergei Trofimovich
2017-10-12 11:14 Sergei Trofimovich
2017-09-10 17:18 Sergei Trofimovich
2017-09-10 17:18 Sergei Trofimovich
2017-09-10 16:45 Sergei Trofimovich
2017-07-29 20:47 Sergei Trofimovich
2017-04-18 20:17 Sergei Trofimovich
2017-03-13 21:15 Sergei Trofimovich
2017-01-30 21:07 Sergei Trofimovich
2016-12-21  9:32 Sergei Trofimovich
2016-11-10 22:06 Sergei Trofimovich
2016-11-10 22:06 Sergei Trofimovich
2016-09-27  8:21 Sergei Trofimovich
2016-08-22  8:55 Sergei Trofimovich
2016-07-07 22:06 Sergei Trofimovich
2016-07-07 22:06 Sergei Trofimovich
2016-05-25 19:51 Sergei Trofimovich
2016-04-12 22:07 Sergei Trofimovich
2016-04-12 22:07 Sergei Trofimovich
2016-03-12 15:49 Sergei Trofimovich
2016-02-18 23:21 Sergei Trofimovich
2016-02-06 10:36 Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1685173760.e7b7ea34b8674590c9eb28f7ab1e1dea768eae47.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox