/[gentoo-x86]/dev-util/elfsh/elfsh-0.51_beta3.ebuild
Gentoo

Contents of /dev-util/elfsh/elfsh-0.51_beta3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Jun 7 21:29:50 2012 UTC (2 years, 1 month ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +3 -3 lines
inherit multilib for get_libdir

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/elfsh/elfsh-0.51_beta3.ebuild,v 1.8 2010/08/10 20:41:20 hwoarang Exp $
4
5 inherit eutils multilib toolchain-funcs
6
7 MY_PV=${PV/_beta/b}
8 S=${WORKDIR}/${PN}-${MY_PV}
9 DESCRIPTION="scripting language to modify ELF binaries"
10 HOMEPAGE="http://www.eresi-project.org/"
11 SRC_URI="mirror://gentoo/elfsh-${MY_PV}-portable.tgz"
12 #http://elfsh.segfault.net/files/elfsh-${MY_PV}-portable.tgz
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~ppc ~x86"
17 IUSE=""
18
19 DEPEND=">=dev-libs/expat-1.95"
20 RDEPEND="${DEPEND}"
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25 epatch "${FILESDIR}"/${PV}-gentoo.patch
26 epatch "${FILESDIR}"/${P}-glibc210.patch
27 sed -i \
28 -e "s:-g3 -O2:${CFLAGS}:" \
29 -e "s:\$(CC):& \$(CFLAGS) \$(ELDFLGS): "\
30 `find -name Makefile` \
31 || die
32 sed -i -e "s:LIBPATH = \$(PREFIX)/lib:LIBPATH = \$(PREFIX)/$(get_libdir):" Makefile
33
34 }
35
36 src_compile() {
37 # emacs does not have to be a requirement.
38 emake CC=$(tc-getCC) ETAGS=echo ELDFLGS="${LDFLAGS}" || die "emake failed"
39 }
40
41 src_install() {
42 make install DESTDIR="${D}" || die "einstall failed"
43 }

  ViewVC Help
Powered by ViewVC 1.1.20