# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: dan <txmn41@yahoo.com>
# $Header:$

S="${WORKDIR}/${P}"

DESCRIPTION="GNU Cim is a compiler for the programming language Simula."

SRC_URI="ftp://ftp.gnu.org/gnu/cim/${P}.tar.gz"

HOMEPAGE="http://www.iro.umontreal.ca/~vaucher/Simula/Software/"

LICENSE="GPL-2"

DEPEND=""

KEYWORDS="~x86"

src_compile() {
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"

	emake || die
}

src_install () {

	make DESTDIR=${D} install || die

	dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
}