summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-04-26 23:22:52 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-04-26 23:25:04 +0200
commit6331a9be789da8b296a484cfe716fb0546dd23fd (patch)
treef9b4ea0c5c0c947d81d15c8d6150853baa05d5f9 /dev-scheme/chez
parentapp-shells/bash: remove empty line in bashrc (diff)
downloadgentoo-6331a9be789da8b296a484cfe716fb0546dd23fd.tar.gz
gentoo-6331a9be789da8b296a484cfe716fb0546dd23fd.tar.bz2
gentoo-6331a9be789da8b296a484cfe716fb0546dd23fd.zip
dev-scheme/chez: bump to 9.5.8a
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme/chez')
-rw-r--r--dev-scheme/chez/Manifest1
-rw-r--r--dev-scheme/chez/chez-9.5.8a.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-scheme/chez/Manifest b/dev-scheme/chez/Manifest
index fb1f98f3e51e..568283eb5c15 100644
--- a/dev-scheme/chez/Manifest
+++ b/dev-scheme/chez/Manifest
@@ -1 +1,2 @@
DIST chez-9.5.8.tar.gz 35487100 BLAKE2B 6c5467f812788166aded14ce38ec2935bb890f2386f3ea7ec29a97c6a3d9aa37f26960e44aa6acd6b3954e45dfc4eaff4fc7db1dd77b231fb380a1dac7349be4 SHA512 80a4e9f61ddb254bef1a249af1d32f918df88390946fbe6eeb62c3510c760bf899285be1aba70eda9b54bcb0c6fef3fe7deace648993cd9cece2d08cf0ade9c0
+DIST chez-9.5.8a.tar.gz 35488602 BLAKE2B 49facf50d7cbd301257cd2a0e180cd9ef0608241e599f56a29146fb64bc5f49c1ee536ef70d35f249baa2ba00721f2b28ff1256e3b0ccaf3fbfe426995aaae52 SHA512 64ede117b8e91b7f9f5203899d9063b3638fdaaeaef30afd5a020c41d3c3f3625772a3cb9fed68850926dffe543d2f6c6e4259845f7fd09bee9479afa35bf653
diff --git a/dev-scheme/chez/chez-9.5.8a.ebuild b/dev-scheme/chez/chez-9.5.8a.ebuild
new file mode 100644
index 000000000000..d92d53b5460d
--- /dev/null
+++ b/dev-scheme/chez/chez-9.5.8a.ebuild
@@ -0,0 +1,72 @@
+# 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
+}