mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-scheme/owl-lisp: skip char-ready, decouple tests
Closes: https://bugs.gentoo.org/912068 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
parent
95a1029ed2
commit
a0945dd6b1
10
dev-scheme/owl-lisp/files/owl-lisp-0.2.1-make-no-test.patch
Normal file
10
dev-scheme/owl-lisp/files/owl-lisp-0.2.1-make-no-test.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -49,7 +49,6 @@ c/ol.c: fasl/ol.fasl
|
||||
bin/ol: c/ol.c
|
||||
# compile the real owl repl binary
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o bin/olp $?
|
||||
- CC="$(CC)" LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" sh tests/run all bin/olp
|
||||
test '!' -f $@ || mv $@ bin/ol-old
|
||||
mv bin/olp $@
|
||||
|
||||
@ -1,14 +1,13 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# NOTICE: Because it is "purely functional" it is not scheme-compatible ootb
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Purely functional dialect of Scheme"
|
||||
HOMEPAGE="https://haltp.org/posts/owl.html"
|
||||
HOMEPAGE="https://haltp.org/posts/owl.html
|
||||
https://gitlab.com/owl-lisp/owl/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
@ -22,10 +21,15 @@ 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(){
|
||||
@ -33,9 +37,11 @@ src_compile(){
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
exeinto /usr/bin
|
||||
doexe "${S}"/bin/ol
|
||||
newexe "${S}"/bin/vm ovm
|
||||
|
||||
dobin "${S}"/bin/ol
|
||||
newbin "${S}"/bin/vm ovm
|
||||
doman "${S}"/doc/*.1
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
@ -1,20 +1,19 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# NOTICE: Because it is "purely functional" it is not scheme-compatible ootb
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Purely functional dialect of Scheme"
|
||||
HOMEPAGE="https://haltp.org/posts/owl.html"
|
||||
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.gz"
|
||||
SRC_URI="https://gitlab.com/owl-lisp/owl/-/archive/v${PV}/owl-v${PV}.tar.bz2"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/owl-v${PV}"
|
||||
fi
|
||||
@ -22,15 +21,25 @@ fi
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.2.1-make-no-test.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# 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 "${S}"/bin/ol
|
||||
newexe "${S}"/bin/vm ovm
|
||||
|
||||
doman "${S}"/doc/*.1
|
||||
|
||||
einstalldocs
|
||||
|
||||
dobin ./bin/ol
|
||||
newbin ./bin/vm ovm
|
||||
|
||||
doman ./doc/*.1
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user