diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-08-30 20:29:18 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-08-30 20:29:41 +0200 |
commit | 6c671818ca182c9089b54c281e1ec0bf57c61da8 (patch) | |
tree | f1a4ddd94f11de4bd20cb676d6a2250ba23e6728 /dev-scheme/chez | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.4.255 (diff) | |
download | gentoo-6c671818ca182c9089b54c281e1ec0bf57c61da8.tar.gz gentoo-6c671818ca182c9089b54c281e1ec0bf57c61da8.tar.bz2 gentoo-6c671818ca182c9089b54c281e1ec0bf57c61da8.zip |
dev-scheme/chez: bump to 9.6.2
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme/chez')
-rw-r--r-- | dev-scheme/chez/Manifest | 1 | ||||
-rw-r--r-- | dev-scheme/chez/chez-9.6.2.ebuild | 75 |
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-scheme/chez/Manifest b/dev-scheme/chez/Manifest index eec600552a19..e588faa15184 100644 --- a/dev-scheme/chez/Manifest +++ b/dev-scheme/chez/Manifest @@ -1,2 +1,3 @@ DIST chez-9.5.8a.tar.gz 35488602 BLAKE2B 49facf50d7cbd301257cd2a0e180cd9ef0608241e599f56a29146fb64bc5f49c1ee536ef70d35f249baa2ba00721f2b28ff1256e3b0ccaf3fbfe426995aaae52 SHA512 64ede117b8e91b7f9f5203899d9063b3638fdaaeaef30afd5a020c41d3c3f3625772a3cb9fed68850926dffe543d2f6c6e4259845f7fd09bee9479afa35bf653 DIST chez-9.6.0.tar.gz 35690840 BLAKE2B 2669f7f4f1086e43ab6b4904992b7ffc743bdfa2466c01e0e5e1e4cfdbf01f2e6dcf65c759f7543c9a42ff8d769fa337a7280245d7eca57e379d3087b3095c02 SHA512 268aa93b32a970b564c17726cdcca177c1f589fc49b88b30dd2c6aedbbd7c13dbb0bd421cc80d10b6ef84f0170c54ac329f04c2571910a012d759b2489a2aed5 +DIST chez-9.6.2.tar.gz 35691078 BLAKE2B f8436754eca64ac2b1cd9138c546b31a9ae0c05ae8f7d8afd74205e2c03289050354b6bb03cfa9d26b887f0606dd9410d0a8bc8f2da517a6132781dfaa18a243 SHA512 65b6a1dce571568dcc9725086b41065a7c7d56eab10eb78039da192dfbb91568d2bec72005e8ce84cefe3ba87220fdb3aa870e9f05e60fbf2b838f4467cb4a52 diff --git a/dev-scheme/chez/chez-9.6.2.ebuild b/dev-scheme/chez/chez-9.6.2.ebuild new file mode 100644 index 000000000000..6cce9c186365 --- /dev/null +++ b/dev-scheme/chez/chez-9.6.2.ebuild @@ -0,0 +1,75 @@ +# Copyright 2021-2023 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//a}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}"/csv${PV//a} + +# 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 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 + einstalldocs + + find "${ED}"/usr/$(get_libdir)/csv${PV//a}/examples \ + \( -name "*.md" -o -name "*.so" \) -delete || die +} |