linamh/dev-embedded/acme/acme-0.97_pre352.ebuild

37 lines
1.2 KiB
Bash
Raw Normal View History

2021-06-30 18:45:43 +02:00
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
2023-07-20 20:28:34 +02:00
EAPI=8
2021-06-30 18:45:43 +02:00
2024-03-12 20:41:02 +01:00
PREREL="352"
2023-07-20 20:28:34 +02:00
inherit toolchain-funcs multilib
2021-06-30 18:45:43 +02:00
DESCRIPTION="ACME is a free cross assembler, It can produce code for the following processors: 6502, 6510 (including illegal opcodes), 65c02 and 65816."
2022-02-23 19:17:30 +01:00
HOMEPAGE="https://github.com/martinpiper/acme"
2024-03-12 20:41:02 +01:00
SRC_URI="https://sourceforge.net/code-snapshots/svn/a/ac/acme-crossass/code-0/acme-crossass-code-0-r${PREREL}-trunk.zip -> ${PN}-${PV}.zip"
2021-06-30 18:45:43 +02:00
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc"
DEPEND="doc? ( app-text/linuxdoc-tools )"
RDEPEND=""
2024-03-12 20:41:02 +01:00
#S="${WORKDIR}"/${PN}-master
S="${WORKDIR}"/${PN}-crossass-code-0-r${PREREL}-trunk
2021-06-30 18:45:43 +02:00
src_compile() {
# the build needs to be split otherwise we can't specify CC
# these makefiles are not parallel build aware
emake -C src CC="$(tc-getCC)" AR="$(tc-getAR)" BINDIR="/usr/bin" || die "src build fail"
use doc && emake -C doc html info
}
src_install() {
emake -C src CC="$(tc-getCC)" AR="$(tc-getAR)" BINDIR="${D}/usr/bin" install || die "src install failed"
use doc && emake CC="$(tc-getCC)" AR="$(tc-getAR)" BINDIR="${D}/usr/bin" doc html info
}