mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-lang/fbc-bootstrap: New package
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
This commit is contained in:
1
dev-lang/fbc-bootstrap/Manifest
Normal file
1
dev-lang/fbc-bootstrap/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST FreeBASIC-1.07.2-source-bootstrap.tar.xz 10700992 BLAKE2B e7016e5f58ae79086c0445bf6a09f33d4335af771422778be407e3351d583522e16f137763e471ba88e47b4318ab5bd2aec882ef5e5ff85cc334b0eccf27fdc5 SHA512 f381d14343496f68d3401ad1a66ff4fb1314270eddebb72ed2bc5624b856c4b29e7e14062f531a5158d892bb73d9aa80ff54fe7c260b4b8967b1330d26b2ecfc
|
||||
26
dev-lang/fbc-bootstrap/fbc-bootstrap-1.07.2.ebuild
Normal file
26
dev-lang/fbc-bootstrap/fbc-bootstrap-1.07.2.ebuild
Normal file
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
|
||||
17
dev-lang/fbc-bootstrap/metadata.xml
Normal file
17
dev-lang/fbc-bootstrap/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user