You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/elfkickers/elfkickers-3.1a.ebuild

39 lines
913 B

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
MY_PN=${PN/elf/ELF}-${PV}
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}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm ~hppa ~mips sparc x86"
IUSE="doc"
DEPEND="app-misc/pax-utils"
RDEPEND=""
PATCHES=(
"${FILESDIR}"/${PN}-3.1-respect-CFLAGS-LDFLAGS.patch
"${FILESDIR}"/${PN}-3.1-create-destdir-path.patch
"${FILESDIR}"/add-freebsd-elf-defs.patch
"${FILESDIR}"/${PN}-3.1-AR.patch
"${FILESDIR}"/${PN}-3.1-CC.patch
)
src_prepare() {
default
tc-export AR CC
sed -i -e "s:^prefix = /usr/local:prefix = \${DESTDIR}/:" Makefile \
|| die "sed failed"
}