# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils S=${WORKDIR}/${PN} DESCRIPTION="The whitespace thing makes ocaml identation aware." HOMEPAGE="http://people.csail.mit.edu/mikelin/ocaml+twt/" SRC_URI="http://people.csail.mit.edu/mikelin/ocaml+twt/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~x86" IUSE="doc examples" DEPEND="dev-lang/ocaml" src_compile () { sed -i -e "s: -pp ocaml+twt: -pp ${S}/ocaml+twt:g" Makefile make all || die "Make failed." } src_install () { dodir /usr/bin make INSTALLDIR=${D}/usr/bin install || die "Install failed." dodoc README if use doc ; then dodoc doc/* fi if use examples ; then docinto examples dodoc examples/* fi }