/[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 - (hide annotations) (download)
Thu Jun 7 21:29:50 2012 UTC (2 years, 2 months 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 zmedico 1.9 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 zmedico 1.9 # $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 vapier 1.1
5 zmedico 1.9 inherit eutils multilib toolchain-funcs
6 vapier 1.1
7     MY_PV=${PV/_beta/b}
8     S=${WORKDIR}/${PN}-${MY_PV}
9     DESCRIPTION="scripting language to modify ELF binaries"
10 halcy0n 1.6 HOMEPAGE="http://www.eresi-project.org/"
11 vapier 1.1 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 vapier 1.3 KEYWORDS="~amd64 ~ppc ~x86"
17 vapier 1.1 IUSE=""
18    
19 solar 1.4 DEPEND=">=dev-libs/expat-1.95"
20 vostorga 1.7 RDEPEND="${DEPEND}"
21 vapier 1.1
22     src_unpack() {
23     unpack ${A}
24 vapier 1.3 cd "${S}"
25     epatch "${FILESDIR}"/${PV}-gentoo.patch
26 vostorga 1.7 epatch "${FILESDIR}"/${P}-glibc210.patch
27 vapier 1.1 sed -i \
28     -e "s:-g3 -O2:${CFLAGS}:" \
29 hwoarang 1.8 -e "s:\$(CC):& \$(CFLAGS) \$(ELDFLGS): "\
30 vapier 1.1 `find -name Makefile` \
31     || die
32 malc 1.5 sed -i -e "s:LIBPATH = \$(PREFIX)/lib:LIBPATH = \$(PREFIX)/$(get_libdir):" Makefile
33    
34 vapier 1.1 }
35    
36     src_compile() {
37     # emacs does not have to be a requirement.
38 hwoarang 1.8 emake CC=$(tc-getCC) ETAGS=echo ELDFLGS="${LDFLAGS}" || die "emake failed"
39 vapier 1.1 }
40    
41     src_install() {
42 vapier 1.3 make install DESTDIR="${D}" || die "einstall failed"
43 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20