summaryrefslogtreecommitdiff
blob: 4ecf329c44a25d9be24572aa1f1ada9ac57c0ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2005-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="8"
inherit toolchain-funcs

DESCRIPTION="Creates burnable CD images for SGI LiveCDs"
HOMEPAGE="ftp://ftp.linux-mips.org/pub/linux/mips/people/skylark/"
SRC_URI="https://dev.gentoo.org/~kumba/distfiles/${P}.tar.xz"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~mips"

IUSE=""
RDEPEND=""
DEPEND=""
RESTRICT=""

# sgibootcd is a small utility used to build the image that is burned to a
# CD and used to boot SGI systems.  Its compilation does not involve the
# external linker, 'ld', and thus this makes it difficult to reliably pass
# user LDFLAGS.  See Bug #725836.
QA_FLAGS_IGNORED="/usr/bin/sgibootcd"

src_compile() {
	local mycc="$(tc-getCC) ${CFLAGS}"

	# There is no Makefile, so check for an existing binary
	# and remove it if necessary
	[[ -f "${S}/sgibootcd" ]] && rm -f "${S}"/sgibootcd

	# Compile sgibootcd.c to a standalone executable.
	einfo "${mycc} sgibootcd.c -o sgibootcd"
	${mycc} sgibootcd.c -o sgibootcd
}

src_install() {
	dobin "${S}"/sgibootcd
}