From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 380721382C5 for ; Mon, 28 Dec 2020 23:22:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9044A2BC055; Mon, 28 Dec 2020 23:22:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 77DA92BC055 for ; Mon, 28 Dec 2020 23:22:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7BB583413F3 for ; Mon, 28 Dec 2020 23:22:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3AFA3494 for ; Mon, 28 Dec 2020 23:22:41 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1609197241.0d80101be5b3d381f41973b0be9436cb43972d0c.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lang/fbc/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-lang/fbc/fbc-1.07.2-r2.ebuild X-VCS-Directories: dev-lang/fbc/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 0d80101be5b3d381f41973b0be9436cb43972d0c X-VCS-Branch: master Date: Mon, 28 Dec 2020 23:22:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cb006cb6-e2b8-4224-a164-73e76fa6775b X-Archives-Hash: fc18cd0e771e44d25cffe33c5073a6b8 commit: 0d80101be5b3d381f41973b0be9436cb43972d0c Author: William Breathitt Gray gmail com> AuthorDate: Mon Dec 28 23:10:57 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Mon Dec 28 23:14:01 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0d80101b dev-lang/fbc: Add fbc-bootstrap as a BDEPEND This allows bootstrapping logic to move to the dedicated dev-lang/fbc-bootstrap package thus simplifying the ebuild. Signed-off-by: William Breathitt Gray gmail.com> dev-lang/fbc/fbc-1.07.2-r2.ebuild | 61 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/dev-lang/fbc/fbc-1.07.2-r2.ebuild b/dev-lang/fbc/fbc-1.07.2-r2.ebuild new file mode 100644 index 00000000..2d430eea --- /dev/null +++ b/dev-lang/fbc/fbc-1.07.2-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A free/open source, multi-platform BASIC compiler." +HOMEPAGE="https://www.freebasic.net" +SRC_URI="https://github.com/freebasic/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="FDL-1.2 GPL-2+ LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gpm libffi opengl X" + +DEPEND=" + sys-libs/ncurses:= + gpm? ( sys-libs/gpm ) + libffi? ( dev-libs/libffi ) + opengl? ( virtual/opengl ) + X? ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm + x11-libs/libXrandr + x11-libs/libXrender + ) +" +RDEPEND="${DEPEND}" +BDEPEND="|| ( + dev-lang/fbc + dev-lang/fbc-bootstrap )" + +DOCS="${S}/doc/fbc.1" + +src_compile() { + local xcflags=( + $(usex gpm "" "-DDISABLE_GPM") + $(usex libffi "" " -DDISABLE_FFI") + $(usex opengl "" " -DDISABLE_OPENGL") + $(usex X "" " -DDISABLE_X11") + ) + + local fbc="fbc" + local fbcflags="" + # fbc requires a space after the -Wl option + local fblflags="${LDFLAGS//-Wl,/-Wl }" + + if has_version -b dev-lang/fbc-bootstrap; then + fbc="fbc-bootstrap" + fbcflags="-prefix ${EPREFIX}/usr/share/freebasic-bootstrap" + fblflags+=" -prefix ${EPREFIX}/usr/share/freebasic-bootstrap" + fi + + # Build fbc + emake CFLAGS="${CFLAGS} ${xcflags[*]} -I/usr/$(get_libdir)/libffi/include" FBC="${fbc}" FBCFLAGS="${fbcflags}" FBLFLAGS="${fblflags}" TARGET="${CHOST}" +} + +src_install() { + emake DESTDIR="${D}" prefix="/usr" TARGET="${CHOST}" install + einstalldocs +}