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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 46791158094 for ; Sat, 16 Jul 2022 07:52:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 719CBE0E10; Sat, 16 Jul 2022 07:52:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52830E0E10 for ; Sat, 16 Jul 2022 07:52:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 15945340FC9 for ; Sat, 16 Jul 2022 07:52:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 48B1D448 for ; Sat, 16 Jul 2022 07:52:51 +0000 (UTC) From: "Matthew Smith" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" Message-ID: <1657957937.290ee32ea6a501a008ebbfe97a13d2ea33d2291e.matthew@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-scheme/chez/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-scheme/chez/chez-9.5.8-r1.ebuild X-VCS-Directories: dev-scheme/chez/ X-VCS-Committer: matthew X-VCS-Committer-Name: Matthew Smith X-VCS-Revision: 290ee32ea6a501a008ebbfe97a13d2ea33d2291e X-VCS-Branch: master Date: Sat, 16 Jul 2022 07:52:51 +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: e2799c71-aa11-46a1-961a-36b8852735b4 X-Archives-Hash: 7f59a2768e028c5f91f1341a13c1f7e5 commit: 290ee32ea6a501a008ebbfe97a13d2ea33d2291e Author: Matthew Smith gentoo org> AuthorDate: Sat Jul 16 07:49:40 2022 +0000 Commit: Matthew Smith gentoo org> CommitDate: Sat Jul 16 07:52:17 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=290ee32e dev-scheme/chez: use system lz4 and zlib Also fixes LTO error related to the linking of the vendored versions of these libraries. Closes: https://bugs.gentoo.org/858251 Signed-off-by: Matthew Smith gentoo.org> dev-scheme/chez/chez-9.5.8-r1.ebuild | 76 ++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/dev-scheme/chez/chez-9.5.8-r1.ebuild b/dev-scheme/chez/chez-9.5.8-r1.ebuild new file mode 100644 index 000000000000..173e8351b3cc --- /dev/null +++ b/dev-scheme/chez/chez-9.5.8-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="A programming language based on R6RS" +HOMEPAGE="https://cisco.github.io/ChezScheme/ https://github.com/cisco/ChezScheme" +SRC_URI="https://github.com/cisco/ChezScheme/releases/download/v${PV}/csv${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/csv${PV} + +# Chez Scheme itself is Apache 2.0, but it vendors Nanopass and stex +# which are both MIT licensed. +LICENSE="Apache-2.0 MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="X examples ncurses threads" + +BDEPEND="virtual/pkgconfig" +RDEPEND=" + app-arch/lz4:= + sys-apps/util-linux + sys-libs/zlib:= + ncurses? ( sys-libs/ncurses:= ) +" +DEPEND="${RDEPEND}" +RDEPEND=" + ${RDEPEND} + X? ( x11-libs/libX11 ) +" + +src_prepare() { + tc-export AR CC CXX LD RANLIB + + default + + if use ncurses ; then + local nclibs="\"$($(tc-getPKG_CONFIG) --libs ncurses)\"" + sed -i "s|ncursesLib=-lncurses|ncursesLib=${nclibs}|g" configure || die + fi + + # Remove -Werror + sed -i "/^C = /s|-Werror||g" c/Mf-* || die +} + +src_configure() { + local myconfargs=( + $(usex threads '--threads' '') + $(usex ncurses '' '--disable-curses') + $(usex X '' '--disable-x11') + --installprefix="/usr" + --installbin="/usr/bin" + --installlib="/usr/$(get_libdir)" + --installman="/usr/share/man" + --installschemename=chezscheme + --installpetitename=chezscheme-petite + --installscriptname=chezscheme-script + --libkernel + --nogzip-man-pages + LZ4=$($(tc-getPKG_CONFIG) --libs liblz4) + ZLIB=$($(tc-getPKG_CONFIG) --libs zlib) + ) + sh ./configure "${myconfargs[@]}" || die +} + +src_install() { + # TempRoot == DESTDIR + emake TempRoot="${D}" install + + if ! use examples; then + rm -r "${D}/usr/$(get_libdir)/csv${PV}/examples" || die + fi + + einstalldocs +}