mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-03 12:10:50 +02:00
radare2: port gentoo fixes, cleanup
This commit is contained in:
parent
1378c24a7c
commit
09cef98645
7 changed files with 28 additions and 124 deletions
|
|
@ -1,3 +1 @@
|
|||
DIST radare2-0.9.7.3-1.tar.gz 3432402 SHA256 441118f9eabe137169854a6f4fa3787d6dc8fb2338c9963d4f5fe150e3055d51 SHA512 c0cebe1e8674519822243608a590f946e57788eee63076a9d3fadc508588eb4426399020b8e8755bceda4cede89cb0b017b2271929e625c7392a5f89d09e1666 WHIRLPOOL f9a4ef57478ef1427bbb6f913814697c184ad83dd4aefa6629d2eeaef24bf35df4a2391e3ff041d82ea4a6ad62a8cfc949689aae6a1f7c236c8cef80b037b8b2
|
||||
DIST radare2-0.9.8.tar.gz 3604567 SHA256 9bcc5d52c38b91a197eff193c2d49f99a7641ef7f9e64c63297bcecf5435fa2e SHA512 0846105724ee2566ddc2db203128f29bdfd900dba6c2c91d4743745f18ce5396bd1f4f6dba64e6792493a7ef1737fcc343e3f45d20190d53a8af837b4ce8d0b2 WHIRLPOOL afdf7a7e2a6d6a9da2875698f0ffa8e8afea0e0766ed7d2c2e45b293c6f6b36b5a7de14932c60b42cb8ab44399958eeee707e2576b37a58ce377a847e0260461
|
||||
DIST radare2-0.9.9.tar.gz 4708786 SHA256 842ecbe7df97b388c07138b66d2b94aff51099251216981ac5393b11d9260d2a SHA512 89844d44a2fb8170b245761ef9f235231338ed1f0a1ecfe18d38c779fe699dc8eee4fda5446f898d24af928aa6b3dc63bbae46890323fa77be262373108b5947 WHIRLPOOL 183fbf44218daf30ff61d7b8ff2f9157a468815da8caa4f874d33b4f94dc394b2f38c8a8b853d3af0b7198ff592f3c159374640f3f64e6fd50f2a3e937d68ea9
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
--- binr/Makefile.orig 2014-11-11 10:24:04.000000000 +0800
|
||||
+++ binr/Makefile 2014-11-22 14:38:49.009210226 +0800
|
||||
@@ -26,6 +26,9 @@
|
||||
${INSTALL_SCRIPT} ragg2/ragg2-cc "${BFX}/ragg2-cc"
|
||||
-cd "${BFX}" && rm -f r2 ; ln -fs radare2 r2
|
||||
${INSTALL_LIB} "preload/libr2.$(EXT_SO)" "$(LFX)"
|
||||
+ -cd "$(LFX)" && \
|
||||
+ mv libr2.$(EXT_SO) libr2.$(EXT_SO).$(VERSION) && \
|
||||
+ ln -fs libr2.$(EXT_SO).$(VERSION) libr2.$(EXT_SO)
|
||||
|
||||
symstall install-symlink:
|
||||
mkdir -p "${BFX}"
|
||||
@@ -33,6 +36,9 @@
|
||||
ln -fs "${BTOP}/ragg2/ragg2-cc" "${BFX}/ragg2-cc"
|
||||
-ln -fs "${PFX}/bin/radare2" "${BFX}/r2"
|
||||
-ln -fs "${BTOP}/preload/libr2.$(EXT_SO)" "${LFX}/libr2.$(EXT_SO)"
|
||||
+ -cd "$(LFX)" && \
|
||||
+ mv libr2.$(EXT_SO) libr2.$(EXT_SO).$(VERSION) && \
|
||||
+ ln -fs libr2.$(EXT_SO).$(VERSION) libr2.$(EXT_SO)
|
||||
|
||||
deinstall uninstall:
|
||||
for a in ${BINS} ; do rm -f "${BFX}/$$a" ; done
|
||||
13
dev-util/radare2/files/radare2-0.9.9-nogit.patch
Normal file
13
dev-util/radare2/files/radare2-0.9.9-nogit.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
capstone-sync does not work correctly for release tarballs.
|
||||
It tries to sync/revert from upstream git repo unconditionaly.
|
||||
diff --git a/shlr/Makefile b/shlr/Makefile
|
||||
index a1796ce..f8d179a 100644
|
||||
--- a/shlr/Makefile
|
||||
+++ b/shlr/Makefile
|
||||
@@ -144,5 +144,5 @@ else
|
||||
|
||||
ifeq ($(CS_TAR),)
|
||||
-capstone: capstone-sync
|
||||
+capstone: # capstone-sync
|
||||
|
||||
capstone-sync:
|
||||
|
|
@ -1,16 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<use>
|
||||
<flag name="gui">
|
||||
Enable the graphical user interface of radare (broken)
|
||||
</flag>
|
||||
<flag name="vala">
|
||||
Enable support for the vala programming language
|
||||
</flag>
|
||||
</use>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>slyfox@gentoo.org</email>
|
||||
<name>Sergei Trofimovich</name>
|
||||
<description>Primary Maintainer</description>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,36 +0,0 @@
|
|||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/radare2/radare2-0.9.ebuild,v 2.0 2012/04/04 06:20:21 akochkov Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit base eutils
|
||||
|
||||
DESCRIPTION="Advanced command line hexadecimal editor and more"
|
||||
HOMEPAGE="http://www.radare.org"
|
||||
SRC_URI="https://github.com/radare/${PN}/archive/${P}-1.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug ewf ssl"
|
||||
#capstone is not really optional anymore
|
||||
|
||||
RDEPEND=">dev-util/capstone-2.1.2
|
||||
!dev-util/radare2-capstone
|
||||
ssl? ( dev-libs/openssl:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
#fix upstream's insanity
|
||||
S=${WORKDIR}/radare2-${P}-1
|
||||
|
||||
src_configure() {
|
||||
econf $(use ssl || echo --without-openssl ) \
|
||||
$(use ewf || echo --without-ewf ) \
|
||||
$(use debug || echo --disable-debugger ) \
|
||||
--with-syscapstone
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" INSTALL_PROGRAM="install" install
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit base eutils versionator
|
||||
|
||||
#MY_PV="$(replace_version_separator 3 '-')"
|
||||
|
||||
DESCRIPTION="Advanced command line hexadecimal editor and more"
|
||||
HOMEPAGE="http://www.radare.org"
|
||||
SRC_URI="https://github.com/radare/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+capstone debug ewf ssl"
|
||||
|
||||
RDEPEND="capstone? ( >dev-util/capstone-2.1.2:= )
|
||||
!dev-util/radare2-capstone
|
||||
ssl? ( dev-libs/openssl:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare(){
|
||||
epatch "${FILESDIR}"/radare2-0.9.8-makefile.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use ssl || echo --without-openssl ) \
|
||||
$(use ewf || echo --without-ewf ) \
|
||||
$(use debug || echo --disable-debugger ) \
|
||||
--with-syscapstone
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" INSTALL_PROGRAM="install" install
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
ewarn "You might want to set a default backend in the following file:"
|
||||
ewarn "~/.config/radare2/radarerc"
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv Exp $
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit base eutils versionator
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Advanced command line hexadecimal editor and more"
|
||||
HOMEPAGE="http://www.radare.org"
|
||||
|
|
@ -12,7 +12,7 @@ SRC_URI="https://github.com/radare/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+capstone +debugger ssl"
|
||||
IUSE="+capstone debug ssl"
|
||||
|
||||
RDEPEND="capstone? ( >dev-util/capstone-2.1.2:= )
|
||||
!dev-util/radare2-capstone
|
||||
|
|
@ -20,12 +20,13 @@ RDEPEND="capstone? ( >dev-util/capstone-2.1.2:= )
|
|||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with ssl) \
|
||||
$(use debugger || echo --disable-debugger ) \
|
||||
--with-syscapstone
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.9.9-nogit.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" INSTALL_PROGRAM="install" install
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_enable debug debugger ) \
|
||||
$(use_with capstone syscapstone)
|
||||
}
|
||||
Loading…
Reference in a new issue