summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/elfkickers')
-rw-r--r--dev-util/elfkickers/ChangeLog10
-rw-r--r--dev-util/elfkickers/elfkickers-2.0a-r6.ebuild56
2 files changed, 64 insertions, 2 deletions
diff --git a/dev-util/elfkickers/ChangeLog b/dev-util/elfkickers/ChangeLog
index 1c3f3b95d37c..66836d725e5c 100644
--- a/dev-util/elfkickers/ChangeLog
+++ b/dev-util/elfkickers/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/elfkickers
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/elfkickers/ChangeLog,v 1.32 2010/11/02 18:21:20 blueness Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/elfkickers/ChangeLog,v 1.33 2011/02/13 14:00:28 blueness Exp $
+
+*elfkickers-2.0a-r6 (13 Feb 2011)
+
+ 13 Feb 2011; Anthony G. Basile <blueness@gentoo.org>
+ +elfkickers-2.0a-r6.ebuild:
+ Fixed bug #353718
*elfkickers-2.0a-r5 (02 Nov 2010)
diff --git a/dev-util/elfkickers/elfkickers-2.0a-r6.ebuild b/dev-util/elfkickers/elfkickers-2.0a-r6.ebuild
new file mode 100644
index 000000000000..3910075d5be0
--- /dev/null
+++ b/dev-util/elfkickers/elfkickers-2.0a-r6.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/elfkickers/elfkickers-2.0a-r6.ebuild,v 1.1 2011/02/13 14:00:28 blueness Exp $
+
+inherit eutils multilib toolchain-funcs
+
+MY_PN=${PN/elf/ELF}
+S=${WORKDIR}/${MY_PN}
+
+DESCRIPTION="collection of programs to manipulate ELF files: sstrip, rebind, elfls, elftoc"
+HOMEPAGE="http://www.muppetlabs.com/~breadbox/software/elfkickers.html"
+SRC_URI="http://www.muppetlabs.com/~breadbox/pub/software/${MY_PN}-${PV}.tar.gz
+ http://dev.gentoo.org/~blueness/elfkicker/${PF}.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="doc"
+
+DEPEND="app-misc/pax-utils"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${WORKDIR}/${PF}.patch"
+
+ sed -i -e '/^SUBDIRS/s:tiny::' Makefile
+ use x86 || sed -i -e '/^SUBDIRS/s:ebfc::' Makefile
+ use x86 && sed -i -e 's:linux/elf.h:elf.h:' ebfc/*.c
+ (cd tiny && make clean)
+}
+
+src_compile() {
+ for bits in 32 64; do
+ emake CC=$(tc-getCC) CFLAGS="-DELF_CLASS=ELFCLASS${bits} ${CFLAGS}" clean all
+ for x in elfls elftoc rebind sstrip; do
+ mv ${x}/$x{,${bits}} || die "moving failed of ${x}{,${bits}"
+ done
+ done
+}
+
+src_install() {
+ for d in elfls elftoc rebind sstrip ; do
+ newdoc ${d}/README README.${d} || die
+ dobin ${d}/${d}{32,64} || die
+ for i in ${d}/*.1; do
+ [ -e ${i} ] && doman ${i}
+ done
+ case $(get_libdir) in
+ lib64) dosym /usr/bin/${d}64 /usr/bin/${d};;
+ lib|lib32) dosym /usr/bin/${d}32 /usr/bin/${d};;
+ esac
+ done
+ dodoc Changelog README || die
+}