# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="The mechanics software for the book Structure and Interpretation of Classical Mechanics."

HOMEPAGE="http://mitpress.mit.edu/SICM/"

MY_PN="scmutils"
MY_P=${MY_PN}-${PV}
POSTFIX="-ix86-gnu-linux-sarge"

SRC_URI="ftp://swiss-ftp.ai.mit.edu/pub/users/gjs/${MY_P}${POSTFIX}.tar.gz"

LICENSE="GPL-2"

SLOT="0"

KEYWORDS="~x86 ~amd64"

IUSE=""

DEPEND=""

RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_install() {
	dobin bin/mechanics
	mkdir "${D}/usr/local/"
	cp -a "${S}/${MY_PN}/" "${D}/usr/local/" || die "Install failed!"
}