summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-10-17 12:14:53 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-10-17 15:39:28 +0200
commit5d3e7986a4568b82987682a84b048190538775e6 (patch)
tree0f16ae96881eb66e59985762ff53af63ffd3b62e
parentdev-scheme/chez: drop old 9.5.8a-r1 (diff)
downloadgentoo-5d3e7986a4568b82987682a84b048190538775e6.tar.gz
gentoo-5d3e7986a4568b82987682a84b048190538775e6.tar.bz2
gentoo-5d3e7986a4568b82987682a84b048190538775e6.zip
dev-scheme/chez: bump to 9.6.4
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r--dev-scheme/chez/Manifest1
-rw-r--r--dev-scheme/chez/chez-9.6.4.ebuild75
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-scheme/chez/Manifest b/dev-scheme/chez/Manifest
index a5839def92d2..b050f232546f 100644
--- a/dev-scheme/chez/Manifest
+++ b/dev-scheme/chez/Manifest
@@ -1 +1,2 @@
DIST chez-9.6.2.tar.gz 35691078 BLAKE2B f8436754eca64ac2b1cd9138c546b31a9ae0c05ae8f7d8afd74205e2c03289050354b6bb03cfa9d26b887f0606dd9410d0a8bc8f2da517a6132781dfaa18a243 SHA512 65b6a1dce571568dcc9725086b41065a7c7d56eab10eb78039da192dfbb91568d2bec72005e8ce84cefe3ba87220fdb3aa870e9f05e60fbf2b838f4467cb4a52
+DIST chez-9.6.4.tar.gz 35679113 BLAKE2B dd008181caa7b74d35fed4a67dbbf2719af9ab7288ac6b5577fe2caf3ba4f34c5f9192fe2ca08b00d48e16d75b6c82324c1f222fe4fd321649d109dd221ffc40 SHA512 00c33650d0f980c9d28ad4871c97da67b9f25e3fde5a3188b2bbbc9cc813e63e3c9055bc6a94addedbea52cd531cbb56bcdc5e2fda6c6ca37b30166c2797e53a
diff --git a/dev-scheme/chez/chez-9.6.4.ebuild b/dev-scheme/chez/chez-9.6.4.ebuild
new file mode 100644
index 000000000000..6cce9c186365
--- /dev/null
+++ b/dev-scheme/chez/chez-9.6.4.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
+}