summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-08-29 21:41:15 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-08-29 22:03:28 +0200
commita4110d24a8191476173d0aeb779ff36133cf72cc (patch)
treed3e01dbf9d886a861ff2becc7a2c4f42a990a3f8 /dev-scheme
parentsys-apps/openrazer: call default when not using distutils (diff)
downloadgentoo-a4110d24a8191476173d0aeb779ff36133cf72cc.tar.gz
gentoo-a4110d24a8191476173d0aeb779ff36133cf72cc.tar.bz2
gentoo-a4110d24a8191476173d0aeb779ff36133cf72cc.zip
dev-scheme/chez: bump to 9.6.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/chez/Manifest1
-rw-r--r--dev-scheme/chez/chez-9.6.0.ebuild75
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-scheme/chez/Manifest b/dev-scheme/chez/Manifest
index 568283eb5c15..ca167efd0cff 100644
--- a/dev-scheme/chez/Manifest
+++ b/dev-scheme/chez/Manifest
@@ -1,2 +1,3 @@
DIST chez-9.5.8.tar.gz 35487100 BLAKE2B 6c5467f812788166aded14ce38ec2935bb890f2386f3ea7ec29a97c6a3d9aa37f26960e44aa6acd6b3954e45dfc4eaff4fc7db1dd77b231fb380a1dac7349be4 SHA512 80a4e9f61ddb254bef1a249af1d32f918df88390946fbe6eeb62c3510c760bf899285be1aba70eda9b54bcb0c6fef3fe7deace648993cd9cece2d08cf0ade9c0
DIST chez-9.5.8a.tar.gz 35488602 BLAKE2B 49facf50d7cbd301257cd2a0e180cd9ef0608241e599f56a29146fb64bc5f49c1ee536ef70d35f249baa2ba00721f2b28ff1256e3b0ccaf3fbfe426995aaae52 SHA512 64ede117b8e91b7f9f5203899d9063b3638fdaaeaef30afd5a020c41d3c3f3625772a3cb9fed68850926dffe543d2f6c6e4259845f7fd09bee9479afa35bf653
+DIST chez-9.6.0.tar.gz 35690840 BLAKE2B 2669f7f4f1086e43ab6b4904992b7ffc743bdfa2466c01e0e5e1e4cfdbf01f2e6dcf65c759f7543c9a42ff8d769fa337a7280245d7eca57e379d3087b3095c02 SHA512 268aa93b32a970b564c17726cdcca177c1f589fc49b88b30dd2c6aedbbd7c13dbb0bd421cc80d10b6ef84f0170c54ac329f04c2571910a012d759b2489a2aed5
diff --git a/dev-scheme/chez/chez-9.6.0.ebuild b/dev-scheme/chez/chez-9.6.0.ebuild
new file mode 100644
index 000000000000..6cce9c186365
--- /dev/null
+++ b/dev-scheme/chez/chez-9.6.0.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
+}