mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 13:41:05 +00: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>
43 lines
934 B
Bash
43 lines
934 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DEB_VER=6.2
|
|
DESCRIPTION="edit disk partitions on Acorn machines"
|
|
HOMEPAGE="http://www.arm.linux.org.uk/"
|
|
SRC_URI="
|
|
http://ftp.linux.org.uk/pub/linux/arm/source/other/${P}.tar.gz
|
|
mirror://debian/pool/main/a/acorn-fdisk/acorn-fdisk_${PV}-${DEB_VER}.diff.gz
|
|
"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 arm ~hppa ~m68k ~mips ppc ~s390 ~sparc x86"
|
|
IUSE=""
|
|
|
|
src_prepare() {
|
|
default
|
|
eapply "${WORKDIR}"/acorn-fdisk_${PV}-${DEB_VER}.diff
|
|
|
|
find . -name Makefile -exec sed -i \
|
|
-e "s:-O2 -Wall\( -g\)\?::" \
|
|
-e "/^CFLAGS/s:=:+=:" \
|
|
-e "/^LDFLAGS/s:=:+=:" \
|
|
-e '/^STRIP/s:strip:true:' {} + || die
|
|
}
|
|
|
|
src_compile() {
|
|
emake \
|
|
CC="$(tc-getCC)" \
|
|
AR="$(tc-getAR)"
|
|
}
|
|
|
|
src_install() {
|
|
into /
|
|
newsbin fdisk ${PN}
|
|
dosym ${PN} /sbin/acorn-fdisk
|
|
dodoc ChangeLog README debian/changelog
|
|
}
|