summaryrefslogtreecommitdiff
path: root/dev-scheme
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-15 03:02:36 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-15 03:02:36 +0000
commit57d1fe5ae0c56e604db5d29bf7b62d685c42e043 (patch)
treebc1bdf3c531b7b4cef73b051dbb3cd439dee4a39 /dev-scheme
parentd3c7d3e5f9607edef1a795ccc502ab3eb3121165 (diff)
gentoo auto-resync : 15:11:2024 - 03:02:36
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/Manifest.gzbin9819 -> 9817 bytes
-rw-r--r--dev-scheme/chez/Manifest2
-rw-r--r--dev-scheme/chez/chez-10.1.0.ebuild118
3 files changed, 120 insertions, 0 deletions
diff --git a/dev-scheme/Manifest.gz b/dev-scheme/Manifest.gz
index 975cb86dfa5a..d5998fd1bbd8 100644
--- a/dev-scheme/Manifest.gz
+++ b/dev-scheme/Manifest.gz
Binary files differ
diff --git a/dev-scheme/chez/Manifest b/dev-scheme/chez/Manifest
index fb63a9e23213..535373f5d5e0 100644
--- a/dev-scheme/chez/Manifest
+++ b/dev-scheme/chez/Manifest
@@ -1,3 +1,5 @@
DIST chez-10.0.0.tar.gz 9109529 BLAKE2B 66b37350b0d711c4f86b8c0e0e9ca6f0c7de22591b592ff0950822c2cf4a489db1fbb2f655cbecf4a771740ffd9bba638481f20d59c5c8143468d333d57f4907 SHA512 094298744bd69033366305330d660299023c5bc5776df86f28af119f9f4cddc463366fc8f955084463137b6186843fcd34026d2714b932baa4841d6522a8dd92
+DIST chez-10.1.0.tar.gz 9123504 BLAKE2B 1cdca246dc8cc9747e0895265ae4c89cc366c6b05c1ae73191ad4e6fc547165303d09ae1eba1389c787bca2e8a0eb384b52d79e149eb582c8833494ce57925c0 SHA512 83d7d20a4caa4df88bf6463a8802aba512df4f8fb27e0c9c3ae677813ba5b60c6fb794bd1246025286663d0decd13ddbfc007fa3f3ed22980621f532ac54c513
EBUILD chez-10.0.0.ebuild 2342 BLAKE2B d3e0e9a0c5650064dcbc4d58df19c3d43f0529ab673e0eef0d7f08bcfd446fc4d967ddf732390194b859e5478b673970c17541ed83d901e576fe5592e5378b4d SHA512 058ea0cd72ede1bdc372283338dad08f8502de53b89073a7e3e49f8e48551859c8148c9c1341a441ab90e11866e61dc57cb339e4a0e8a7eedc0ee03eef8e7337
+EBUILD chez-10.1.0.ebuild 2521 BLAKE2B 4219166d1e59086868c684a1480d80dab4e69461b85c25bc645848178bf4c548be83590b3450dd39907e4a88c47e2a72487db7148010852c5b2411a28869fece SHA512 cfaedb6a74422108a8f39dc0d3134ae440308be2c03c7200997f36ee46081d7b88bae2ee5650496d5a37154f968465b0c4dc3fa01887ff5d0bffd4e23c3b431d
MISC metadata.xml 1133 BLAKE2B d942a29915bfb91b3c4708d2bb6715d88d2755f8da304063248c09b46b3d6d661ad8fe8df8ab88fa8dd693a867a8bc90f804e4231e0e0c9aed1a15d6611648ab SHA512 8728cad76b3ffedb2ca2bfd70831de84bf2037f0f4e53af71554a1749aeb645018207a25f7c9aaf0f5880c239437380016d5270a76565deae86dd249ad3a9b6a
diff --git a/dev-scheme/chez/chez-10.1.0.ebuild b/dev-scheme/chez/chez-10.1.0.ebuild
new file mode 100644
index 000000000000..04a3776df09e
--- /dev/null
+++ b/dev-scheme/chez/chez-10.1.0.ebuild
@@ -0,0 +1,118 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit 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.git"
+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
+ sys-libs/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"
+
+ 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
+ einstalldocs
+}