# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit base EAPI=2 DESCRIPTION="A very tiny Scheme implementation with decent speed and native hygienic macros." SRC_URI="http://synthcode.com/scheme/${P}.tgz" HOMEPAGE="http://synthcode.com/wiki/chibi-scheme" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="boehm-gc" DEPEND="boehm-gc? ( dev-libs/boehm-gc )" RDEPEND="${DEPEND}" PATCHES="${FILESDIR}/chibi-scheme-0.2-unix-build-suggestions.patch" src_compile() { emake \ $(use boehm-gc && echo USE_BOEHM=1) \ PREFIX=/usr } src_test() { LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${S}" make test } src_install() { # einstall passes lowercase prefix= , but this # Makefile wants uppercase PREFIX= . einstall 'PREFIX=$(prefix)' }