# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A repository of Scheme packages that are portable to several popular implementations of Scheme" HOMEPAGE="http://snow.iro.umontreal.ca/" #SRC_URI="http://snow.iro.umontreal.ca/?operation=download&pkg=snow-generic/v${PV}" SRC_URI="mirror://snow-generic-v${PV//./_}.tgz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" S="${WORKDIR}/snow-generic/v${PV}" src_unpack() { unpack "${A}" cd "${S}" epatch "${FILESDIR}/${PV}-makefile.patch" epatch "${FILESDIR}/${PV}-snow.patch" } src_compile() { local SNOW_VERSION="v${PV}" local PROGRAM_gambit_comp=/usr/bin/gambit-compiler local ALL_SNOW_HOSTS=gambit cat > configure.sed < ${i} || die "Unable to create ${i}" done } src_install() { emake DESTDIR="${D}" SNOW_SITE_DIR="${D}usr/share/snow/v${PV}" install || die "emake install failed" #einstall || die "einstall failed" for i in snow snowman snowfort; do dosym /usr/share/snow/current/bin/$i /usr/bin/$i done dosym /usr/share/snow/current/bin/snowman /usr/bin/snowman }