dev-lang/fbc-bootstrap: add 1.10.1

Closes: https://bugs.gentoo.org/799860
Closes: https://bugs.gentoo.org/932355
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2024-11-11 18:06:05 +09:00
parent db9b3fea72
commit 9737eb316e
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61
3 changed files with 50 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST FreeBASIC-1.07.3-source-bootstrap.tar.xz 10702984 BLAKE2B dbf68351c54d9a1ec6f5952e7867bc370fdc36db406c9a76d18f9e85757c26f3c954d91ce56593af9ceacf1e24e8038ba7cfeaa66a988923fd5d57d5f160584d SHA512 59a06e633b2bf5054d2b5f7a9da7e539a51657a20d50ac2e055255dab30acc87e03596a53613e1d7f1ac74798d4919b5d7aa32b20a229c7725ebc1e53460b70e
DIST FreeBASIC-1.08.1-source-bootstrap.tar.xz 12234408 BLAKE2B 5e10e784843253b15b22103d653a16cbabddd143d5b51990c87d4f1082c4ebed9a704bb50d065103bf3381377850cfa561a7dbbd99d11163b507cfc94c2827c7 SHA512 603ef6389ef6a90894dcca7bb31876dae8d1f4014da2b92f6a89cb23665e36130fdd98ffeed6c2e9fa90e549c2fc54450fa55932d22b6eead453b4aa6d4785c2
DIST FreeBASIC-1.10.1-source-bootstrap.tar.xz 15113488 BLAKE2B 50afb52b3c0bdbc6b1ec5fe5d6c8b6fee78dd964c8dc5b5d992973aea52113c20300b1abd9165bf62682047dcabbb7b0be490e47d4a5d20470a4c80e8742079e SHA512 e28ea554f9365753717580663ecf40b2254a2da4b141612ac8e3f388a375b44ee6b1f5690d50e30c3cad8ba142a7387e0d32509040bdf5108bdec42427bef163

View File

@ -0,0 +1,32 @@
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Bootstrap package for dev-lang/fbc"
HOMEPAGE="https://www.freebasic.net"
SRC_URI="https://github.com/freebasic/fbc/releases/download/${PV}/FreeBASIC-${PV}-source-bootstrap.tar.xz"
S="${WORKDIR}/FreeBASIC-${PV}-source-bootstrap"
LICENSE="FDL-1.2 GPL-2+ LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="sys-libs/ncurses:="
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${P}-fix-ldflags.patch" )
src_compile() {
emake bootstrap-minimal \
AR="$(tc-getAR)" AS="$(tc-getAS)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" V=1
}
src_install() {
newbin bin/fbc fbc-bootstrap
emake DESTDIR="${D}" prefix="${EPREFIX}/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-includes
emake DESTDIR="${D}" prefix="${EPREFIX}/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-rtlib
}

View File

@ -0,0 +1,17 @@
https://github.com/freebasic/fbc/issues/170
https://bugs.gentoo.org/799860
--- a/makefile
+++ b/makefile
@@ -1409,10 +1409,10 @@ endif
# Use gcc to link fbc from the bootstrap .o's
# (assuming the rtlib was built already)
ifneq ($(filter darwin freebsd dragonfly linux netbsd openbsd solaris,$(TARGET_OS)),)
- BOOTSTRAP_LIBS := -lncurses -lm -pthread
+ BOOTSTRAP_LIBS := -ltinfo -lncurses -lm -pthread
endif
$(BOOTSTRAP_FBC): rtlib $(BOOTSTRAP_OBJ)
- $(QUIET_LINK)$(CC) -o $@ $(libdir)/fbrt0.o bootstrap/$(FBTARGET)/*.o $(libdir)/libfb.a $(BOOTSTRAP_LIBS)
+ $(QUIET_LINK)$(CC) -o $@ $(libdir)/fbrt0.o bootstrap/$(FBTARGET)/*.o $(libdir)/libfb.a $(BOOTSTRAP_LIBS) $(LDFLAGS)
.PHONY: clean-bootstrap
clean-bootstrap: