# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ inherit eutils multilib toolchain-funcs MY_PV=${PV/_beta/b} S=${WORKDIR}/${PN}-${MY_PV} DESCRIPTION="scripting language to modify ELF binaries" HOMEPAGE="http://www.eresi-project.org/" SRC_URI="mirror://gentoo/elfsh-${MY_PV}-portable.tgz" #http://elfsh.segfault.net/files/elfsh-${MY_PV}-portable.tgz LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" DEPEND=">=dev-libs/expat-1.95" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${PV}-gentoo.patch epatch "${FILESDIR}"/${P}-glibc210.patch sed -i \ -e "s:-g3 -O2:${CFLAGS}:" \ -e "s:\$(CC):& \$(CFLAGS) \$(ELDFLGS): "\ `find -name Makefile` \ || die sed -i -e "s:LIBPATH = \$(PREFIX)/lib:LIBPATH = \$(PREFIX)/$(get_libdir):" Makefile } src_compile() { # emacs does not have to be a requirement. emake CC=$(tc-getCC) ETAGS=echo ELDFLGS="${LDFLAGS}" || die "emake failed" } src_install() { make install DESTDIR="${D}" || die "einstall failed" }