sys-devel/dev86: drop 0.16.21-r3, EAPI=7--

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-06-20 19:56:25 +03:00
parent 1f138cff25
commit afb0668d9b
2 changed files with 0 additions and 83 deletions

View File

@@ -1,2 +1 @@
DIST Dev86src-0.16.21.tar.gz 717215 BLAKE2B 977353422937f57d2046f151a53008dcec90f4060d60675dcb81fa58af5f1ed758a1950dcbd211cda57c84b55bf58ffbad28195ff115db50a7a1108d434b8b4e SHA512 6d35dc3c7f9735cf7967cdb2bc0f7bee967ae26667cd8cef56bbdf7d7855ef1d35057db4c0031ff86b9b95d3c8ee44aff408446115b35b6c10cf207a33838016
DIST Dev86src-1.0.1.tar.gz 745528 BLAKE2B e64ab251342cb97bdb581a6170d269282221983d3c751963e6a3ec2d5f1d6878bdf96740a3a84939e2bed110ec84179e9bd8f55209b2be8f66c178d829ac390e SHA512 0b0e08d8a66faf12599085c44082832101202bfe9c5fcbe4e564e104f56075c699b2680d61924a523fc9f61288a75648ec30cd5257c15abed8d95fab55211231

View File

@@ -1,82 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="Bruce's C compiler - Simple C compiler to generate 8086 code"
HOMEPAGE="http://www.debath.co.uk/ https://github.com/lkundrak/dev86"
SRC_URI="http://v3.sk/~lkundrak/dev86/Dev86src-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
RDEPEND="sys-devel/bin86"
DEPEND="${RDEPEND}
dev-util/gperf"
PATCHES=(
"${FILESDIR}/${PN}-pic.patch"
"${FILESDIR}/${PN}-0.16.19-fortify.patch"
"${FILESDIR}/${P}-non-void-return-clang.patch"
"${FILESDIR}/${PN}-0.16.21-make.patch"
"${FILESDIR}/${P}-void-return-check-msdos-clang-fix.patch"
)
src_prepare() {
default
# elksemu doesn't compile under amd64
if use amd64; then
einfo "Not compiling elksemu on amd64"
sed -i \
-e 's,alt-libs elksemu,alt-libs,' \
-e 's,install-lib install-emu,install-lib,' \
makefile.in || die
fi
sed -i -e "s|-O2 -g|${CFLAGS} -std=gnu89|" -e '/INEXE=/s:-s::' makefile.in || die
sed -i -e "s:/lib/:/$(get_libdir)/:" bcc/bcc.c || die
sed -i -e '/INSTALL_OPTS=/s:-s::' bin86/Makefile || die
sed -i -e '/install -m 755 -s/s:-s::' dis88/Makefile || die
sed -i -e 's:CFLAGS=-O:CFLAGS=-O -std=gnu89:' dis88/Makefile || die
}
src_compile() {
# Don't mess with CPPFLAGS as they tend to break compilation
# (bug #343655).
unset CPPFLAGS
# First `make` is also a config, so set all the path vars here
emake -j1 \
CC="$(tc-getCC) -std=gnu89" \
LIBDIR="/usr/$(get_libdir)/bcc" \
INCLDIR="/usr/$(get_libdir)/bcc" \
all
export PATH=${S}/bin:${PATH}
cd bin || die
ln -s ncc bcc || die
cd .. || die
cd bootblocks || die
emake \
HOSTCC="$(tc-getCC) -std=gnu89"
}
src_install() {
emake -j1 install-all DIST="${D}"
dostrip -x "/usr/*/bcc/lib*.a /usr/*/i386/libc.a"
dobin bootblocks/makeboot
# remove all the stuff supplied by bin86
rm "${D}"/usr/bin/{as,ld,nm,objdump,size}86 || die
rm "${D}"/usr/man/man1/{as,ld}86.1 || die
dodir /usr/share
mv "${D}"/usr/{man,share/man} || die
}