commit:     ae060d3b7a1b1e398442bd0ddfd065effd505c65
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 25 17:10:23 2021 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Nov 25 17:42:06 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae060d3b

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 <AT> gentoo.org>

 dev-scheme/chez/Manifest          |  1 +
 dev-scheme/chez/chez-9.5.6.ebuild | 60 +++++++++++++++++++++++++++++++++++++++
 dev-scheme/chez/files/tinfo.patch | 12 ++++++++
 dev-scheme/chez/metadata.xml      | 31 ++++++++++++++++++++
 4 files changed, 104 insertions(+)

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>m...@offtopica.uk</email>
+    <name>Matt Smith</name>
+  </maintainer>
+  <maintainer type="project">
+    <email>sch...@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>

Reply via email to