/[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 - (hide 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 halcy0n 1.6 # Copyright 1999-2009 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 vostorga 1.7 # $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 vapier 1.1
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 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     `find -name Makefile` \
30     || die
31 malc 1.5 sed -i -e "s:LIBPATH = \$(PREFIX)/lib:LIBPATH = \$(PREFIX)/$(get_libdir):" Makefile
32    
33 vapier 1.1 }
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 vapier 1.3 make install DESTDIR="${D}" || die "einstall failed"
42 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20