diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-06 00:30:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-06 00:30:33 +0100 |
commit | 9323524b4d44f4ec3dc923bd8e9ea04bdde8a067 (patch) | |
tree | 8ca7b8c58d4e70389d5d4672ebd86cb475cf9f80 /dev-lang/uasm/uasm-2.56.2.ebuild | |
parent | 8c11cf748cc296d6338a189106a8cc9e3a1e0948 (diff) |
gentoo auto-resync : 06:04:2024 - 00:30:33
Diffstat (limited to 'dev-lang/uasm/uasm-2.56.2.ebuild')
-rw-r--r-- | dev-lang/uasm/uasm-2.56.2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-lang/uasm/uasm-2.56.2.ebuild b/dev-lang/uasm/uasm-2.56.2.ebuild new file mode 100644 index 000000000000..8210588c135e --- /dev/null +++ b/dev-lang/uasm/uasm-2.56.2.ebuild @@ -0,0 +1,41 @@ +# 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" +S="${WORKDIR}/UASM-${PV}" + +LICENSE="Watcom-1.0" +SLOT="0" +KEYWORDS="~amd64" +PATCHES=( + "${FILESDIR}/build-fix.patch" +) + +src_prepare() { + default + # don't strip binary + sed -i gccLinux64.mak -e 's/ -s / /g' || die +} + +src_compile() { + # Bug: https://github.com/Terraspace/UASM/issues/143 + append-cflags -fcommon + # https://github.com/Terraspace/UASM/issues/197 + append-cflags -Wno-error=incompatible-pointer-types + + emake -f gccLinux64.mak \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin GccUnixR/uasm + dodoc *.txt Doc/*.txt +} |