1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs
7 DESCRIPTION="The ERESI Reverse Engineering Software Interface: elfsh and friends"
8 HOMEPAGE="http://www.eresi-project.org/"
9 # Steps to regenerate archive:
10 # svn export http://svn.eresi-project.org/svn/trunk@1283 eresi-0.82_beta2
11 # tar cvjf eresi-0.82_beta2{.tar.bz2,}
12 # To find the latest release and the corresponding svn revision:
14 # http://svn.eresi-project.org/svn/trunk/librevm/include/revm-io.h \
15 # | egrep 'REVM_(RELEASE|VERSION)'
16 SRC_URI="http://dev.gentooexperimental.org/~mvg/${P}.tar.bz2"
20 KEYWORDS="~amd64 ~ppc ~x86"
21 IUSE="readline server doc"
23 DEPEND="readline? ( sys-libs/readline )"
25 !<dev-util/elfsh-0.75"
26 # dev-util/elfsh-0.75 should be used as a transition package,
27 # depending on eresi but not installing any files of its own.
32 epatch "${FILESDIR}"/0.82_beta2-parallel-make.patch
35 -e "s: -g3 : ${CFLAGS} :" \
36 -e "/^LDFLAGS/s:=:=${LDFLAGS} :" \
37 $(find -name Makefile) \
42 # non-standard configure script
43 # doesn't understand --disable-*, so don't use use_enable
44 local conf="--prefix /usr"
45 conf="${conf} --enable-32-64"
46 conf="${conf} --set-compiler $(tc-getCC)"
47 use readline && conf="${conf} --enable-readline"
48 use server && conf="${conf} --enable-network"
49 echo "./configure ${conf}"
50 ./configure ${conf} || die "configure failed"
51 emake || die "make failed"
55 emake DESTDIR="${D}" install || die "emake install failed"
56 dodoc doc/AUTHOR || die "dodoc failed"
57 dodoc doc/CREDITS || die "dodoc failed"
58 dodoc README.FIRST || die "dodoc failed"
60 dodoc doc/cerberus2.txt || die "dodoc failed"
61 dodoc doc/Changelog || die "dodoc failed"
62 dodoc doc/elfsh-network-0.3.txt || die "dodoc failed"
63 dodoc doc/elfsh-ref.txt || die "dodoc failed"
64 dodoc doc/ERESI.NEWHOOKS || die "dodoc failed"
65 dodoc doc/eresirc.example || die "dodoc failed"
66 dodoc doc/graphers.txt || die "dodoc failed"
67 dodoc doc/KERNSH.bugs || die "dodoc failed"
68 dodoc doc/libelfsh.i || die "dodoc failed"
69 dodoc doc/libelfsh-ref.txt || die "dodoc failed"
70 dodoc doc/rtld-multiarch.txt || die "dodoc failed"