summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-10-30 20:37:58 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-10-31 00:15:55 +0100
commitb1d56240636822d53adce47672f25e943ef6cf40 (patch)
tree285800ba8007c15a5bc623e36f17a5116ac421d3 /dev-scheme
parentdev-lang/dafny: patch out .NET framework (diff)
downloadgentoo-b1d56240636822d53adce47672f25e943ef6cf40.tar.gz
gentoo-b1d56240636822d53adce47672f25e943ef6cf40.tar.bz2
gentoo-b1d56240636822d53adce47672f25e943ef6cf40.zip
dev-scheme/owl-lisp: bump to 0.2.2
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/owl-lisp/Manifest1
-rw-r--r--dev-scheme/owl-lisp/owl-lisp-0.2.2.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-scheme/owl-lisp/Manifest b/dev-scheme/owl-lisp/Manifest
index c7f6c87cdb25..4834c67e0890 100644
--- a/dev-scheme/owl-lisp/Manifest
+++ b/dev-scheme/owl-lisp/Manifest
@@ -1 +1,2 @@
DIST owl-v0.2.1.tar.bz2 456751 BLAKE2B 15447cc71b633a97f48086a986c8015f1bc5664b993faa7f4537878fefb805d824c49174ef5a225e4cc870bb4c5b8d256cb887c83eba58d67c64bf5db6d2d7f9 SHA512 b69296e9be60ea4e8103c8100de9d02d00fc50e13624c87c1c4a78852b58aea403459f8b4a2f88826630e7204d58d522b58df489ce194c04e9424186309f5c8e
+DIST owl-v0.2.2.tar.bz2 457461 BLAKE2B 5817899d013d2a073fe914380ca64fbaa4a264c707199a41db79452878c3437c8b99c40fe1f0346968c09aad90955eacca255a09a8f9c41e7c495e67187a1cf7 SHA512 decb8b70603b8abeb37168f9f55434a5496248f6f7f7018ce3ca802d5a3f0736a05e74defb93cb8652513e76b15dac2494c401a7ce26e2024743ae333194825c
diff --git a/dev-scheme/owl-lisp/owl-lisp-0.2.2.ebuild b/dev-scheme/owl-lisp/owl-lisp-0.2.2.ebuild
new file mode 100644
index 000000000000..2d6148517bdf
--- /dev/null
+++ b/dev-scheme/owl-lisp/owl-lisp-0.2.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Purely functional dialect of Scheme"
+HOMEPAGE="https://haltp.org/posts/owl.html
+ https://gitlab.com/owl-lisp/owl/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://gitlab.com/owl-lisp/owl.git"
+else
+ SRC_URI="https://gitlab.com/owl-lisp/owl/-/archive/v${PV}/owl-v${PV}.tar.bz2"
+ S="${WORKDIR}/owl-v${PV}"
+
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+PATCHES=( "${FILESDIR}/${PN}-0.2.1-make-no-test.patch" )
+
+src_prepare() {
+ default
+
+ sed -i 's|make bin/vm|$(MAKE) bin/vm|g' "${S}"/Makefile || die
+
+ # Skip "tests/char-ready.sh", "does not work in background subshell".
+ rm tests/char-ready.sh || die
+}
+
+src_compile(){
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" owl
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe bin/ol
+ newexe bin/vm ovm
+
+ doman doc/*.1
+
+ einstalldocs
+}