mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-01 03:00:57 +02:00
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Copyright 1999-2014 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 versionator
|
|
|
|
MY_PV="$(replace_version_separator 3 '-')"
|
|
|
|
DESCRIPTION="Advanced command line hexadecimal editor and more"
|
|
HOMEPAGE="http://www.radare.org"
|
|
#SRC_URI="http://www.radare.org/get/${P}.tar.xz"
|
|
SRC_URI="https://github.com/radare/${PN}/archive/${MY_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"
|
|
|
|
S=${WORKDIR}/${PN}-${MY_PV}
|
|
|
|
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_postinstall(){
|
|
ewarn "You might want to set a default backend in the following file:"
|
|
ewarn "~/.config/radare2/radarerc"
|
|
}
|