Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lang/fbc/
Date: Fri, 30 Apr 2021 07:45:25
Message-Id: 1619697463.30ecba553847add9b44b2f038e5852e3e49532fe.andrewammerlaan@gentoo
1 commit: 30ecba553847add9b44b2f038e5852e3e49532fe
2 Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 29 11:57:43 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Thu Apr 29 11:57:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=30ecba55
7
8 dev-lang/fbc: Drop old version
9
10 Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
11
12 dev-lang/fbc/fbc-1.07.2-r1.ebuild | 92 ---------------------------------------
13 1 file changed, 92 deletions(-)
14
15 diff --git a/dev-lang/fbc/fbc-1.07.2-r1.ebuild b/dev-lang/fbc/fbc-1.07.2-r1.ebuild
16 deleted file mode 100644
17 index 324c8741c..000000000
18 --- a/dev-lang/fbc/fbc-1.07.2-r1.ebuild
19 +++ /dev/null
20 @@ -1,92 +0,0 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -DESCRIPTION="A free/open source, multi-platform BASIC compiler."
27 -HOMEPAGE="https://www.freebasic.net"
28 -SRC_URI="
29 - https://github.com/freebasic/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
30 - https://github.com/freebasic/${PN}/releases/download/${PV}/FreeBASIC-${PV}-source-bootstrap.tar.xz
31 -"
32 -
33 -LICENSE="FDL-1.2 GPL-2+ LGPL-2.1+"
34 -SLOT="0"
35 -KEYWORDS="~amd64 ~x86"
36 -IUSE="gpm libffi opengl X"
37 -
38 -DEPEND="
39 - sys-libs/ncurses:=
40 - gpm? ( sys-libs/gpm )
41 - libffi? ( dev-libs/libffi )
42 - opengl? ( virtual/opengl )
43 - X? (
44 - x11-libs/libX11
45 - x11-libs/libXext
46 - x11-libs/libXpm
47 - x11-libs/libXrandr
48 - x11-libs/libXrender
49 - )
50 -"
51 -RDEPEND="${DEPEND}"
52 -
53 -PATCHES=( "${FILESDIR}/${PN}-1.07.0-Pass-ltinfo-to-linker.patch" )
54 -
55 -DOCS="${S}/doc/fbc.1"
56 -
57 -BOOTSTRAP_S="${WORKDIR}/FreeBASIC-${PV}-source-bootstrap"
58 -
59 -src_unpack() {
60 - # We only need bootstrap source code if fbc is not already present
61 - if ! has_version dev-lang/fbc; then
62 - unpack "FreeBASIC-${PV}-source-bootstrap.tar.xz"
63 - fi
64 - unpack "${P}.tar.gz"
65 -}
66 -
67 -src_prepare() {
68 - # We only need bootstrap source code if fbc is not already present
69 - if ! has_version dev-lang/fbc; then
70 - cd "${BOOTSTRAP_S}" || die "cd failed"
71 - eapply "${PATCHES[@]}"
72 - cd "${S}" || die "cd failed"
73 - fi
74 - eapply_user
75 -}
76 -
77 -src_compile() {
78 - local fbc="fbc"
79 - local fbcflags=""
80 -
81 - # We only need bootstrap compiler if fbc is not already present
82 - if ! has_version dev-lang/fbc; then
83 - cd "${BOOTSTRAP_S}" || die "cd failed"
84 -
85 - # Build bootstrap compiler
86 - emake bootstrap-minimal
87 -
88 - # Set bootstrap compiler to build fbc
89 - fbc="${BOOTSTRAP_S}/bin/fbc"
90 - fbcflags="-i ${BOOTSTRAP_S}/inc"
91 -
92 - cd "${S}" || die "cd failed"
93 - fi
94 -
95 - local xcflags=(
96 - $(usex gpm "" "-DDISABLE_GPM")
97 - $(usex libffi "" " -DDISABLE_FFI")
98 - $(usex opengl "" " -DDISABLE_OPENGL")
99 - $(usex X "" " -DDISABLE_X11")
100 - )
101 -
102 - # fbc requires a space after the -Wl option
103 - local fblflags="${LDFLAGS//-Wl,/-Wl }"
104 -
105 - # Build fbc
106 - emake CFLAGS="${CFLAGS} ${xcflags[*]} -I/usr/$(get_libdir)/libffi/include" FBC="${fbc}" FBCFLAGS="${fbcflags}" FBLFLAGS="${fblflags}" TARGET="${CHOST}"
107 -}
108 -
109 -src_install() {
110 - emake DESTDIR="${D}" prefix="/usr" TARGET="${CHOST}" install
111 - einstalldocs
112 -}