linamh/dev-embedded/cc65/cc65-2.19.ebuild

42 lines
1.5 KiB
Bash
Raw Normal View History

2020-01-23 11:57:54 +01:00
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
2021-07-01 13:56:41 +02:00
EAPI="5"
2020-01-23 11:57:54 +01:00
inherit eutils toolchain-funcs multilib
DESCRIPTION="It's a complete cross development package for 65(C)02 systems"
HOMEPAGE="http://www.cc65.org"
#SRC_URI="ftp://ftp.musoftware.de/pub/uz/cc65/snapshot/cc65-snapshot-sources-${PV}.tar.bz2"
#SRC_URI="ftp://ftp.musoftware.de/pub/uz/${PN}/${PN}-sources-${PV}.tar.bz2"
SRC_URI="https://github.com/${PN}/${PN}/archive/V${PV}.tar.gz -> ${PN}-sources-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc"
DEPEND="doc? ( app-text/linuxdoc-tools )"
RDEPEND=""
#S="${WORKDIR}"/${PN}-snapshot-${PV}
2022-02-23 19:17:30 +01:00
#src_prepare() {
# epatch "${FILESDIR}"/package-version.patch
#}
2020-01-23 11:57:54 +01:00
src_compile() {
# the build needs to be split otherwise we can't specify CC
# these makefiles are not parallel build aware
2022-02-23 19:17:30 +01:00
emake -C src CC="$(tc-getCC)" AR="$(tc-getAR)" PREFIX="/usr" BUILD_ID="Gentoo ${PV}${PR}" || die "src build fail"
emake -C libsrc CC="$(tc-getCC)" AR="$(tc-getAR)" PREFIX="/usr" BUILD_ID="Gentoo ${PV}${PR}" || die "libsrc build fail"
2021-06-30 18:45:43 +02:00
use doc && emake -C doc html info
2020-01-23 11:57:54 +01:00
}
src_install() {
2022-02-23 19:17:30 +01:00
emake -C src CC="$(tc-getCC)" AR="$(tc-getAR)" PREFIX="${D}/usr" BUILD_ID="Gentoo ${PV}${PR}" install || die "src install failed"
emake -C libsrc CC="$(tc-getCC)" AR="$(tc-getAR)" PREFIX="${D}/usr" BUILD_ID="Gentoo ${PV}${PR}" install || die "libsrc install failed"
use doc && emake CC="$(tc-getCC)" AR="$(tc-getAR)" PREFIX="${D}/usr" BUILD_ID="Gentoo ${PV}${PR}" doc html info
2020-01-23 11:57:54 +01:00
}