From 968ff18c6f37bf2698d9cb9baa7b8282dae85abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sun, 16 May 2021 06:07:47 +0200 Subject: [PATCH] dev-scheme/stklos: add 1.60 and live MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Maciej Barć --- dev-scheme/stklos/Manifest | 1 + dev-scheme/stklos/metadata.xml | 18 +++++++++ dev-scheme/stklos/stklos-1.60.ebuild | 58 ++++++++++++++++++++++++++++ dev-scheme/stklos/stklos-9999.ebuild | 58 ++++++++++++++++++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 dev-scheme/stklos/Manifest create mode 100644 dev-scheme/stklos/metadata.xml create mode 100644 dev-scheme/stklos/stklos-1.60.ebuild create mode 100644 dev-scheme/stklos/stklos-9999.ebuild diff --git a/dev-scheme/stklos/Manifest b/dev-scheme/stklos/Manifest new file mode 100644 index 0000000..66253bb --- /dev/null +++ b/dev-scheme/stklos/Manifest @@ -0,0 +1 @@ +DIST stklos-1.60.tar.gz 7897321 BLAKE2B 51d632f4936366c2217da16c6bca04b836438f73a42bc80e0c07ce541d82c60dfeca8dc596642b349cc73857f0c03f998e2d11e948204c054af0fd2fce74efd6 SHA512 b74736180b9daba55d1ea4a9aa06adb05b5e45b807a3b13de7105e56a37a0a98a19f4645fc4494ccd51954336e40f06fa6d5e0651f89bee19d00e411ddd96298 diff --git a/dev-scheme/stklos/metadata.xml b/dev-scheme/stklos/metadata.xml new file mode 100644 index 0000000..c86bcef --- /dev/null +++ b/dev-scheme/stklos/metadata.xml @@ -0,0 +1,18 @@ + + + + + xgqt@riseup.net + Maciej Barć + + + STklos is a free Scheme system supporting most of the languages + features defined in R5RS. The aim of this implementation is to + be fast as well as light. The implementation is based on an ad-hoc + Virtual Machine. STklos can also be compiled as a library and + embedded in an application. + + + egallesio/STklos + + diff --git a/dev-scheme/stklos/stklos-1.60.ebuild b/dev-scheme/stklos/stklos-1.60.ebuild new file mode 100644 index 0000000..25b7db3 --- /dev/null +++ b/dev-scheme/stklos/stklos-1.60.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Fast and light R7RS Scheme implementation" +HOMEPAGE="https://stklos.net/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/egallesio/STklos.git" +else + SRC_URI="https://github.com/egallesio/STklos/archive/refs/tags/${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/STklos-${P}" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="threads" + +DEPEND=" + dev-libs/gmp:= + dev-libs/libpcre + dev-libs/libffi + dev-libs/boehm-gc[threads?] +" +RDEPEND="${DEPEND}" + +DOCS=( + AUTHORS ChangeLog HACKING.md + NEWS.md PACKAGES-USED PORTING-NOTES.md + README.md SUPPORTED-SRFIS +) + +src_prepare() { + # remove bundled libs + rm -rf "${S}"/{ffi,gc,gmp,pcre} || die + + default +} + +src_configure() { + local myconf=( + --enable-threads=$(usex threads pthreads none) + --without-gmp-light + --without-provided-ffi + --without-provided-gc + --without-provided-regexp + ) + econf "${myconf[@]}" +} + +src_install() { + einstalldocs + + emake DESTDIR="${D}" install-base-no-strip install-data-recursive +} diff --git a/dev-scheme/stklos/stklos-9999.ebuild b/dev-scheme/stklos/stklos-9999.ebuild new file mode 100644 index 0000000..25b7db3 --- /dev/null +++ b/dev-scheme/stklos/stklos-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Fast and light R7RS Scheme implementation" +HOMEPAGE="https://stklos.net/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/egallesio/STklos.git" +else + SRC_URI="https://github.com/egallesio/STklos/archive/refs/tags/${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/STklos-${P}" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="threads" + +DEPEND=" + dev-libs/gmp:= + dev-libs/libpcre + dev-libs/libffi + dev-libs/boehm-gc[threads?] +" +RDEPEND="${DEPEND}" + +DOCS=( + AUTHORS ChangeLog HACKING.md + NEWS.md PACKAGES-USED PORTING-NOTES.md + README.md SUPPORTED-SRFIS +) + +src_prepare() { + # remove bundled libs + rm -rf "${S}"/{ffi,gc,gmp,pcre} || die + + default +} + +src_configure() { + local myconf=( + --enable-threads=$(usex threads pthreads none) + --without-gmp-light + --without-provided-ffi + --without-provided-gc + --without-provided-regexp + ) + econf "${myconf[@]}" +} + +src_install() { + einstalldocs + + emake DESTDIR="${D}" install-base-no-strip install-data-recursive +}