* [gentoo-commits] repo/proj/guru:master commit in: dev-lang/fbc-bootstrap/files/, dev-lang/fbc-bootstrap/
@ 2020-12-28 23:22 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2020-12-28 23:22 UTC (permalink / raw
To: gentoo-commits
commit: 4b1221ec3844153cdb4b251eb457053ed20dd42c
Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
AuthorDate: Mon Dec 28 23:08:35 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Dec 28 23:14:01 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b1221ec
dev-lang/fbc-bootstrap: New package
Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
dev-lang/fbc-bootstrap/Manifest | 1 +
dev-lang/fbc-bootstrap/fbc-bootstrap-1.07.2.ebuild | 26 ++++++++++++++++++++++
.../files/fbc-1.07.0-Pass-ltinfo-to-linker.patch | 25 +++++++++++++++++++++
dev-lang/fbc-bootstrap/metadata.xml | 17 ++++++++++++++
4 files changed, 69 insertions(+)
diff --git a/dev-lang/fbc-bootstrap/Manifest b/dev-lang/fbc-bootstrap/Manifest
new file mode 100644
index 00000000..7b009089
--- /dev/null
+++ b/dev-lang/fbc-bootstrap/Manifest
@@ -0,0 +1 @@
+DIST FreeBASIC-1.07.2-source-bootstrap.tar.xz 10700992 BLAKE2B e7016e5f58ae79086c0445bf6a09f33d4335af771422778be407e3351d583522e16f137763e471ba88e47b4318ab5bd2aec882ef5e5ff85cc334b0eccf27fdc5 SHA512 f381d14343496f68d3401ad1a66ff4fb1314270eddebb72ed2bc5624b856c4b29e7e14062f531a5158d892bb73d9aa80ff54fe7c260b4b8967b1330d26b2ecfc
diff --git a/dev-lang/fbc-bootstrap/fbc-bootstrap-1.07.2.ebuild b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.07.2.ebuild
new file mode 100644
index 00000000..747c02a5
--- /dev/null
+++ b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.07.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+
+LICENSE="FDL-1.2 GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=( "${FILESDIR}"/fbc-1.07.0-Pass-ltinfo-to-linker.patch )
+
+S="${WORKDIR}/FreeBASIC-${PV}-source-bootstrap"
+
+src_compile() {
+ emake bootstrap-minimal
+}
+
+src_install() {
+ newbin bin/fbc fbc-bootstrap
+ emake DESTDIR="${D}" prefix="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-includes
+ emake DESTDIR="${D}" prefix="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-rtlib
+}
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
new file mode 100644
index 00000000..72bd51fa
--- /dev/null
+++ b/dev-lang/fbc-bootstrap/files/fbc-1.07.0-Pass-ltinfo-to-linker.patch
@@ -0,0 +1,25 @@
+From c62adcd85c4e9d8b793a7a4f71fc88f6fbb79798 Mon Sep 17 00:00:00 2001
+From: William Breathitt Gray <vilhelm.gray@gmail.com>
+Date: Tue, 27 Aug 2019 20:41:07 +0900
+Subject: [PATCH] Pass -ltinfo to linker
+
+---
+ makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/makefile b/makefile
+index e093bb1..eb3f759 100644
+--- a/makefile
++++ b/makefile
+@@ -1109,7 +1109,7 @@ endif
+ # Use gcc to link fbc from the bootstrap .o's
+ # (assuming the rtlib was built already)
+ ifneq ($(filter darwin freebsd 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)
+--
+2.22.1
+
diff --git a/dev-lang/fbc-bootstrap/metadata.xml b/dev-lang/fbc-bootstrap/metadata.xml
new file mode 100644
index 00000000..5ef896cc
--- /dev/null
+++ b/dev-lang/fbc-bootstrap/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ This package is used only to boot strap <pkg>dev-lang/fbc</pkg>.
+ It is not meant to be used by end users directly.
+ </longdescription>
+ <maintainer type="person">
+ <email>vilhelm.gray@gmail.com</email>
+ <name>William Breathitt Gray</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/freebasic/fbc/issues</bugs-to>
+ <doc lang="en">https://www.freebasic.net</doc>
+ <remote-id type="github">freebasic/fbc</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-lang/fbc-bootstrap/files/, dev-lang/fbc-bootstrap/
@ 2021-09-08 15:20 Arthur Zamarin
0 siblings, 0 replies; 2+ messages in thread
From: Arthur Zamarin @ 2021-09-08 15:20 UTC (permalink / raw
To: gentoo-commits
commit: ab34406a54287f558bebae70ebbfe9549db97b61
Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
AuthorDate: Wed Sep 8 02:18:17 2021 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 8 02:28:51 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ab34406a
dev-lang/fbc-bootstrap: Version bump to 1.08.1
Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
dev-lang/fbc-bootstrap/Manifest | 1 +
dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild | 29 ++++++++++++++++++++++
.../files/fbc-1.08.1-Pass-ltinfo-to-linker.patch | 25 +++++++++++++++++++
3 files changed, 55 insertions(+)
diff --git a/dev-lang/fbc-bootstrap/Manifest b/dev-lang/fbc-bootstrap/Manifest
index 934b90671..ecdea2877 100644
--- a/dev-lang/fbc-bootstrap/Manifest
+++ b/dev-lang/fbc-bootstrap/Manifest
@@ -1 +1,2 @@
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
diff --git a/dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild
new file mode 100644
index 000000000..d713fdb56
--- /dev/null
+++ b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+
+LICENSE="FDL-1.2 GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=( "${FILESDIR}"/fbc-1.08.1-Pass-ltinfo-to-linker.patch )
+
+S="${WORKDIR}/FreeBASIC-${PV}-source-bootstrap"
+
+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="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-includes
+ emake DESTDIR="${D}" prefix="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-rtlib
+}
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
new file mode 100644
index 000000000..6a57f34be
--- /dev/null
+++ b/dev-lang/fbc-bootstrap/files/fbc-1.08.1-Pass-ltinfo-to-linker.patch
@@ -0,0 +1,25 @@
+From 5e209af787bf74327c0dcba1d75d6a5477dfb0cb Mon Sep 17 00:00:00 2001
+From: William Breathitt Gray <vilhelm.gray@gmail.com>
+Date: Wed, 8 Sep 2021 11:27:39 +0900
+Subject: [PATCH] Pass -ltinfo to linker
+
+---
+ makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/makefile b/makefile
+index 04c5c3976..364dc9a0d 100644
+--- a/makefile
++++ b/makefile
+@@ -1368,7 +1368,7 @@ 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)
+--
+2.33.0
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-08 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-28 23:22 [gentoo-commits] repo/proj/guru:master commit in: dev-lang/fbc-bootstrap/files/, dev-lang/fbc-bootstrap/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2021-09-08 15:20 Arthur Zamarin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox