summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin von Gagern (MvG) <Martin.vGagern@gmx.net>2009-01-02 14:20:25 +0000
committerMartin von Gagern (MvG) <Martin.vGagern@gmx.net>2009-01-02 14:20:25 +0000
commit4ddf46fa5b6ccf785ce64b75eda445a56d5cfd38 (patch)
tree310e7e3ba2d37e82523db4a593704d1dfdad6ca5 /dev-util/eresi/eresi-0.82_beta2.ebuild
parentNow fix the Manifest as well... (diff)
downloadsunrise-4ddf46fa5b6ccf785ce64b75eda445a56d5cfd38.tar.gz
sunrise-4ddf46fa5b6ccf785ce64b75eda445a56d5cfd38.tar.bz2
sunrise-4ddf46fa5b6ccf785ce64b75eda445a56d5cfd38.zip
dev-util/eresi: New ebuild for ERESI, to replace dev-util/elfsh. Bug #253436
svn path=/sunrise/; revision=7576
Diffstat (limited to 'dev-util/eresi/eresi-0.82_beta2.ebuild')
-rw-r--r--dev-util/eresi/eresi-0.82_beta2.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-util/eresi/eresi-0.82_beta2.ebuild b/dev-util/eresi/eresi-0.82_beta2.ebuild
new file mode 100644
index 000000000..00921d782
--- /dev/null
+++ b/dev-util/eresi/eresi-0.82_beta2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="The ERESI Reverse Engineering Software Interface: elfsh and friends"
+HOMEPAGE="http://www.eresi-project.org/"
+# Steps to regenerate archive:
+# svn export http://svn.eresi-project.org/svn/trunk@1283 eresi-0.82_beta2
+# tar cvjf eresi-0.82_beta2{.tar.bz2,}
+# To find the latest release and the corresponding svn revision:
+# svn annotate \
+# http://svn.eresi-project.org/svn/trunk/librevm/include/revm-io.h \
+# | egrep 'REVM_(RELEASE|VERSION)'
+SRC_URI="http://dev.gentooexperimental.org/~mvg/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="readline server doc"
+
+DEPEND="readline? ( sys-libs/readline )"
+RDEPEND="${DEPEND}
+ !<dev-util/elfsh-0.75"
+# dev-util/elfsh-0.75 should be used as a transition package,
+# depending on eresi but not installing any files of its own.
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/0.82_beta2-parallel-make.patch
+ sed -i \
+ -e 's: -O2 : :g' \
+ -e "s: -g3 : ${CFLAGS} :" \
+ -e "/^LDFLAGS/s:=:=${LDFLAGS} :" \
+ $(find -name Makefile) \
+ || die
+}
+
+src_compile() {
+ # non-standard configure script
+ # doesn't understand --disable-*, so don't use use_enable
+ local conf="--prefix /usr"
+ conf="${conf} --enable-32-64"
+ conf="${conf} --set-compiler $(tc-getCC)"
+ use readline && conf="${conf} --enable-readline"
+ use server && conf="${conf} --enable-network"
+ echo "./configure ${conf}"
+ ./configure ${conf} || die "configure failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc doc/AUTHOR || die "dodoc failed"
+ dodoc doc/CREDITS || die "dodoc failed"
+ dodoc README.FIRST || die "dodoc failed"
+ if use doc; then
+ dodoc doc/cerberus2.txt || die "dodoc failed"
+ dodoc doc/Changelog || die "dodoc failed"
+ dodoc doc/elfsh-network-0.3.txt || die "dodoc failed"
+ dodoc doc/elfsh-ref.txt || die "dodoc failed"
+ dodoc doc/ERESI.NEWHOOKS || die "dodoc failed"
+ dodoc doc/eresirc.example || die "dodoc failed"
+ dodoc doc/graphers.txt || die "dodoc failed"
+ dodoc doc/KERNSH.bugs || die "dodoc failed"
+ dodoc doc/libelfsh.i || die "dodoc failed"
+ dodoc doc/libelfsh-ref.txt || die "dodoc failed"
+ dodoc doc/rtld-multiarch.txt || die "dodoc failed"
+ fi
+}