blob: 1a4c8c42f2cdf46dcc783f289fb623589c4d4ba5 (
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
29
30
31
32
33
34
35
36
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs flag-o-matic
DESCRIPTION="UASM is a free MASM-compatible assembler"
HOMEPAGE="https://www.terraspace.co.uk/uasm.html"
SRC_URI="https://github.com/Terraspace/UASM/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Watcom-1.0"
SLOT="0"
KEYWORDS="~amd64"
S="${WORKDIR}/UASM-${PV}"
PATCHES=(
"${FILESDIR}/build-fix.patch"
)
src_prepare() {
default
# don't strip binary
sed -i gccLinux64.mak -e 's/ -s / /g' || die
}
src_compile() {
append-cflags -fcommon # Bug: https://github.com/Terraspace/UASM/issues/143
emake -f gccLinux64.mak CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install() {
dobin GccUnixR/uasm
dodoc *.txt Doc/*.txt
}
|