1 |
commit: 4b1221ec3844153cdb4b251eb457053ed20dd42c |
2 |
Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Dec 28 23:08:35 2020 +0000 |
4 |
Commit: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Dec 28 23:14:01 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b1221ec |
7 |
|
8 |
dev-lang/fbc-bootstrap: New package |
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.07.2.ebuild | 26 ++++++++++++++++++++++ |
14 |
.../files/fbc-1.07.0-Pass-ltinfo-to-linker.patch | 25 +++++++++++++++++++++ |
15 |
dev-lang/fbc-bootstrap/metadata.xml | 17 ++++++++++++++ |
16 |
4 files changed, 69 insertions(+) |
17 |
|
18 |
diff --git a/dev-lang/fbc-bootstrap/Manifest b/dev-lang/fbc-bootstrap/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000..7b009089 |
21 |
--- /dev/null |
22 |
+++ b/dev-lang/fbc-bootstrap/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST FreeBASIC-1.07.2-source-bootstrap.tar.xz 10700992 BLAKE2B e7016e5f58ae79086c0445bf6a09f33d4335af771422778be407e3351d583522e16f137763e471ba88e47b4318ab5bd2aec882ef5e5ff85cc334b0eccf27fdc5 SHA512 f381d14343496f68d3401ad1a66ff4fb1314270eddebb72ed2bc5624b856c4b29e7e14062f531a5158d892bb73d9aa80ff54fe7c260b4b8967b1330d26b2ecfc |
25 |
|
26 |
diff --git a/dev-lang/fbc-bootstrap/fbc-bootstrap-1.07.2.ebuild b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.07.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..747c02a5 |
29 |
--- /dev/null |
30 |
+++ b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.07.2.ebuild |
31 |
@@ -0,0 +1,26 @@ |
32 |
+# Copyright 2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DESCRIPTION="Bootstrap package for dev-lang/fbc" |
38 |
+HOMEPAGE="https://www.freebasic.net" |
39 |
+SRC_URI="https://github.com/freebasic/fbc/releases/download/${PV}/FreeBASIC-${PV}-source-bootstrap.tar.xz" |
40 |
+ |
41 |
+LICENSE="FDL-1.2 GPL-2+ LGPL-2.1+" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+ |
45 |
+PATCHES=( "${FILESDIR}"/fbc-1.07.0-Pass-ltinfo-to-linker.patch ) |
46 |
+ |
47 |
+S="${WORKDIR}/FreeBASIC-${PV}-source-bootstrap" |
48 |
+ |
49 |
+src_compile() { |
50 |
+ emake bootstrap-minimal |
51 |
+} |
52 |
+ |
53 |
+src_install() { |
54 |
+ newbin bin/fbc fbc-bootstrap |
55 |
+ emake DESTDIR="${D}" prefix="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-includes |
56 |
+ emake DESTDIR="${D}" prefix="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-rtlib |
57 |
+} |
58 |
|
59 |
diff --git a/dev-lang/fbc-bootstrap/files/fbc-1.07.0-Pass-ltinfo-to-linker.patch b/dev-lang/fbc-bootstrap/files/fbc-1.07.0-Pass-ltinfo-to-linker.patch |
60 |
new file mode 100644 |
61 |
index 00000000..72bd51fa |
62 |
--- /dev/null |
63 |
+++ b/dev-lang/fbc-bootstrap/files/fbc-1.07.0-Pass-ltinfo-to-linker.patch |
64 |
@@ -0,0 +1,25 @@ |
65 |
+From c62adcd85c4e9d8b793a7a4f71fc88f6fbb79798 Mon Sep 17 00:00:00 2001 |
66 |
+From: William Breathitt Gray <vilhelm.gray@×××××.com> |
67 |
+Date: Tue, 27 Aug 2019 20:41:07 +0900 |
68 |
+Subject: [PATCH] Pass -ltinfo to linker |
69 |
+ |
70 |
+--- |
71 |
+ makefile | 2 +- |
72 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
73 |
+ |
74 |
+diff --git a/makefile b/makefile |
75 |
+index e093bb1..eb3f759 100644 |
76 |
+--- a/makefile |
77 |
++++ b/makefile |
78 |
+@@ -1109,7 +1109,7 @@ endif |
79 |
+ # Use gcc to link fbc from the bootstrap .o's |
80 |
+ # (assuming the rtlib was built already) |
81 |
+ ifneq ($(filter darwin freebsd linux netbsd openbsd solaris,$(TARGET_OS)),) |
82 |
+- BOOTSTRAP_LIBS := -lncurses -lm -pthread |
83 |
++ BOOTSTRAP_LIBS := -ltinfo -lncurses -lm -pthread |
84 |
+ endif |
85 |
+ $(BOOTSTRAP_FBC): rtlib $(BOOTSTRAP_OBJ) |
86 |
+ $(QUIET_LINK)$(CC) -o $@ $(libdir)/fbrt0.o bootstrap/$(FBTARGET)/*.o $(libdir)/libfb.a $(BOOTSTRAP_LIBS) |
87 |
+-- |
88 |
+2.22.1 |
89 |
+ |
90 |
|
91 |
diff --git a/dev-lang/fbc-bootstrap/metadata.xml b/dev-lang/fbc-bootstrap/metadata.xml |
92 |
new file mode 100644 |
93 |
index 00000000..5ef896cc |
94 |
--- /dev/null |
95 |
+++ b/dev-lang/fbc-bootstrap/metadata.xml |
96 |
@@ -0,0 +1,17 @@ |
97 |
+<?xml version="1.0" encoding="UTF-8"?> |
98 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
99 |
+<pkgmetadata> |
100 |
+ <longdescription lang="en"> |
101 |
+ This package is used only to boot strap <pkg>dev-lang/fbc</pkg>. |
102 |
+ It is not meant to be used by end users directly. |
103 |
+ </longdescription> |
104 |
+ <maintainer type="person"> |
105 |
+ <email>vilhelm.gray@×××××.com</email> |
106 |
+ <name>William Breathitt Gray</name> |
107 |
+ </maintainer> |
108 |
+ <upstream> |
109 |
+ <bugs-to>https://github.com/freebasic/fbc/issues</bugs-to> |
110 |
+ <doc lang="en">https://www.freebasic.net</doc> |
111 |
+ <remote-id type="github">freebasic/fbc</remote-id> |
112 |
+ </upstream> |
113 |
+</pkgmetadata> |