/[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.7 - (show annotations) (download)
Wed Jul 22 23:26:52 2009 UTC (5 years, 5 months ago) by vostorga
Branch: MAIN
Changes since 1.6: +3 -1 lines
Fix compilation with glibc-2.10, wrt bug #276065
(Portage version: 2.1.6.13/cvs/Linux i686)

1 # Copyright 1999-2009 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.6 2009/05/02 20:29:16 halcy0n Exp $
4
5 inherit eutils
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 `find -name Makefile` \
30 || die
31 sed -i -e "s:LIBPATH = \$(PREFIX)/lib:LIBPATH = \$(PREFIX)/$(get_libdir):" Makefile
32
33 }
34
35 src_compile() {
36 # emacs does not have to be a requirement.
37 emake ETAGS=echo || die "emake failed"
38 }
39
40 src_install() {
41 make install DESTDIR="${D}" || die "einstall failed"
42 }

  ViewVC Help
Powered by ViewVC 1.1.20