summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2021-11-25 18:10:23 +0100
committerMaciej Barć <xgqt@gentoo.org>2021-11-25 18:42:06 +0100
commitae060d3b7a1b1e398442bd0ddfd065effd505c65 (patch)
tree239dfa8e836b3f660ca44a8b0a1ee661b8dbfadb /dev-scheme/chez
parentgames-util/ucon64: add 2.2.2 (diff)
downloadgentoo-ae060d3b7a1b1e398442bd0ddfd065effd505c65.tar.gz
gentoo-ae060d3b7a1b1e398442bd0ddfd065effd505c65.tar.bz2
gentoo-ae060d3b7a1b1e398442bd0ddfd065effd505c65.zip
dev-scheme/chez: new package; add version 9.5.6
Package-Manager: Portage-3.0.28, Repoman-3.0.3 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.6.ebuild60
-rw-r--r--dev-scheme/chez/files/tinfo.patch12
-rw-r--r--dev-scheme/chez/metadata.xml31
4 files changed, 104 insertions, 0 deletions
diff --git a/dev-scheme/chez/Manifest b/dev-scheme/chez/Manifest
new file mode 100644
index 000000000000..b96e0c79bbf7
--- /dev/null
+++ b/dev-scheme/chez/Manifest
@@ -0,0 +1 @@
+DIST chez-9.5.6.tar.gz 34565487 BLAKE2B 5d74cd3365b3039e6be1b774213da75da1080beffb1c9b5044466a8feff0171ce75d9999e69774754a5969d68825c571a88cb27d57af2718e98668e4fe936e3c SHA512 4affd73a5b2ea5cdec01fb200a32499387fc3769b7677ffe7d854f6a5567d50ba114f9f12951f99d8e0fd757c799e82e32c83079fae83e5fc138ee6e1a5f56c0
diff --git a/dev-scheme/chez/chez-9.5.6.ebuild b/dev-scheme/chez/chez-9.5.6.ebuild
new file mode 100644
index 000000000000..a2e5e91d64db
--- /dev/null
+++ b/dev-scheme/chez/chez-9.5.6.ebuild
@@ -0,0 +1,60 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CSV="csv${PV}"
+
+inherit multilib
+
+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}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${CSV}"
+
+# Chez Scheme itself is Apache 2.0, but it vendors LZ4 (BSD-2),
+# Nanopass (MIT), stex (MIT), and zlib (ZLIB).
+LICENSE="Apache-2.0 BSD-2 MIT ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X examples ncurses threads"
+
+RDEPEND="
+ X? ( x11-libs/libX11 )
+ ncurses? ( sys-libs/ncurses )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/tinfo.patch" )
+
+src_prepare() {
+ tc-export AR CC CXX LD RANLIB
+
+ default
+}
+
+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"
+ --temproot="${D}" # required in order for DESTDIR to be respected
+ --installschemename=chezscheme
+ --installpetitename=chezscheme-petite
+ --installscriptname=chezscheme-script
+ --nogzip-man-pages
+ )
+ sh ./configure "${myconfargs[@]}" || die
+}
+
+src_install() {
+ default
+
+ if ! use examples; then
+ rm -r "${D}/usr/$(get_libdir)/${CSV}/examples" || die
+ fi
+}
diff --git a/dev-scheme/chez/files/tinfo.patch b/dev-scheme/chez/files/tinfo.patch
new file mode 100644
index 000000000000..a7dc613bd234
--- /dev/null
+++ b/dev-scheme/chez/files/tinfo.patch
@@ -0,0 +1,12 @@
+index b8ff70a..349bc3f 100755
+--- a/configure
++++ b/configure
+@@ -483,7 +483,7 @@ if [ "$disablex11" = "yes" ]; then
+ fi
+
+ cursesLib=-lcurses
+-ncursesLib=-lncurses
++ncursesLib="-lncurses -ltinfo"
+
+ if [ "$disablecurses" = "yes" ]; then
+ echo '#define DISABLE_CURSES' >> $w/c/config.h
diff --git a/dev-scheme/chez/metadata.xml b/dev-scheme/chez/metadata.xml
new file mode 100644
index 000000000000..7c0daa5cbed0
--- /dev/null
+++ b/dev-scheme/chez/metadata.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>matt@offtopica.uk</email>
+ <name>Matt Smith</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Chez Scheme is both a programming language and an implementation
+ of that language, with supporting tools and documentation.
+
+ As a superset of the language described in the Revised6 Report on
+ the Algorithmic Language Scheme (R6RS), Chez Scheme supports all
+ standard features of Scheme, including first-class procedures,
+ proper treatment of tail calls, continuations, user-defined
+ records, libraries, exceptions, and hygienic macro expansion.
+
+ Chez Scheme also includes extensive support for interfacing with C
+ and other languages, support for multiple threads possibly running
+ on multiple cores, non-blocking I/O, and many other features.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/cisco/ChezScheme/issues</bugs-to>
+ <remote-id type="github">cisco/ChezScheme</remote-id>
+ </upstream>
+</pkgmetadata>