# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A minimal Scheme implementation for use as an extension language" HOMEPAGE="http://synthcode.com/wiki/chibi-scheme" SRC_URI="http://synthcode.com/scheme/${P}.tgz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86" IUSE="boehm-gc" DEPEND="boehm-gc? ( dev-libs/boehm-gc )" RDEPEND="${DEPEND}" src_compile() { local make_args="" if use boehm-gc ; then make_args="USE_BOEHM=1" fi emake $make_args PREFIX=/usr } src_test() { LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${S}" make test } src_install() { dodir /usr/bin einstall 'PREFIX=$(prefix)' }