2022-05-08 23:12:22 -04:00
|
|
|
# Copyright 2020-2022 Gentoo Authors
|
2020-12-25 18:40:35 -05:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-05-08 23:12:22 -04:00
|
|
|
EAPI=8
|
2020-12-25 18:40:35 -05:00
|
|
|
|
2022-05-08 23:12:22 -04:00
|
|
|
if [[ ${PV} == 9999 ]]; then
|
2020-12-25 18:40:35 -05:00
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/cc65/cc65.git"
|
2022-05-08 23:12:22 -04:00
|
|
|
else
|
|
|
|
SRC_URI="https://github.com/cc65/cc65/archive/V${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
KEYWORDS="~amd64"
|
2020-12-25 18:40:35 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="A C compiler for 6502-based systems"
|
|
|
|
HOMEPAGE="https://cc65.github.io/"
|
|
|
|
LICENSE="ZLIB"
|
2022-05-08 23:12:22 -04:00
|
|
|
IUSE="doc"
|
2020-12-25 18:40:35 -05:00
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="${DEPEND}"
|
2022-05-08 23:12:22 -04:00
|
|
|
BDEPEND="doc? ( app-text/linuxdoc-tools )"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake PREFIX="/usr"
|
|
|
|
use doc && emake -C doc
|
|
|
|
}
|
2020-12-25 18:40:35 -05:00
|
|
|
|
|
|
|
src_install() {
|
2022-05-08 23:12:22 -04:00
|
|
|
emake DESTDIR="${D}" PREFIX="/usr" DESTPACKAGE_SUFFIX="-${PV}" install
|
2020-12-25 18:40:35 -05:00
|
|
|
}
|