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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jun 24 17:48:30 2007 UTC (11 years, 5 months ago) by peper
Branch: MAIN
Changes since 1.1: +3 -3 lines
(QA) Don't use KEYWORDS="-*". bug #160519.
(Portage version: 2.1.3_rc5)

1 # Copyright 1999-2007 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.65_rc1.ebuild,v 1.1 2006/03/04 06:13:22 vapier Exp $
4
5 inherit eutils toolchain-funcs
6
7 MY_PV=${PV/_/}
8 DESCRIPTION="scripting language to modify ELF binaries"
9 HOMEPAGE="http://elfsh.segfault.net/"
10 SRC_URI="mirror://gentoo/elfsh-${MY_PV}.tgz"
11 #http://elfsh.segfault.net/files/elfsh-${MY_PV}-portable.tgz
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS=""
16 IUSE="readline"
17
18 DEPEND=">=dev-libs/expat-1.95
19 readline? ( sys-libs/readline )"
20
21 S=${WORKDIR}/${PN}-${MY_PV}
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 sed -i \
27 -e 's: -O2 : :g' \
28 -e "s: -g3 : ${CFLAGS} :" \
29 -e "/^LDFLAGS/s:=:=${LDFLAGS} :" \
30 $(find -name Makefile) \
31 || die
32 }
33
34 src_compile() {
35 local bits
36 touch foo.c && $(tc-getCC) -c foo.c -o foo.o || die
37 case $(file foo.o) in
38 *64-bit*) bits=64;;
39 *32-bit*) bits=32;;
40 *) die "unknown bits: $(file foo.o)";;
41 esac
42 # not an autoconf script
43 ./configure \
44 $([[ ${bits} == "64" ]] && echo "--enable-m64") \
45 --enable-${bits} \
46 $(use_enable readline) \
47 || die
48 # emacs does not have to be a requirement.
49 emake ETAGS=echo || die "emake failed"
50 }
51
52 src_install() {
53 make install DESTDIR="${D}" || die "install failed"
54 dodoc README.FIRST doc/AUTHOR doc/CREDITS doc/Changelog doc/*.txt
55 doman doc/*.1
56 }

  ViewVC Help
Powered by ViewVC 1.1.20