diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-03-04 06:13:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-04 06:13:22 +0000 |
commit | da626359c8a75e98c85fbdd86acbcb7870a1eb8a (patch) | |
tree | 1e7e862c5b7385c890d505c2779d59a56cd5a1dc /dev-util/elfsh/elfsh-0.65_rc1.ebuild | |
parent | x86 stable for bug #124068. (diff) | |
download | historical-da626359c8a75e98c85fbdd86acbcb7870a1eb8a.tar.gz historical-da626359c8a75e98c85fbdd86acbcb7870a1eb8a.tar.bz2 historical-da626359c8a75e98c85fbdd86acbcb7870a1eb8a.zip |
Version bump.
Package-Manager: portage-2.1_pre5-r2
Diffstat (limited to 'dev-util/elfsh/elfsh-0.65_rc1.ebuild')
-rw-r--r-- | dev-util/elfsh/elfsh-0.65_rc1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-util/elfsh/elfsh-0.65_rc1.ebuild b/dev-util/elfsh/elfsh-0.65_rc1.ebuild new file mode 100644 index 000000000000..e4c0bc87087d --- /dev/null +++ b/dev-util/elfsh/elfsh-0.65_rc1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/elfsh/elfsh-0.65_rc1.ebuild,v 1.1 2006/03/04 06:13:22 vapier Exp $ + +inherit eutils toolchain-funcs + +MY_PV=${PV/_/} +DESCRIPTION="scripting language to modify ELF binaries" +HOMEPAGE="http://elfsh.segfault.net/" +SRC_URI="mirror://gentoo/elfsh-${MY_PV}.tgz" +#http://elfsh.segfault.net/files/elfsh-${MY_PV}-portable.tgz + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-*" +IUSE="readline" + +DEPEND=">=dev-libs/expat-1.95 + readline? ( sys-libs/readline )" + +S=${WORKDIR}/${PN}-${MY_PV} + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i \ + -e 's: -O2 : :g' \ + -e "s: -g3 : ${CFLAGS} :" \ + -e "/^LDFLAGS/s:=:=${LDFLAGS} :" \ + $(find -name Makefile) \ + || die +} + +src_compile() { + local bits + touch foo.c && $(tc-getCC) -c foo.c -o foo.o || die + case $(file foo.o) in + *64-bit*) bits=64;; + *32-bit*) bits=32;; + *) die "unknown bits: $(file foo.o)";; + esac + # not an autoconf script + ./configure \ + $([[ ${bits} == "64" ]] && echo "--enable-m64") \ + --enable-${bits} \ + $(use_enable readline) \ + || die + # emacs does not have to be a requirement. + emake ETAGS=echo || die "emake failed" +} + +src_install() { + make install DESTDIR="${D}" || die "install failed" + dodoc README.FIRST doc/AUTHOR doc/CREDITS doc/Changelog doc/*.txt + doman doc/*.1 +} |