/[gentoo-x86]/dev-util/elfsh/elfsh-0.65_rc1.ebuild
Gentoo

Diff of /dev-util/elfsh/elfsh-0.65_rc1.ebuild

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2008 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.65_rc1.ebuild,v 1.2 2007/06/24 17:48:30 peper Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-util/elfsh/elfsh-0.65_rc1.ebuild,v 1.3 2008/10/14 02:47:36 darkside Exp $
4 4
5inherit eutils toolchain-funcs 5inherit eutils toolchain-funcs
6 6
7MY_PV=${PV/_/}
8DESCRIPTION="scripting language to modify ELF binaries" 7DESCRIPTION="scripting language to modify ELF binaries"
9HOMEPAGE="http://elfsh.segfault.net/" 8HOMEPAGE="http://elfsh.segfault.net/"
10SRC_URI="mirror://gentoo/elfsh-${MY_PV}.tgz" 9SRC_URI="mirror://gentoo/${P}.zip"
11#http://elfsh.segfault.net/files/elfsh-${MY_PV}-portable.tgz 10#http://www.eresi-project.org/browser/tags/elfsh_0_65rc1
12 11
13LICENSE="GPL-2" 12LICENSE="GPL-2"
14SLOT="0" 13SLOT="0"
15KEYWORDS="" 14KEYWORDS=""
16IUSE="readline" 15IUSE="readline"
17 16
18DEPEND=">=dev-libs/expat-1.95 17DEPEND=">=dev-libs/expat-1.95
19 readline? ( sys-libs/readline )" 18 readline? ( sys-libs/readline )
19 app-arch/unzip
20 dev-libs/libhash"
21RDEPEND=""
20 22
21S=${WORKDIR}/${PN}-${MY_PV} 23S="${WORKDIR}/tags/elfsh_0_65rc1"
22 24
23src_unpack() { 25src_unpack() {
24 unpack ${A} 26 unpack ${A}
25 cd "${S}" 27 cd "${S}"
26 sed -i \ 28 sed -i \
27 -e 's: -O2 : :g' \ 29 -e 's: -O2 : :g' \
28 -e "s: -g3 : ${CFLAGS} :" \ 30 -e "s: -g3 : ${CFLAGS} :" \
29 -e "/^LDFLAGS/s:=:=${LDFLAGS} :" \ 31 -e "/^LDFLAGS/s:=:=${LDFLAGS} :" \
30 $(find -name Makefile) \ 32 $(find -name Makefile) \
31 || die 33 || die
34 chmod +x configure
32} 35}
33 36
34src_compile() { 37src_compile() {
35 local bits 38 local bits
36 touch foo.c && $(tc-getCC) -c foo.c -o foo.o || die 39 touch foo.c && $(tc-getCC) -c foo.c -o foo.o || die

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20