dev-scheme/stklos: add 1.60 and live

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@riseup.net>
This commit is contained in:
Maciej Barć 2021-05-16 06:07:47 +02:00 committed by Alfred Wingate
parent dcd988586f
commit 6e146f33b6
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
4 changed files with 135 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST stklos-1.60.tar.gz 7897321 BLAKE2B 51d632f4936366c2217da16c6bca04b836438f73a42bc80e0c07ce541d82c60dfeca8dc596642b349cc73857f0c03f998e2d11e948204c054af0fd2fce74efd6 SHA512 b74736180b9daba55d1ea4a9aa06adb05b5e45b807a3b13de7105e56a37a0a98a19f4645fc4494ccd51954336e40f06fa6d5e0651f89bee19d00e411ddd96298

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@riseup.net</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription lang="en">
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.
</longdescription>
<upstream>
<remote-id type="github">egallesio/STklos</remote-id>
</upstream>
</pkgmetadata>

View File

@ -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
}

View File

@ -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
}