1 |
commit: ab34406a54287f558bebae70ebbfe9549db97b61 |
2 |
Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 8 02:18:17 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 8 02:28:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ab34406a |
7 |
|
8 |
dev-lang/fbc-bootstrap: Version bump to 1.08.1 |
9 |
|
10 |
Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com> |
11 |
|
12 |
dev-lang/fbc-bootstrap/Manifest | 1 + |
13 |
dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild | 29 ++++++++++++++++++++++ |
14 |
.../files/fbc-1.08.1-Pass-ltinfo-to-linker.patch | 25 +++++++++++++++++++ |
15 |
3 files changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/dev-lang/fbc-bootstrap/Manifest b/dev-lang/fbc-bootstrap/Manifest |
18 |
index 934b90671..ecdea2877 100644 |
19 |
--- a/dev-lang/fbc-bootstrap/Manifest |
20 |
+++ b/dev-lang/fbc-bootstrap/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST FreeBASIC-1.07.3-source-bootstrap.tar.xz 10702984 BLAKE2B dbf68351c54d9a1ec6f5952e7867bc370fdc36db406c9a76d18f9e85757c26f3c954d91ce56593af9ceacf1e24e8038ba7cfeaa66a988923fd5d57d5f160584d SHA512 59a06e633b2bf5054d2b5f7a9da7e539a51657a20d50ac2e055255dab30acc87e03596a53613e1d7f1ac74798d4919b5d7aa32b20a229c7725ebc1e53460b70e |
23 |
+DIST FreeBASIC-1.08.1-source-bootstrap.tar.xz 12234408 BLAKE2B 5e10e784843253b15b22103d653a16cbabddd143d5b51990c87d4f1082c4ebed9a704bb50d065103bf3381377850cfa561a7dbbd99d11163b507cfc94c2827c7 SHA512 603ef6389ef6a90894dcca7bb31876dae8d1f4014da2b92f6a89cb23665e36130fdd98ffeed6c2e9fa90e549c2fc54450fa55932d22b6eead453b4aa6d4785c2 |
24 |
|
25 |
diff --git a/dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..d713fdb56 |
28 |
--- /dev/null |
29 |
+++ b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild |
30 |
@@ -0,0 +1,29 @@ |
31 |
+# Copyright 2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="Bootstrap package for dev-lang/fbc" |
39 |
+HOMEPAGE="https://www.freebasic.net" |
40 |
+SRC_URI="https://github.com/freebasic/fbc/releases/download/${PV}/FreeBASIC-${PV}-source-bootstrap.tar.xz" |
41 |
+ |
42 |
+LICENSE="FDL-1.2 GPL-2+ LGPL-2.1+" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+ |
46 |
+PATCHES=( "${FILESDIR}"/fbc-1.08.1-Pass-ltinfo-to-linker.patch ) |
47 |
+ |
48 |
+S="${WORKDIR}/FreeBASIC-${PV}-source-bootstrap" |
49 |
+ |
50 |
+src_compile() { |
51 |
+ emake bootstrap-minimal \ |
52 |
+ AR=$(tc-getAR) AS=$(tc-getAS) CC=$(tc-getCC) CFLAGS="${CFLAGS}" V=1 |
53 |
+} |
54 |
+ |
55 |
+src_install() { |
56 |
+ newbin bin/fbc fbc-bootstrap |
57 |
+ emake DESTDIR="${D}" prefix="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-includes |
58 |
+ emake DESTDIR="${D}" prefix="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-rtlib |
59 |
+} |
60 |
|
61 |
diff --git a/dev-lang/fbc-bootstrap/files/fbc-1.08.1-Pass-ltinfo-to-linker.patch b/dev-lang/fbc-bootstrap/files/fbc-1.08.1-Pass-ltinfo-to-linker.patch |
62 |
new file mode 100644 |
63 |
index 000000000..6a57f34be |
64 |
--- /dev/null |
65 |
+++ b/dev-lang/fbc-bootstrap/files/fbc-1.08.1-Pass-ltinfo-to-linker.patch |
66 |
@@ -0,0 +1,25 @@ |
67 |
+From 5e209af787bf74327c0dcba1d75d6a5477dfb0cb Mon Sep 17 00:00:00 2001 |
68 |
+From: William Breathitt Gray <vilhelm.gray@×××××.com> |
69 |
+Date: Wed, 8 Sep 2021 11:27:39 +0900 |
70 |
+Subject: [PATCH] Pass -ltinfo to linker |
71 |
+ |
72 |
+--- |
73 |
+ makefile | 2 +- |
74 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
75 |
+ |
76 |
+diff --git a/makefile b/makefile |
77 |
+index 04c5c3976..364dc9a0d 100644 |
78 |
+--- a/makefile |
79 |
++++ b/makefile |
80 |
+@@ -1368,7 +1368,7 @@ endif |
81 |
+ # Use gcc to link fbc from the bootstrap .o's |
82 |
+ # (assuming the rtlib was built already) |
83 |
+ ifneq ($(filter darwin freebsd dragonfly linux netbsd openbsd solaris,$(TARGET_OS)),) |
84 |
+- BOOTSTRAP_LIBS := -lncurses -lm -pthread |
85 |
++ BOOTSTRAP_LIBS := -ltinfo -lncurses -lm -pthread |
86 |
+ endif |
87 |
+ $(BOOTSTRAP_FBC): rtlib $(BOOTSTRAP_OBJ) |
88 |
+ $(QUIET_LINK)$(CC) -o $@ $(libdir)/fbrt0.o bootstrap/$(FBTARGET)/*.o $(libdir)/libfb.a $(BOOTSTRAP_LIBS) |
89 |
+-- |
90 |
+2.33.0 |
91 |
+ |