# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/hugs98/hugs98-2002.11.ebuild,v 1.8 2004/07/02 04:27:34 eradicator Exp $ IUSE="" MY_P="hugs98-Nov2002" S=${WORKDIR}/${MY_P} DESCRIPTION="The HUGS98 Haskell interpreter" SRC_URI="http://cvs.haskell.org/Hugs/downloads/Nov2002/${MY_P}.tar.gz" HOMEPAGE="http://www.haskell.org/hugs" SLOT="0" KEYWORDS="x86 ~sparc" LICENSE="as-is" DEPEND="virtual/libc" src_compile() { local myc cd ${S}/src/unix || die ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --enable-ffi \ --enable-double-precision \ ${myc} || die "./configure failed" cd .. emake || die } src_install () { cd ${S}/src || die cp HsFFI.h ../include || die make \ HUGSDIR=.. \ prefix=${D}/usr \ mandir=${D}/usr/share/man \ infodir=${D}/usr/share/info \ install || die #somewhat clean-up installation of few docs cd ${S} dodoc Credits License Readme cd ${D}/usr/lib/hugs rm Credits License Readme mv demos/ docs/ ${D}/usr/share/doc/${PF} }