mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
dev-scheme/chez: bump to 10.4.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST chez-10.3.0.tar.gz 9227320 BLAKE2B f801fd533b33d286ab816434bde702360be7098a368d1484e2cf768cdb95460e4c32dd65e6b0df0088b5925206ee2207eee139ad3cf6f576f1599f329d831617 SHA512 8b1a2a07f0ce478cfe4c63d9b057dcb93bc3dadcfd86b21548647f0e8a5a25a2eb44152113c2a401247e860b582e51a34cc7962fbca5051667e58ae949b15396
|
||||
DIST chez-10.4.0.tar.gz 9584467 BLAKE2B 19bfa4db922f53012c5025b8671e2e4c5443b17fbbc06218433fa67505e807082ac09134bc5a51cec0d68a8e9808bf428f6371421262a7e8c0752d12eeedba48 SHA512 bf91e68b2ad1cee202ab3fbe03f227a73ed5fc6afadf335e7d67d802c980763ef1e142f38145d169e338f698a0737ff34720daa25e61c8fd048adfc4c39fe31b
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dot-a edo toolchain-funcs
|
||||
|
||||
DESCRIPTION="A programming language based on R6RS"
|
||||
HOMEPAGE="https://cisco.github.io/ChezScheme/
|
||||
https://github.com/cisco/ChezScheme/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/cisco/ChezScheme"
|
||||
else
|
||||
SRC_URI="https://github.com/cisco/ChezScheme/releases/download/v${PV}/csv${PV//a}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
S="${WORKDIR}/csv${PV//a}"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
fi
|
||||
|
||||
# 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}"
|
||||
IUSE="X +ncurses +threads"
|
||||
|
||||
# "some output differs from expected", needs in-depth investigation.
|
||||
# You may wish to investigate "make.out" test logfiles.
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/lz4:=
|
||||
sys-apps/util-linux
|
||||
virtual/zlib:=
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
)
|
||||
ncurses? (
|
||||
sys-libs/ncurses:=
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# See official docs for translation guide.
|
||||
# https://cisco.github.io/ChezScheme/release_notes/v10.0/release_notes.html
|
||||
# "t" for threading + arch_map + "le" for Linux
|
||||
local -A arch_map=(
|
||||
[x86]=i3
|
||||
[amd64]=a6
|
||||
[arm64]=arm64
|
||||
[arm]=arm32
|
||||
[riscv]=rv64
|
||||
[loong]=la64
|
||||
[ppc]=ppc32
|
||||
)
|
||||
local machine="$(usex threads 't' '')${arch_map[${ARCH}]}le"
|
||||
|
||||
lto-guarantee-fat
|
||||
|
||||
local -a myconfargs=(
|
||||
--machine="${machine}"
|
||||
--libkernel
|
||||
--nogzip-man-pages
|
||||
|
||||
--installprefix="/usr"
|
||||
--installbin="/usr/bin"
|
||||
--installlib="/usr/$(get_libdir)"
|
||||
--installman="/usr/share/man"
|
||||
--installschemename="chezscheme"
|
||||
--installpetitename="chezscheme-petite"
|
||||
--installscriptname="chezscheme-script"
|
||||
|
||||
$(usex threads '--threads' '')
|
||||
$(usex ncurses '' '--disable-curses')
|
||||
$(usex X '' '--disable-x11')
|
||||
|
||||
AR="$(tc-getAR)"
|
||||
CC="$(tc-getCC)"
|
||||
LD="$(tc-getLD)"
|
||||
RANLIB="$(tc-getRANLIB)"
|
||||
STRIP="$(tc-getSTRIP)"
|
||||
|
||||
CFLAGS+="${CFLAGS}"
|
||||
CPPFLAGS+="${CPPFLAGS}"
|
||||
LDFLAGS+="${LDFLAGS}"
|
||||
|
||||
LZ4="$($(tc-getPKG_CONFIG) --libs liblz4)"
|
||||
ZLIB="$($(tc-getPKG_CONFIG) --libs zlib)"
|
||||
)
|
||||
edo sh ./configure "${myconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# TempRoot == DESTDIR
|
||||
sed -e "s|TempRoot=.*|TempRoot=${ED}|g" -i ./*/Mf-* || die
|
||||
|
||||
emake install
|
||||
strip-lto-bytecode
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user