/[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.4 - (show annotations) (download)
Sat May 2 20:29:16 2009 UTC (4 years, 11 months ago) by halcy0n
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Update homepage, thanks to Olivier Huber <oli DOT huber AT gmail DOT com> for reporting; bug #268330
(Portage version: 2.2_rc31/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.65_rc1.ebuild,v 1.3 2008/10/14 02:47:36 darkside Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="scripting language to modify ELF binaries"
8 HOMEPAGE="http://www.eresi-project.org/"
9 SRC_URI="mirror://gentoo/${P}.zip"
10 #http://www.eresi-project.org/browser/tags/elfsh_0_65rc1
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS=""
15 IUSE="readline"
16
17 DEPEND=">=dev-libs/expat-1.95
18 readline? ( sys-libs/readline )
19 app-arch/unzip
20 dev-libs/libhash"
21 RDEPEND=""
22
23 S="${WORKDIR}/tags/elfsh_0_65rc1"
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28 sed -i \
29 -e 's: -O2 : :g' \
30 -e "s: -g3 : ${CFLAGS} :" \
31 -e "/^LDFLAGS/s:=:=${LDFLAGS} :" \
32 $(find -name Makefile) \
33 || die
34 chmod +x configure
35 }
36
37 src_compile() {
38 local bits
39 touch foo.c && $(tc-getCC) -c foo.c -o foo.o || die
40 case $(file foo.o) in
41 *64-bit*) bits=64;;
42 *32-bit*) bits=32;;
43 *) die "unknown bits: $(file foo.o)";;
44 esac
45 # not an autoconf script
46 ./configure \
47 $([[ ${bits} == "64" ]] && echo "--enable-m64") \
48 --enable-${bits} \
49 $(use_enable readline) \
50 || die
51 # emacs does not have to be a requirement.
52 emake ETAGS=echo || die "emake failed"
53 }
54
55 src_install() {
56 make install DESTDIR="${D}" || die "install failed"
57 dodoc README.FIRST doc/AUTHOR doc/CREDITS doc/Changelog doc/*.txt
58 doman doc/*.1
59 }

  ViewVC Help
Powered by ViewVC 1.1.20