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 AC12C1382C5 for ; Sat, 20 Mar 2021 11:55:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2E26E083B; Sat, 20 Mar 2021 11:55:28 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 8450EE083B for ; Sat, 20 Mar 2021 11:55:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 3F6E5335C5D for ; Sat, 20 Mar 2021 11:55:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D1BF46C for ; Sat, 20 Mar 2021 11:55:25 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1616241313.ba68c05e5f3dd7c1e2fad80f75a5c214eb755ac4.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-scheme/racket/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-scheme/racket/racket-8.0.ebuild X-VCS-Directories: dev-scheme/racket/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ba68c05e5f3dd7c1e2fad80f75a5c214eb755ac4 X-VCS-Branch: master Date: Sat, 20 Mar 2021 11:55:25 +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: ed28cd98-35b1-4fc0-b167-1cb37de1d932 X-Archives-Hash: 78813525be7f03a5d68c9179aa141028 commit: ba68c05e5f3dd7c1e2fad80f75a5c214eb755ac4 Author: Mariusz Ceier gmail com> AuthorDate: Sat Mar 20 10:59:59 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 20 11:55:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba68c05e dev-scheme/racket: add 8.0 Closes: https://bugs.gentoo.org/760063 Signed-off-by: Mariusz Ceier gmail.com> Signed-off-by: Sam James gentoo.org> dev-scheme/racket/racket-8.0.ebuild | 100 ++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/dev-scheme/racket/racket-8.0.ebuild b/dev-scheme/racket/racket-8.0.ebuild new file mode 100644 index 00000000000..1a38a64418d --- /dev/null +++ b/dev-scheme/racket/racket-8.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit pax-utils + +DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language" +HOMEPAGE="https://racket-lang.org/" +SRC_URI="minimal? ( https://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz ) !minimal? ( https://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )" +LICENSE="GPL-3+ LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="doc +futures +jit minimal +places +readline +threads +X +chez" +REQUIRED_USE="futures? ( jit )" + +RDEPEND="dev-db/sqlite:3 + media-libs/libpng:0 + x11-libs/cairo[X?] + x11-libs/pango[X?] + dev-libs/libffi + virtual/jpeg:0 + readline? ( dev-libs/libedit ) + X? ( x11-libs/gtk+[X?] )" +RDEPEND="${RDEPEND} !dev-tex/slatex" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${P}/src" + +src_prepare() { + default + rm -r bc/foreign/libffi || die 'failed to remove bundled libffi' +} + +src_configure() { + # According to vapier, we should use the bundled libtool + # such that we don't preclude cross-compile. Thus don't use + # --enable-lt=/usr/bin/libtool + econf \ + --enable-shared \ + --enable-float \ + --enable-libffi \ + --enable-foreign \ + $(usex chez "--enable-cs --enable-csonly" "--enable-bc --enable-bconly") \ + --disable-libs \ + --disable-strip \ + --docdir="/usr/share/doc/${PF}" \ + $(use_enable X gracket) \ + $(use_enable doc docs) \ + $(use_enable jit) \ + $(use_enable places) \ + $(use_enable futures) \ + $(use_enable threads pthread) +} + +src_compile() { + if use jit; then + # When the JIT is enabled, a few binaries need to be pax-marked + # on hardened systems (bug 613634). The trick is to pax-mark + # them before they're used later in the build system. The + # following order for racketcgc and racket3m was determined by + # digging through the Makefile in src/racket to find out which + # targets would build those binaries but not use them. + if ! use chez; then + pushd bc + emake cgc-core + pax-mark m .libs/racketcgc + pushd gc2 + emake all + popd + pax-mark m .libs/racket3m + popd + fi + fi + + default +} + +src_install() { + default + + if use jit; then + # The final binaries need to be pax-marked, too, if you want to + # actually use them. The src_compile marking get lost somewhere + # in the install process. + for f in mred mzscheme racket; do + pax-mark m "${D}/usr/bin/${f}" + done + + use X && pax-mark m "${D}/usr/$(get_libdir)/racket/gracket" + + pax-mark m "${D}/usr/$(get_libdir)/racket/starter" + fi + # raco needs decompressed files for packages doc installation bug 662424 + if use doc; then + docompress -x /usr/share/doc/${PF} + fi + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die +}