commit: f5f2a4d99d55dea5dc383b7bfd6049e76e8c6afd Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> AuthorDate: Sun Nov 3 13:04:35 2024 +0000 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> CommitDate: Sun Nov 3 13:04:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5f2a4d9
dev-scheme/stklos: new upstream release Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> dev-scheme/stklos/Manifest | 1 + dev-scheme/stklos/files/stklos-2.10-gentoo.patch | 70 ++++++++++++++++++++++++ dev-scheme/stklos/stklos-2.10.ebuild | 56 +++++++++++++++++++ 3 files changed, 127 insertions(+) diff --git a/dev-scheme/stklos/Manifest b/dev-scheme/stklos/Manifest index 88e50b32a85c..7e8cc2cc10c2 100644 --- a/dev-scheme/stklos/Manifest +++ b/dev-scheme/stklos/Manifest @@ -1 +1,2 @@ DIST stklos-2.00.tar.gz 9661074 BLAKE2B c43918f182e8502d5ea4dd0a2d42ea4e788a573ca1184d4e3af792f3932b7a626280110c30bffa9771d73ed7fdc2a29db19bcd7ce8d5a219c1c0b9ef19195c6d SHA512 b98ad62713cb5e85d26378e73e2198d44676a0103c8e8444490cc555defc5b058652c514bdf3a27b0cc34c71b0b72d9f5fc440f260f6aa68064c5adda6571d5f +DIST stklos-2.10.tar.gz 10280638 BLAKE2B d08b3ca4422e497a4adba1d810c97af6cfa262443214127eb0c82bedb21885bc1dcea5cf8f13387a1bfaf9182a9590d9557368ee2840d5c11d4b15f5e0ffe427 SHA512 41981794bd2a8a600a03b543e87c02d1072c8dd3449704d6bb55586cc45e50c4654d8dd3f2b9ac1efc89cee41da8d3667b895d641ff1817a8d14944b1dcd66cd diff --git a/dev-scheme/stklos/files/stklos-2.10-gentoo.patch b/dev-scheme/stklos/files/stklos-2.10-gentoo.patch new file mode 100644 index 000000000000..f45a44ae4347 --- /dev/null +++ b/dev-scheme/stklos/files/stklos-2.10-gentoo.patch @@ -0,0 +1,70 @@ +--- a/lib/Lalr.d/Makefile.am ++++ b/lib/Lalr.d/Makefile.am +@@ -33,7 +33,7 @@ + all: lalr.ostk calc + + install-sources: install +- mkdir -p $(schemedir) ++ mkdir -p $(DESTDIR)$(schemedir) + cp lalr.stk $(DESTDIR)$(schemedir) + + uninstall-hook: +--- a/lib/scheme/Makefile.am ++++ b/lib/scheme/Makefile.am +@@ -208,7 +208,7 @@ + @for i in $(SUBDIRS) ;do \ + (cd $$i && $(MAKE) install-sources)\ + done +- cp $(scheme_sources) $(schemedir) ++ cp $(scheme_sources) $(DESTDIR)$(schemedir) + + install-data-hook: + (cd regex && $(MAKE) install) +--- a/lib/scheme/vector/Makefile.am ++++ b/lib/scheme/vector/Makefile.am +@@ -130,8 +130,8 @@ + #====================================================================== + + install-sources: +- mkdir -p $(srfidir) +- cp $(srfi_sources) $(srfi_interm) $(srfidir) ++ mkdir -p $(DESTDIR)$(srfidir) ++ cp $(srfi_sources) $(srfi_interm) $(DESTDIR)$(srfidir) + + # we also clean the TAG.stk files -- $(srfi-interm) --, which are NOT + # srfi_OBJS (should not be installed with other objects): +--- a/lib/stklos/Makefile.am ++++ b/lib/stklos/Makefile.am +@@ -77,7 +77,7 @@ + + # ====================================================================== + install-sources: +- cp $(scheme_sources) $(schemedir) ++ cp $(scheme_sources) $(DESTDIR)$(schemedir) + + clean: + rm -f $(ALL_OBJS) *-incl.c *~ +--- a/lib/streams/Makefile.am ++++ b/lib/streams/Makefile.am +@@ -75,7 +75,7 @@ + + # ====================================================================== + install-sources: +- install $(scheme_sources) $(schemedir) ++ install $(scheme_sources) $(DESTDIR)$(schemedir) + + clean: + rm -f $(ALL_OBJS) *-incl.c *~ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -108,8 +108,8 @@ + + + install-exec-hook: +- mv $(bindir)/stklos $(bindir)/stklos-@VERSION@ +- ln -s stklos-@VERSION@ $(bindir)/stklos ++ mv $(DESTDIR)$(bindir)/stklos $(DESTDIR)$(bindir)/stklos-@VERSION@ ++ ln -s stklos-@VERSION@ $(DESTDIR)$(bindir)/stklos + + + doc: $(DOCDB) diff --git a/dev-scheme/stklos/stklos-2.10.ebuild b/dev-scheme/stklos/stklos-2.10.ebuild new file mode 100644 index 000000000000..17f5eaa272a9 --- /dev/null +++ b/dev-scheme/stklos/stklos-2.10.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +inherit autotools toolchain-funcs + +DESCRIPTION="Fast and light Scheme implementation" +HOMEPAGE="https://stklos.net/" +SRC_URI="https://${PN}.net/download/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="threads" + +RDEPEND="dev-libs/boehm-gc[threads?] + dev-libs/gmp:= + dev-libs/libffi:= + dev-libs/libpcre2:=" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) +DOCS=( AUTHORS ChangeLog NEWS.md PACKAGES-USED {PORTING-NOTES,README}.md SUPPORTED-SRFIS ) + +src_prepare() { + default + + eautoreconf + export LD="$(tc-getCC)" + export STKLOS_CONFDIR="${T}"/.config/${PN} +} + +src_configure() { + econf \ + --datadir="${EPREFIX}"/usr/share/${PN}/${PV} \ + --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN}/${PV} \ + --enable-threads=$(usex threads pthreads none) \ + --without-provided-bignum \ + --without-provided-ffi \ + --without-provided-gc \ + --without-provided-regexp +} + +src_compile() { + emake +} + +src_test() { + emake -j1 check +} + +src_install() { + default + einstalldocs +}
