mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
Result of running the command: grep --include="*.ebuild" -r . -e 'KEYWORDS=.*[" ]sparc' -l | xargs ekeyword ~sparc Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
41 lines
906 B
Bash
41 lines
906 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
MY_PN=${PN/elf/ELF}-${PV}
|
|
|
|
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"
|
|
S="${WORKDIR}"/${MY_PN}
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 arm ~hppa ~mips ~sparc x86"
|
|
|
|
BDEPEND="app-misc/pax-utils"
|
|
|
|
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
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
tc-export AR CC
|
|
|
|
sed -i -e "s:^prefix = /usr/local:prefix = \${DESTDIR}/:" Makefile \
|
|
|| die "sed failed"
|
|
}
|
|
|
|
src_compile() {
|
|
# bug #795240
|
|
emake -j1
|
|
}
|