blob: 479cfd5d008764c82694b38b78ac95e5492e94e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/elfsh/elfsh-0.51_beta3.ebuild,v 1.3 2005/03/30 05:48:22 vapier Exp $
inherit eutils
MY_PV=${PV/_beta/b}
S=${WORKDIR}/${PN}-${MY_PV}
DESCRIPTION="scripting language to modify ELF binaries"
HOMEPAGE="http://elfsh.segfault.net/"
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
>=sys-devel/gettext-0.11"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PV}-gentoo.patch
sed -i \
-e "s:-g3 -O2:${CFLAGS}:" \
`find -name Makefile` \
|| die
}
src_compile() {
# emacs does not have to be a requirement.
emake ETAGS=echo || die "emake failed"
}
src_install() {
make install DESTDIR="${D}" || die "einstall failed"
}
|