Gentoo Archives: gentoo-commits

From: Ralph Seichter <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lang/fbc/files/1.07.0/, dev-lang/fbc/
Date: Tue, 27 Aug 2019 23:01:23
Message-Id: 1566907239.7b9d865baea700878aa4ab8358da70c3919eea6b.ralph-seichter@gentoo
1 commit: 7b9d865baea700878aa4ab8358da70c3919eea6b
2 Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
3 AuthorDate: Tue Aug 27 12:00:39 2019 +0000
4 Commit: Ralph Seichter <gentoo <AT> seichter <DOT> de>
5 CommitDate: Tue Aug 27 12:00:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7b9d865b
7
8 dev-lang/fbc: Bump to version 1.07.0
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
12
13 dev-lang/fbc/Manifest | 2 +
14 dev-lang/fbc/fbc-1.07.0.ebuild | 89 ++++++++++++++++++++++
15 .../files/1.07.0/0001-Pass-ltinfo-to-linker.patch | 25 ++++++
16 3 files changed, 116 insertions(+)
17
18 diff --git a/dev-lang/fbc/Manifest b/dev-lang/fbc/Manifest
19 index 948cffc..d8c8386 100644
20 --- a/dev-lang/fbc/Manifest
21 +++ b/dev-lang/fbc/Manifest
22 @@ -1,4 +1,6 @@
23 DIST FreeBASIC-1.06.0-source-bootstrap.tar.xz 7742292 BLAKE2B fd32c6e5edf6e8c27538465141c6b870d6c893f8e05fc8d91b273f9268a68065709cba95e8c5cd8b86786522b2ac1eaf1a6a547227432bbc9998eb1288b29515 SHA512 42878091994cae7e0a2f4ba1d2d83a80d32d62ad06790ac06643a266200b53b7ce2480a651b1622910a2733756b7ca032a5be1bb73ee3f796146394eebb9f43c
24 +DIST FreeBASIC-1.07.0-source-bootstrap.tar.xz 8237216 BLAKE2B f657f8a81d412435b8b4167ded5019e9821f0cf47db9d38708da0eea6bdc8835a77c643122e792616aefbbb557f228e6ab06e823c10e1afe922c9e4b34088989 SHA512 3a69e2fe5a81b8990e0ec811a9aeb0c9bdd84e858983800c444717197754a0b8e2945091d80d4c6736b691798dbc571b3e7f885d6a6e4564c9ca1021a2fae71c
25 DIST fbc-1.06.0-bootstrap-dist-linux-x86.patch 147301 BLAKE2B 8320f988bc84f5df1b732719a11d1a8edbfceff04ad51b1fbd883eb21d20f1c2f16b8c6ae41b5b0472e4faf1058345969b85ed0c93c071de3c9ed703e298106a SHA512 b2ee285504ce0f8a6a01ee5da7661e40c4a6bb0075f26751fbc79a328cac66f7809ad4c2489eaab01a6e6432ca6d76e19835c86bddf9df5af3b89c547fd8ffb3
26 DIST fbc-1.06.0-bootstrap-dist-linux-x86_64.patch 198197 BLAKE2B 72083bef84aed5ec2d95badb70a42db2e5d89084454f79aef41808a018ab238b1d230cb7282f4adf1be9d003c3865cb914fbf057fbd84c069dfecc4abd3da80b SHA512 771077a2526164223c3ae157558355538701224863b2a5923881ac2d2568f4cd1f5489df73aa8d55b1efccc82fe9e251e893a2b361363c1862d4c1e7bc3fb4ba
27 DIST fbc-1.06.0.tar.gz 8847831 BLAKE2B 9245137995f9f3e2ff5adaf9b273593434ac9ec96919b2c970ec26183fe6fb7afee35753f2dd92f4b34d1aade92871e5a6722571a5ba04dde323fd7fb06c55c5 SHA512 687dcf665bb10e6a771cc01d02c21da77d89e052308600038dce526ba1ccfc6554d409dab184f3495557c9e4fdf744fd7a9088b4b137b782a9ab8633622c5484
28 +DIST fbc-1.07.0.tar.gz 8938137 BLAKE2B 14849dd0cfb0f0a2d0f2e4966a855964027adbacc2253e236f9f10ba73c40b16714d8fb75778cac8cb6eb1600d6adeb2037929a376b4938961e53e5de83fafba SHA512 1cab52e97854b3ef17db6ba4750c0216f3bd04e23997f005189988007014574467c0f63f41ad822d089a18e97439ba52743223d1bb282133b41c0625b66cd8f5
29
30 diff --git a/dev-lang/fbc/fbc-1.07.0.ebuild b/dev-lang/fbc/fbc-1.07.0.ebuild
31 new file mode 100644
32 index 0000000..83399ea
33 --- /dev/null
34 +++ b/dev-lang/fbc/fbc-1.07.0.ebuild
35 @@ -0,0 +1,89 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +DESCRIPTION="A free/open source, multi-platform BASIC compiler."
42 +HOMEPAGE="https://www.freebasic.net"
43 +SRC_URI="https://github.com/freebasic/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
44 + https://github.com/freebasic/${PN}/releases/download/${PV}/FreeBASIC-${PV}-source-bootstrap.tar.xz"
45 +
46 +LICENSE="FDL-1.2 GPL-2+ LGPL-2.1+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="gpm libffi opengl X"
50 +
51 +DEPEND="
52 + sys-libs/ncurses:=
53 + gpm? ( sys-libs/gpm )
54 + libffi? ( virtual/libffi )
55 + opengl? ( virtual/opengl )
56 + X? (
57 + x11-libs/libX11
58 + x11-libs/libXext
59 + x11-libs/libXpm
60 + x11-libs/libXrandr
61 + x11-libs/libXrender
62 + )"
63 +RDEPEND="${DEPEND}"
64 +
65 +PATCHES="${FILESDIR}/${PV}"
66 +
67 +DOCS="${S}/doc/fbc.1"
68 +
69 +BOOTSTRAP_S="${WORKDIR}/FreeBASIC-${PV}-source-bootstrap"
70 +
71 +src_unpack() {
72 + # We only need bootstrap source code if fbc is not already present
73 + if ! has_version dev-lang/fbc; then
74 + unpack FreeBASIC-${PV}-source-bootstrap.tar.xz
75 + fi
76 + unpack ${P}.tar.gz
77 +}
78 +
79 +src_prepare() {
80 + # We only need bootstrap source code if fbc is not already present
81 + if ! has_version dev-lang/fbc; then
82 + cd "${BOOTSTRAP_S}" || die "cd failed"
83 + eapply "${FILESDIR}/${PV}"
84 + cd "${S}" || die "cd failed"
85 + fi
86 + default
87 +}
88 +
89 +src_compile() {
90 + local fbc="fbc"
91 + local fbcflags=""
92 +
93 + # We only need bootstrap compiler if fbc is not already present
94 + if ! has_version dev-lang/fbc; then
95 + cd "${BOOTSTRAP_S}" || die "cd failed"
96 +
97 + # Build bootstrap compiler
98 + emake bootstrap-minimal
99 +
100 + # Set bootstrap compiler to build fbc
101 + fbc="${BOOTSTRAP_S}/bin/fbc"
102 + fbcflags="-i ${BOOTSTRAP_S}/inc"
103 +
104 + cd "${S}" || die "cd failed"
105 + fi
106 +
107 + local xcflags=(
108 + $(usex gpm "" "-DDISABLE_GPM")
109 + $(usex libffi "" " -DDISABLE_FFI")
110 + $(usex opengl "" " -DDISABLE_OPENGL")
111 + $(usex X "" " -DDISABLE_X11")
112 + )
113 +
114 + # fbc requires a space after the -Wl option
115 + local fblflags=${LDFLAGS//-Wl,/-Wl }
116 +
117 + # Build fbc
118 + emake CFLAGS="${CFLAGS} ${xcflags[*]}" FBC="${fbc}" FBCFLAGS="${fbcflags}" FBLFLAGS="${fblflags}" TARGET=${CHOST}
119 +}
120 +
121 +src_install() {
122 + emake DESTDIR="${D}" prefix="/usr" TARGET=${CHOST} install
123 + einstalldocs
124 +}
125
126 diff --git a/dev-lang/fbc/files/1.07.0/0001-Pass-ltinfo-to-linker.patch b/dev-lang/fbc/files/1.07.0/0001-Pass-ltinfo-to-linker.patch
127 new file mode 100644
128 index 0000000..72bd51f
129 --- /dev/null
130 +++ b/dev-lang/fbc/files/1.07.0/0001-Pass-ltinfo-to-linker.patch
131 @@ -0,0 +1,25 @@
132 +From c62adcd85c4e9d8b793a7a4f71fc88f6fbb79798 Mon Sep 17 00:00:00 2001
133 +From: William Breathitt Gray <vilhelm.gray@×××××.com>
134 +Date: Tue, 27 Aug 2019 20:41:07 +0900
135 +Subject: [PATCH] Pass -ltinfo to linker
136 +
137 +---
138 + makefile | 2 +-
139 + 1 file changed, 1 insertion(+), 1 deletion(-)
140 +
141 +diff --git a/makefile b/makefile
142 +index e093bb1..eb3f759 100644
143 +--- a/makefile
144 ++++ b/makefile
145 +@@ -1109,7 +1109,7 @@ endif
146 + # Use gcc to link fbc from the bootstrap .o's
147 + # (assuming the rtlib was built already)
148 + ifneq ($(filter darwin freebsd linux netbsd openbsd solaris,$(TARGET_OS)),)
149 +- BOOTSTRAP_LIBS := -lncurses -lm -pthread
150 ++ BOOTSTRAP_LIBS := -ltinfo -lncurses -lm -pthread
151 + endif
152 + $(BOOTSTRAP_FBC): rtlib $(BOOTSTRAP_OBJ)
153 + $(QUIET_LINK)$(CC) -o $@ $(libdir)/fbrt0.o bootstrap/$(FBTARGET)/*.o $(libdir)/libfb.a $(BOOTSTRAP_LIBS)
154 +--
155 +2.22.1
156 +