diff options
author | mid-kid <esteve.varela@gmail.com> | 2020-12-24 18:02:10 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-12-24 18:00:27 +0000 |
commit | b65a733dff63706b0f5025107a50e9e4b9afae9f (patch) | |
tree | 979c03198c968aeb77a2d91e7a5dc517f4a95f58 /dev-util | |
parent | dev-util/radare2: Unbundle some libraries (bug #761247) (diff) | |
download | gentoo-b65a733dff63706b0f5025107a50e9e4b9afae9f.tar.gz gentoo-b65a733dff63706b0f5025107a50e9e4b9afae9f.tar.bz2 gentoo-b65a733dff63706b0f5025107a50e9e4b9afae9f.zip |
dev-util/radare2: Replace docdir patch with sed line
This fixes fetching the fortunes when the package has a -r revision
number.
Signed-off-by: mid-kid <esteve.varela@gmail.com>
100.0% dev-util/radare2/
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/radare2/radare2-4.5.1-r1.ebuild | 7 | ||||
-rw-r--r-- | dev-util/radare2/radare2-9999.ebuild | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/dev-util/radare2/radare2-4.5.1-r1.ebuild b/dev-util/radare2/radare2-4.5.1-r1.ebuild index 2979f0f39ad6..963c0b6b6e74 100644 --- a/dev-util/radare2/radare2-4.5.1-r1.ebuild +++ b/dev-util/radare2/radare2-4.5.1-r1.ebuild @@ -34,7 +34,12 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" -PATCHES=("${FILESDIR}"/${PN}-4.5.1-docdir.patch) +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 diff --git a/dev-util/radare2/radare2-9999.ebuild b/dev-util/radare2/radare2-9999.ebuild index e7065fb50acd..963c0b6b6e74 100644 --- a/dev-util/radare2/radare2-9999.ebuild +++ b/dev-util/radare2/radare2-9999.ebuild @@ -34,6 +34,13 @@ RDEPEND=" DEPEND="${RDEPEND}" 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 |