# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit ghc-package DESCRIPTION="A Haskell library for UNIX shell scripting tasks" HOMEPAGE="http://www.volker-wysk.de/hsshellscript/" SRC_URI="http://www.volker-wysk.de/hsshellscript/dist/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND=">=virtual/ghc-6.2 sys-devel/make doc? (>=dev-haskell/haddock-0.6-r2)" RDEPEND=">=virtual/ghc-6.2" src_compile() { ghc-setup-pkg emake || die "emake failed" if use doc; then emake doc || die "make doc failed" fi } src_install() { make DESTDIR=${D}${ghclibdir} install || die "make install failed" if use doc; then dohtml -A haddock -r out/doc/* cp -r samples ${D}/usr/share/doc/${PF} fi ghc-install-pkg }