You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-scheme/stklos/stklos-1.10-r1.ebuild

36 lines
896 B

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="fast and light Scheme implementation"
HOMEPAGE="http://www.stklos.net"
SRC_URI="http://www.stklos.net/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="threads"
DEPEND="dev-libs/gmp:= dev-libs/libpcre dev-libs/libffi dev-libs/boehm-gc[threads?]"
RDEPEND="${DEPEND}"
#parallel build failure reported upstream
MAKEOPTS=-j1
src_prepare() {
# kill bundled libs
rm -rf "${S}"/{ffi,gc,gmp,pcre} || die
default
}
src_configure() {
econf --enable-threads=$(if use threads; then echo pthreads; else echo none; fi) \
--without-gmp-light --without-provided-gc \
--without-provided-regexp --without-provided-ffi
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS ChangeLog NEWS PACKAGES-USED PORTING-NOTES README SUPPORTED-SRFIS
}