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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.7 2009/07/22 23:26:52 vostorga Exp $ 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 4
5inherit eutils 5inherit eutils toolchain-funcs
6 6
7MY_PV=${PV/_beta/b} 7MY_PV=${PV/_beta/b}
8S=${WORKDIR}/${PN}-${MY_PV} 8S=${WORKDIR}/${PN}-${MY_PV}
9DESCRIPTION="scripting language to modify ELF binaries" 9DESCRIPTION="scripting language to modify ELF binaries"
10HOMEPAGE="http://www.eresi-project.org/" 10HOMEPAGE="http://www.eresi-project.org/"
24 cd "${S}" 24 cd "${S}"
25 epatch "${FILESDIR}"/${PV}-gentoo.patch 25 epatch "${FILESDIR}"/${PV}-gentoo.patch
26 epatch "${FILESDIR}"/${P}-glibc210.patch 26 epatch "${FILESDIR}"/${P}-glibc210.patch
27 sed -i \ 27 sed -i \
28 -e "s:-g3 -O2:${CFLAGS}:" \ 28 -e "s:-g3 -O2:${CFLAGS}:" \
29 -e "s:\$(CC):& \$(CFLAGS) \$(ELDFLGS): "\
29 `find -name Makefile` \ 30 `find -name Makefile` \
30 || die 31 || die
31 sed -i -e "s:LIBPATH = \$(PREFIX)/lib:LIBPATH = \$(PREFIX)/$(get_libdir):" Makefile 32 sed -i -e "s:LIBPATH = \$(PREFIX)/lib:LIBPATH = \$(PREFIX)/$(get_libdir):" Makefile
32 33
33} 34}
34 35
35src_compile() { 36src_compile() {
36 # emacs does not have to be a requirement. 37 # emacs does not have to be a requirement.
37 emake ETAGS=echo || die "emake failed" 38 emake CC=$(tc-getCC) ETAGS=echo ELDFLGS="${LDFLAGS}" || die "emake failed"
38} 39}
39 40
40src_install() { 41src_install() {
41 make install DESTDIR="${D}" || die "einstall failed" 42 make install DESTDIR="${D}" || die "einstall failed"
42} 43}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20