aboutsummaryrefslogtreecommitdiff
blob: c365d5163ee5743fc28afc6d4693298c6b23798d (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
# Copyright 2022, 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Cross-development package for 65(C)02 systems"
HOMEPAGE="https://cc65.github.io/"
SRC_URI="https://github.com/cc65/cc65/archive/refs/tags/V${PV}.tar.gz"

LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64"

src_compile() {
	ewarn "According to an upstream maintainer, cc65 has a tendency to"
	ewarn "\"fail randomly\" when using \`make -j' to build in parallel."
	ewarn "If compiling this package fails, and you have parallel jobs"
	ewarn "enabled, try again with \`MAKEOPTS+=-j1' to disable them."

	emake CC="$(tc-getCC)" AR="$(tc-getAR)" PREFIX="${EPREFIX}/usr"
}

src_install() {
	emake CC="$(tc-getCC)" AR="$(tc-getAR)" DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
	dodoc README.md
}