public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-scheme/scsh-lib/files/, dev-scheme/scsh-lib/
@ 2022-02-19 20:40 Maciej Barć
  0 siblings, 0 replies; only message in thread
From: Maciej Barć @ 2022-02-19 20:40 UTC (permalink / raw
  To: gentoo-commits

commit:     fc13c2f0f6d1de33133af643abac2322e6c4f90e
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 19 19:53:52 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Feb 19 20:39:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc13c2f0

dev-scheme/scsh-lib: new package; add version 0.7_pre20160820

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-scheme/scsh-lib/Manifest                       |  2 +
 .../files/scsh-lib-0.7-Makefile.in-LDFLAGS.patch   | 18 +++++++
 dev-scheme/scsh-lib/metadata.xml                   | 25 +++++++++
 .../scsh-lib/scsh-lib-0.7_pre20160820.ebuild       | 62 ++++++++++++++++++++++
 4 files changed, 107 insertions(+)

diff --git a/dev-scheme/scsh-lib/Manifest b/dev-scheme/scsh-lib/Manifest
new file mode 100644
index 000000000000..46f6cec80c7d
--- /dev/null
+++ b/dev-scheme/scsh-lib/Manifest
@@ -0,0 +1,2 @@
+DIST scsh-0.7_pre20160820.tar.gz 227203 BLAKE2B 888a52a4866bfe4f8245fff4ca449a82cd67485aa8a3e8f67d20805f7120e62ed8dd37b7fe6139712652785d0d9f064bbeab0010722e9ce0b58bc59e44b054b3 SHA512 e2c223f64eb2a19dde19382dacad01aa04f8faabeeb15e1c1b3e28b2f675f4184825372f7aa281141797cd56f5ef999b4977dd7e68ae0a3b23631fd76182fba1
+DIST scsh-0.7_pre20160820_rx.tar.gz 46869 BLAKE2B 4be965c558cc21bde5fc24dee2ddc68a3e1d83d6b9701a7e484eb47c928ecdedfa896b944bbb1d709d014d9848a066a67a0d53f6dd86f435ea665ef99da1d40e SHA512 bc300f596b611ae296327b3046aa01cfb6b2be182c69abfe56e3e504573607d3dee55723b1d48951aa8534f450a0184fc7da0c1370fcffb9adba866ace3665b4

diff --git a/dev-scheme/scsh-lib/files/scsh-lib-0.7-Makefile.in-LDFLAGS.patch b/dev-scheme/scsh-lib/files/scsh-lib-0.7-Makefile.in-LDFLAGS.patch
new file mode 100644
index 000000000000..b2431c908922
--- /dev/null
+++ b/dev-scheme/scsh-lib/files/scsh-lib-0.7-Makefile.in-LDFLAGS.patch
@@ -0,0 +1,18 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -126,13 +126,13 @@ SCHEME = scheme/command-line.scm \
+ 	 rx/regress.scm
+ 
+ go: c/scsh-tramp.c
+-	$(CC) -o $@ $(CFLAGS) \
++	$(CC) -o $@ $(CFLAGS) $(CPPLAGS) $(LDFLAGS) \
+ 	-DVM=\"$(SCHEME48VM)\" \
+ 	-DIMAGE=\"scsh.image\" \
+ 	$(srcdir)/c/scsh-tramp.c
+ 
+ scsh: c/scsh-tramp.c
+-	$(CC) -o $@ $(CFLAGS) \
++	$(CC) -o $@ $(CFLAGS) $(CPPLAGS) $(LDFLAGS) \
+ 	-DVM=\"$(SCHEME48VM)\" \
+ 	-DIMAGE=\"$(LIB)/scsh.image\" \
+ 	$(srcdir)/c/scsh-tramp.c

diff --git a/dev-scheme/scsh-lib/metadata.xml b/dev-scheme/scsh-lib/metadata.xml
new file mode 100644
index 000000000000..22eefaa8cb02
--- /dev/null
+++ b/dev-scheme/scsh-lib/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+  <maintainer type="project">
+    <email>scheme@gentoo.org</email>
+    <name>Gentoo Scheme Project</name>
+  </maintainer>
+  <longdescription>
+    Scsh has two main components: a process notation for running programs
+    and setting up pipelines and redirections, and a complete syscall
+    library for low-level access to the operating system, i.e. to POSIX,
+    the least common denominator of more or less all Unices, plus widely
+    supported extensions such as symbolic links and BSD sockets.
+
+    Moreover, scsh provides an awk facility for pattern-directed
+    computation over streams of records, a rich facility for matching
+    regular-expression patterns in strings, event-based interrupt
+    handling, user-level threads, a futuristic module system, and an
+    interactive environment.
+
+    Scsh comes with extensive documentation describing these and other
+    features.
+  </longdescription>
+</pkgmetadata>

diff --git a/dev-scheme/scsh-lib/scsh-lib-0.7_pre20160820.ebuild b/dev-scheme/scsh-lib/scsh-lib-0.7_pre20160820.ebuild
new file mode 100644
index 000000000000..1765e54f8190
--- /dev/null
+++ b/dev-scheme/scsh-lib/scsh-lib-0.7_pre20160820.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# For snapshots: keep the hashes in sync with app-shells/scsh
+SCSH_H=114432435e4eadd54334df6b37fcae505079b49f
+RX_H=d3231ad13de2b44e3ee173b1c9d09ff165e8b6d5
+
+# compatible scheme48 version
+SCHEME48V=1.9.2
+
+inherit autotools
+
+DESCRIPTION="Unix shell embedded in Scheme (libraries and launcher)"
+HOMEPAGE="https://www.scsh.net/"
+SRC_URI="
+	https://github.com/scheme/scsh/archive/${SCSH_H}.tar.gz -> scsh-${PV}.tar.gz
+	https://github.com/scheme/rx/archive/${RX_H}.tar.gz -> scsh-${PV}_rx.tar.gz
+"
+S="${WORKDIR}/scsh-${SCSH_H}"
+
+RESTRICT="test"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# older versions were in conflict with scheme48's files, on the other hand,
+# new 2016 version uses scheme48
+RDEPEND="~dev-scheme/scheme48-${SCHEME48V}"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.7-Makefile.in-LDFLAGS.patch )
+
+src_unpack() {
+	unpack scsh-${PV}.tar.gz
+
+	tar xf "${DISTDIR}/scsh-${PV}_rx.tar.gz" --strip-components 1 -C "${S}/rx/" ||
+		die "Failed to unpack scsh-${PV}_rx.tar.gz"
+}
+
+src_prepare() {
+	SCHEME48VM=/usr/$(get_libdir)/scheme48-${SCHEME48V}/scheme48vm
+	export SCHEME48VM
+
+	default
+	eautoreconf
+}
+
+src_configure() {
+	econf --with-scheme48=${SCHEME48VM}
+}
+
+src_compile() {
+	emake SCHEME48VM=${SCHEME48VM}
+}
+
+src_install() {
+	emake SCHEME48VM=${SCHEME48VM} DESTDIR="${D}" enough dirs install-scsh
+
+	rm "${D}"/usr/bin/scsh || die
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-19 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-19 20:40 [gentoo-commits] repo/gentoo:master commit in: dev-scheme/scsh-lib/files/, dev-scheme/scsh-lib/ Maciej Barć

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox