/[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.1.1.1 Revision 1.9
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2012 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.1.1.1 2005/11/30 10:05:15 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-util/elfsh/elfsh-0.51_beta3.ebuild,v 1.9 2012/06/07 21:29:50 zmedico Exp $
4 4
5inherit eutils 5inherit eutils multilib 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://elfsh.segfault.net/" 10HOMEPAGE="http://www.eresi-project.org/"
11SRC_URI="mirror://gentoo/elfsh-${MY_PV}-portable.tgz" 11SRC_URI="mirror://gentoo/elfsh-${MY_PV}-portable.tgz"
12#http://elfsh.segfault.net/files/elfsh-${MY_PV}-portable.tgz 12#http://elfsh.segfault.net/files/elfsh-${MY_PV}-portable.tgz
13 13
14LICENSE="GPL-2" 14LICENSE="GPL-2"
15SLOT="0" 15SLOT="0"
16KEYWORDS="~amd64 ~ppc ~x86" 16KEYWORDS="~amd64 ~ppc ~x86"
17IUSE="" 17IUSE=""
18 18
19DEPEND=">=dev-libs/expat-1.95 19DEPEND=">=dev-libs/expat-1.95"
20 >=sys-devel/gettext-0.11" 20RDEPEND="${DEPEND}"
21 21
22src_unpack() { 22src_unpack() {
23 unpack ${A} 23 unpack ${A}
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 sed -i \ 27 sed -i \
27 -e "s:-g3 -O2:${CFLAGS}:" \ 28 -e "s:-g3 -O2:${CFLAGS}:" \
29 -e "s:\$(CC):& \$(CFLAGS) \$(ELDFLGS): "\
28 `find -name Makefile` \ 30 `find -name Makefile` \
29 || die 31 || die
32 sed -i -e "s:LIBPATH = \$(PREFIX)/lib:LIBPATH = \$(PREFIX)/$(get_libdir):" Makefile
33
30} 34}
31 35
32src_compile() { 36src_compile() {
33 # emacs does not have to be a requirement. 37 # emacs does not have to be a requirement.
34 emake ETAGS=echo || die "emake failed" 38 emake CC=$(tc-getCC) ETAGS=echo ELDFLGS="${LDFLAGS}" || die "emake failed"
35} 39}
36 40
37src_install() { 41src_install() {
38 make install DESTDIR="${D}" || die "einstall failed" 42 make install DESTDIR="${D}" || die "einstall failed"
39} 43}

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20