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
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"
SRC_URI = " https://github.com/martinpiper/ ${ PN } /archive/master.zip -> ${ PN } -sources- ${ 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 = ""
S = " ${ WORKDIR } " /${ PN } -master
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
}